Hi Wolfgang
Quoting Wolfgang Schuster
On Wed, 06 Jun 2007 19:42:26 -0400 Aditya Mahajan
wrote: Also am I missing a scaling factor in width= expressions above. Everything looks fine with unitsize=1mm, but the final figure is clearly larger than 16mm. I am confused as to what is happening.
Hi Aditya,
you wanted something like this
\newdimen\scale \scale\1mm \def\rule#1{\hrule width #1\scale} \rule{10}
but you made this
\def\scale{1mm} \def\rule#1{\hrule width #1\scale} \rule{10}
The length of the \hrule in the first example is 10pt (10 \times 1pt = 10pt), while in the second example it is 101pt width (10 & 1pt = 101pt).
Ah. Thank you. Now I understand what was happening. I had tried \dimexpr but I did \dimexpr scale * dimension \relax and got an error. Now I realize that the correct way to use \dimexpr is dimension * scale. Now everything looks nice. Thanks. Aditya