[l2h] BUG: textrm{} does not work correctly.

Edwin Steiner Edwin Steiner" <esteiner@net4you.at
Fri, 27 Apr 2001 16:10:06 +0200


Ross Moore wrote:
> [Edwin Steiner wrote:]
> > Hello!
> > 
> > When LaTeX processes the document
> > 
> >     \documentclass{article}
> >     \newcommand{\mytt}[1]{{\tt #1}}
> >     \newcommand{\myrm}[1]{{\rm #1}}
> >     \begin{document}
> > 
> >     \texttt{AAA\textrm{BBB}AAA},
> 
> Do you really expect this to work ?
> What should it mean logically ?
> This will depend on the expansion model for macros.
[snip]

My error was to assume that \textrm{foo} is the same as {\rm foo}.
Well, it isn't. I looked it up in the LaTeX source. (And turned
away blinded. No more LaTeX source for me. :-)

I'm using declarations now, and the output is perfect
both in HTML and in DVI, no matter how deep
the scopes of the declarations are nested . :-)

Thanks,
-Edwin