[l2h] Latex2html handling of verbatim. Some verbatim is NOT generated
Bob van der Poel
bob at mellowood.ca
Mon Jun 14 01:23:27 CEST 2010
Did you try using \html{ ... } and \latex{ ... } instead? I've found
(and never had time to figure out) slight differences between the 2.
Also, I've found it easiest to have 2 header files: one for latex and
the other for html. The 2 header files are imported with:
\begin{htmlonly}
\input{../inc-html}
\end{htmlonly}
\latex{ \input{../inc-latex}}
Not sure if this helps. Hope it does.
On Sun, Jun 13, 2010 at 3:53 PM, Nasser M. Abbasi <nma at 12000.org> wrote:
> Hello;
>
> THis is really strange one. I thought that anything between
>
> \begin{verbatim}
> ..
> \end{verbatim}
>
> should NOT be looked at, and should be generated as is?
>
> But below is an example, where l2h seems to "look inside" the verbatim
> section, and becuase of this, some of the verabtim text is removed.
>
> ===== complex example below ======
>
> \documentclass[]{article}%
> \usepackage{html}
> \usepackage{verbatim}
>
> \begin{document}
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> \begin{verbatim}
>
> \documentclass[]{article}%
> \usepackage{html}
>
> \begin{document}
>
> \begin{htmlonly}
> \includegraphics[]{image.png}
> \end{htmlonly}
>
> \begin{latexonly}
> \includegraphics[scale=0.75]{image.png}
> \end{latexonly}
>
> \end{document}
>
> \end{verbatim}
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
> \end{document}
> ======= end example ==========
>
> When I run the above via pdflatex, and look at the pdf outout, I see ALL of
> the verbatim stuff. good.
>
> When I run the above by latex2thml, and look at the HTML outout, it shows
> only this:
>
> ==== HTML output ===============
> \documentclass[]{article}%
> \usepackage{html}
>
> \begin{document}
>
> \includegraphics[]{image.png}
> \end{document}
> ========= end HTML outpuit ==========
>
>
> You can see that the verbatim text \begin{latexonly} has been REMOVED.
>
> But it is verbatim !! Latex2html should be looking at it?
>
> This is using
>
> C:\Users\me>latex2html -v
> $* is no longer supported at G:\LATEX\latex2html\bin/latex2html.bat line
> 10607.
> This is LaTeX2HTML Version 2008 (1.71)
> by Nikos Drakos, Computer Based Learning Unit, University of Leeds.
>
> Ami doing something silly or is this a "bug" in latex2hml?
>
>
> --Nasser
> _______________________________________________
> latex2html mailing list
> latex2html at tug.org
> http://tug.org/mailman/listinfo/latex2html
>
--
**** Listen to my CD at http://www.mellowood.ca/music/cedars ****
Bob van der Poel ** Wynndel, British Columbia, CANADA **
EMAIL: bob at mellowood.ca
WWW: http://www.mellowood.ca
More information about the latex2html
mailing list