Skip to content

Instantly share code, notes, and snippets.

@sauloperez
Created June 15, 2013 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sauloperez/5788542 to your computer and use it in GitHub Desktop.
Save sauloperez/5788542 to your computer and use it in GitHub Desktop.
Latex graphicx package configuration to allow figures span two columns
\ifCLASSINFOpdf
\usepackage[pdftex]{graphicx}
% declare the path(s) where your graphic files are
\graphicspath{{../pdf/}{../jpeg/}{./image/}}
% and their extensions so you won't have to specify these with
% every instance of \includegraphics
\DeclareGraphicsExtensions{.pdf,.jpeg,.png,.jpg}
\else
% or other class option (dvipsone, dvipdf, if not using dvips). graphicx
% will default to the driver specified in the system graphics.cfg if no
% driver is specified.
\usepackage[dvips]{graphicx}
% declare the path(s) where your graphic files are
\graphicspath{{../eps/}}
% and their extensions so you won't have to specify these with
% every instance of \includegraphics
% \DeclareGraphicsExtensions{.eps}
\fi
% Then just include a image as follows
% \begin{figure*}
% \includegraphics[scale=1.75]{images/idm3}
% \caption{XML fragment represented as a resource view graph}
% \label{fig:idm3}
%\end{figure*}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment