[texhax] if related def
Manoj Kummini
kummini at math.ukans.edu
Tue Aug 26 21:48:41 CEST 2003
On Wed, Aug 27, 2003 at 00:20:01hrs +0300, Popescu Cezar wrote:
> i got a small problem: i have a counter, let's say ``Cap'',
> and a command that uses this counter, let's say \parte. the
> Cap is stepped externally. what i want is this:
> - if counter Cap equals 1 then \parte should typeset
> ``Partea I'';
> - if counter Cap greater than 1, then \parte should
> typeset ''Partea a~\Roman{Cap}-a''.
> any suggestion about how to define \parte, please?
\def\parte{Partea \ifnum\c at Cap=1 I\else a~\Roman{Cap}-a\fi}
With regards,
Manoj.
--
Manoj Kummini
Graduate Student, Dept. of Mathematics, The Univ. of Kansas,
Lawrence KS 66045 USA. 38 deg 55 min N, 95 deg 14 min W.
http://www.math.ukans.edu/~kummini/index.html
More information about the texhax
mailing list