[l2h] conditional text \begin{latexonly} command counter intuitive?

Jorgen Johansson johansson_jorgen at yahoo.com
Fri Feb 20 18:31:34 CET 2004


Hello,

In the l2h manual there is an example of using
conditional text. 

--------------------------snip------------------
\newcommand{\A}{The letter A.}
\newcommand{\B}{The letter B.}

\begin{latexonly}
\renewcommand{\A}{Not the letter A.}
\end{latexonly}
%begin{latexonly}
\renewcommand{\B}{Not the letter B.}
%end{latexonly}

\begin{document}
\A \B
\end{document}

If you process this with LATEX , the result is:       
 The letter A. Not the letter B.

-------------------end snip------------------------

I don't understand why 
"\renewcommand{\A}{Not the letter A.}"
does not get processed by latex. I expected the result
to be: 
"Not The letter A. Not the letter B."
and NOT 
"The letter A. Not the letter B."

What am I missing or is the \begin{latexonly} command
somehow counter intuitive?

jorgen

__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools


More information about the latex2html mailing list