Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

underscore in argument to latex \newcommand

383 views
Skip to first unread message

Alan Su

unread,
Nov 3, 2001, 4:49:25 PM11/3/01
to

i'm trying to create a command (using latex's \newcommand) called
\tocite. the idea is that instead of looking up a citation in the bib
file, it will simply write the label out to the document and maybe
spit something out with \typeout. the only problem i'm running into
right now is that latex complains if the argument contains an
underscore character. i'm just wondering how the \cite command gets
around this and whether or not i can get that same behavior in a
command created with \newcommand.

thanks!

Donald Arseneau

unread,
Nov 3, 2001, 9:26:23 PM11/3/01
to
al...@CSUA.Berkeley.EDU (Alan Su) writes:

The \cite command doesn't have this problem at all because
it isn't trying to print the underscore, which is the math
mode subscript indicator.

Try drftcite.sty or showref.sty instead of your own.

Maybe even underscore.sty will fix your package, but just
for the underscores, not for other special characters.

Donald Arseneau as...@triumf.ca

0 new messages