[pdftex] calculating in LaTeX
Thierry Bouche
thierry.bouche at ujf-grenoble.fr
Wed Oct 2 16:27:15 CEST 2002
Le mercredi 2 octobre 2002 à 15:05:29, Dirk Stueker écrivit :
SD> I want to define a new command like this:
SD> \newcommand{\mycommand}[2]{\begin{figure} \includegraphics[height=#2,
SD> width=2*#2]{#1} \end{figure}}
nothing to do with PDF...
you can do this:
\newlength\mylength
\newcommand{\mycommand}[2]{\begin{figure}
\mylength=#2
\includegraphics[height=\mylength,
width=2\mylength]{#1} \end{figure}}
--
Thierry Bouche
More information about the pdftex
mailing list