Wednesday, September 11, 2013

Variables in LaTeX

Hello,

To use variables:

% Set the new variable called "\MyVariable" with the value 0.5
\newcommand{\MyVariable}{0.5}

% To use the variable.
\MyVariable
e.g. includegraphics[width=\MyVariable\columnwidth]{img/img.pdf}

No comments:

Post a Comment