[Tugindia] \ifnum....\@nameuse{..}\fi

Manoj Kummini kummini at yahoo.com
Sat Apr 19 09:14:37 CEST 2003


I have a counter revcnt that has value two, and a macro \v at rii, that
has value 1.1. I tried printing the value of \v at rii by 
\ifnum\c at revcnt>0\@nameuse{v at r\romannumeral\therevcnt}\fi
but the output was .1, without the 1 before the unit's place. If I
gave a space between 0 and \@nameuse, it would work. Then I used \z@
for 0 as in \ifnum\c at revcnt>\z@\@nameuse.......\fi (without the
space), it worked.

Is this because LaTeX takes 0\@nameuse{\v at r\romannumeral\therevcnt}
as 01.1 (perhaps without the fractional part)? I thought thusly
because on changing the value of revcnt to one, the \ifnum...\fi
condition tested false.

Can someone explain or give some pointers?

Manoj.


=====
--
Manoj Kummini
http://www.geocities.com/kummini/index.html
12 deg 58 min N, 77 deg 35 min E

________________________________________________________________________
Missed your favourite TV serial last night? Try the new, Yahoo! TV.
       visit http://in.tv.yahoo.com


More information about the Tugindia mailing list