Forums » Using AMC (english) »
Getting copy number
Added by shreikant kv about 11 years ago
When I say \onecopy{100}{test material} I get 100 copies of "test material". I would like to use
the counter which runs from 1 to 100 inside "test material". May I know the name of this counter?
Replies (6)
RE: Getting copy number - Added by Alexis Bienvenüe about 11 years ago
This is the "student number": \AMCid@etud
.
RE: Getting copy number - Added by David Dixon over 10 years ago
How can use \AMCid@etud? If I try to print it, I just get "undefined control sequence".
RE: Getting copy number - Added by shreikant kv over 10 years ago
\makeatletter
\newcommand{\serialnum}{\AMCid@etud}
\makeatother
%Usage:
Your serial number is \serialnum
RE: Getting copy number - Added by S. McKay over 10 years ago
I'm sorry for being particularly obtuse. However, I'm having difficulty using your suggestion. I modified a sample file (attached) the way I thought it needed to go, but I get errors. I get "Missing number, treated as zero", 10 times (10 exams are specified). Any help to tell me what I am doing wrong?
I need this number in 3 digit large format, because of a requirement of the testing center.
Thanks,
S.M.
test.tex - Sample file that tries to use copy number (1.6 kB)
RE: Getting copy number - Added by Alexis Bienvenüe over 10 years ago
Try with
\makeatletter \newcommand{\serialnum}{\the\AMCid@etud} \makeatother
(insert
\the
before \AMCid@etud
). \AMCid@etud
is a counter.RE: Getting copy number - Added by S. McKay over 10 years ago
Thanks!
That works. Thanks for helping me out.
S.M.
(1-6/6)