[l2h] \excludecomment problem

Graham Gough Graham Gough <graham@cs.man.ac.uk>
Tue, 22 Aug 2000 11:39:03 +0100 (BST)


I have found the source of the problem I reported in my earlier
posting. It was caused by indentation! If I replace 

      \begin{one}
        One 
      \end{one}
by
\begin{one}
  One 
\end{one}

the latex problem goes away. It is perhaps worth mentioning this
somewhere in the documentation.

There is, however still a problem with such comments in l2h, illustrated
by the following example. When this is processed using l2h beta8, the
last part of the latexonly environment appears in the html. I think this
may be a newly introduced error.

Graham


\documentclass{article}
\usepackage{html}

\includecomment{one}
\excludecomment{two}

\begin{htmlonly}
\newenvironment{one}{}{}
\newenvironment{two}{}{}
\end{htmlonly}

\begin{document}
Common material (html and latex)
%begin{latexonly}
Common latex preamble
\begin{one}
latex stuff, one only
\end{one}
\begin{two}
latex stuff, two only
\end{two}
Common latex epilogue (this appears in the html!)
%end{latexonly}

\begin{htmlonly}
Common html preface
\begin{one}
html stuff, one only
\end{one}
\begin{two}
html stuff, two only
\end{two}
Common html epilogue
\end{htmlonly}
\end{document}