[pdftex] Ruby in TeX II.
Reinhard Kotucha
reinhard.kotucha at web.de
Fri Feb 20 01:43:08 CET 2004
>>>>> "Nagy" == Nagy Bence <tipogral at freemail.hu> writes:
> 2. \rubycalc - the old \calc primitive like \advance or
> \multiply. It can assign a Ruby calculated value to a TeX dimen.
> \newdimen\testdimen
> \rubycalc\testdimen{3*2}
> \the\testdimen
> Output (\the\testdimen causes):
> 6.0pt
I prefer to get 6.0 Euro rather than 6.0pt.
Why do you put the result into a dimension register? Wouldn't it be
much more flexible, more convenient and much more general to put the
output into a token register?
\newtoks\testtoks
\rubycalc\testtoks{3*2}
\the\testtoks
Output (\the\testtoks causes):
6.0
No need then to strip the "pt" and you have arbitrary resolution. And
I can probably even get my 6.0 Euro.
Regards,
Reinhard
--
----------------------------------------------------------------------------
Reinhard Kotucha Phone: +49-511-4592165
Marschnerstr. 25
D-30167 Hannover mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------
More information about the pdftex
mailing list