LATEX-L Archives

Mailing list for the LaTeX3 project


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Date: Mon, 10 Dec 2001 18:41:29 +0100
Reply-To: Mailing list for the LaTeX3 project <[log in to unmask]>
From: Lars Hellström <[log in to unmask]>
In-Reply-To: <[log in to unmask]>
Content-Transfer-Encoding: 8bit
Sender: Mailing list for the LaTeX3 project <[log in to unmask]>
Parts/Attachments: text/plain (17 lines)
At 18.03 +0100 2001-12-10, Timothy Murphy wrote:
>At the rist of incurring the Wrath of Robin,
>what about \usepackage{doc} and \MakeShortVerb{\"} ?
>Is this more or less equivalent to \usepackage{alltt} ?

All variants of \verb (short or not, command and environment alike) rely on
their ability to change the \catcode of certain characters for the duration
of the tokenization of their arguments (or body). When any of these
constructions appear in the argument of another macro then TeX will
tokenize the entire argument using the same \catcodes throughout and never
stopping to bother about what any of the commands in the argument might
expand to. Thus it will all be long since over by the time TeX expands the
\verb-like command, and hence it will, in general, not work. (In the few
cases where it will work you didn't need it to begin with!)

Lars Hellström