[l2h] Re: latex2html: Another strange alltt related bug

Graham Gough Graham Gough <graham@cs.man.ac.uk>
Fri, 26 Mar 1999 09:55:40 +0000 (GMT)


Ross,
   The alltt-related bug which I reported some time ago appears to
have been fixed in 99.1 as you promised, for which thanks. However it
appears to have popped up again in a different guise.

The following document works fine if the use of the douput environment
is uncommented but commenting it out has the effect of changing the
colour of the the text after it!

Graham

\documentclass[a4paper,12pt]{article}
\usepackage{alltt}

%begin{latexonly}
\newcommand{\chcol}[1]{}
\newenvironment{doutput}{\begin{alltt}}{\end{alltt}}
%end{latexonly}

\begin{htmlonly}
\usepackage{color}
\pagecolor[white]{1}
\newcommand{\chcol}[1]{\color{#1}}
\newenvironment{doutput}{\begin{alltt}\color{firebrick4}}{\end{alltt}\\}
\end{htmlonly}

\begin{document}

Here is some text

%\begin{doutput}
%Enter a key: john
%No information about `john'
%\end{doutput}

Here is some more text which should be black, but isn't!

\end{document}