Filenames for Includegraphics

In LaTeX, \includegraphics is frequently used, but there are some quirks:

  • avoid path name in the filename and use \graphicspath{{../Figs/}} for a list of paths with figures
  • extensions are optional, for example for fig1.png, use \includegraphics{fig1}
  • if the filename contains dots (periods), then you have to mask them, using curly brackets, otherwise what follows the period is considered an extension, so fig.1.png would need \includegraphics{{{fig.1}}} or \includegraphics{{fig.1}.png}
  • width of the graphics is usually relative to the columnwidth, so use \includegraphics[width=0.98\columnwidth} for a figure that takes up 98% of the column width.
  • usually, you may not read the package, but in this case it may be valuable to read graphicx manual.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.