Ross Moore wrote:
Hello Jens,

On Thu, 25 Sep 2003, Jens Lehmann wrote:


Hello,

LaTeX2HTML currently supports the verbatim-environment (\begin{verbatim}
... \end{verbatim}), but it doesn't honour the commands \verbatim and
\endverbatim. These commands are needed if you want to define your own
verbatim-like environments (see the documentation of verbatim for more


Verbatim-like environments are always tricky, because they do not obey
the rules/style of normal LaTeX syntax for their content.

However, a definition such as:
\newenvironment{myspecialenv}
 {\textbf{This is mine}
  \begin{verbatim}
 }
 {\end{verbatim}
}

should work with LaTeX2HTML, even if it doesn't work with LaTeX
itself.

It doesn't work for me. The output is not correct and I get the following warning:

? brace missing for \newedenvironment

This is probably because the }-brace and the {-brace after \begin{verbatim} are not recognized.

A testcase can be found in my Debian bug report for this at the bottom: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=218834

I attach it here additionally.

I need the environment for generating the sourcecode-boxes in this document: http://www.xith.org/tutes/GettingStarted/html/simple_header.html

Currently I use a workaround, by putting

\begin{codeblock} % adds HTML for starting a codeblock
\begin{verbatim}
[... code ...]
\end{verbatim}
\end{codeblock} % adds HTML for ending a codeblock

I'm not the only one working on this document (but the maintainer) and using only \begin{codeblock} and \end{codeblock} would be more intuitive and save some time.

As said before I'm happy to answer your questions, if something is not clear.

Jens

--
PGP Public Key: http://studenten-dresden.de/public_key.asc

Attachment: test5.tex
Description: TeX document

_______________________________________________
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html

Reply via email to