Some issues with Latex2html, version 2008, 1.71

Nasser M. Abbasi
Feb 12, 2012.

I am running this on

$uname -a
Linux me-VirtualBox 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:50:42 UTC 2011 i686 i686 i386 GNU/Linux

Booted on a Virtual machine (VMbox).

Latex used is

$latex --version
pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian)
kpathsea version 5.0.0
Copyright 2009 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Compiled with libpng 1.2.46; using libpng 1.2.46
Compiled with zlib 1.2.3.4; using zlib 1.2.3.4
Compiled with poppler version 0.16.7

Latex2html is

$latex2html --version
defined(%hash) is deprecated at /usr/bin/latex2html line 515.
	(Maybe you should just omit the defined()?)
defined(%hash) is deprecated at /usr/bin/latex2html line 2087.
	(Maybe you should just omit the defined()?)
defined(%hash) is deprecated at /usr/bin/latex2html line 9088.
	(Maybe you should just omit the defined()?)
Note: Loading /home/me/.latex2html-init
Note: Initialising with file: /home/me/.latex2html-init
This is LaTeX2HTML Version 2008 (1.71)
by Nikos Drakos, Computer Based Learning Unit, University of Leeds.

my latex2html init file

$cat .latex2html-init 
$FONT_SIZE = "12pt";
$WHITE_BACKGROUND = 1;
$LOCAL_ICONS = 1;
$MAX_SPLIT_DEPTH = 4;
$SHORTEXTN = 1;
$ANTI_ALIAS = 1;
$ANTI_ALIAS_TEXT = 1;
$HTML_VERSION = '4.0';
$MATH_SCALE_FACTOR = 1.8;
$DISP_SCALE_FACTOR = 1.0;
$FIGURE_SCALE_FACTOR = 1.0;
$TRANSPARENT_FIGURES = 1;
$NO_SUBDIR = 1;
$DISCARD_PS = 0;
$DVIPSOPT = '-E';
$LATEX_COLOR = "";
$SCALABLE_FONTS = "1";
$PS_IMAGES = 0;
$PK_GENERATION = 0;
$DVIPS_MODE = '';
$METAFONT_DCP = 0;

1

issues

  1. verb does not show up. Example this file verb_issue/verb_issue.tex

    \documentclass[12pt]{article}
    \usepackage{html}
    \usepackage{verbatim}
    \begin{document}
    \verb|test|
    \end{document}
    

    produces this page verb_issue/verb_issue.htm command used is

    latex2html -debug -verbosity 10 verb_issue.tex &> command_screen_output.txt
    

    Here is the screen output verb_issue/command_screen_output.txt

    Here is zip file that contains the folder and everything in it for this issue verb_issue.zip

  2. when using verbatim with table that has math in it

    When I run this

    %\documentclass[12pt]{article}
    %\usepackage{html}
    %\usepackage{verbatim}
    %\begin{document}
    %
    %\begin{verbatim}
    %test
    %\end{verbatim}
    %
    %\begin{tabular}{|l | }
    %$f(x) = x^3 d$\\
    %\end{tabular}
    %\end{document}
    

    It works. Expected output. Verbatim displays 'test' and the math shows up.

    But I add '+' to the equation above, like this verb_with_math_issue/verb_with_math_issue.tex

    %\documentclass[12pt]{article}
    %\usepackage{html}
    %\usepackage{verbatim}
    %\begin{document}
    %
    %\begin{verbatim}
    %test
    %\end{verbatim}
    %
    %\begin{tabular}{|l | }
    %$f(x) = x^3 + d$
    %\end{tabular}
    %\end{document}
    

    Then I lose the verbatim! Here is the generated html page verb_with_math_issue/verb_with_math_issue.htm and in addition, the verbatim 'test' is replaced by the math as verbatim.

    Here is the screen output for the above file verb_with_math_issue/command_screen_output.txt

    Here is zip file that contains the folder and everything in it for this issue verb_with_math_issue.zip

About this document ...

This document was generated using the LaTeX2HTML translator Version 2008 (1.71)

Copyright © 1993, 1994, 1995, 1996, Nikos Drakos, Computer Based Learning Unit, University of Leeds.
Copyright © 1997, 1998, 1999, Ross Moore, Mathematics Department, Macquarie University, Sydney.

The command line arguments were:
latex2html -split 0 index.tex

The translation was initiated by me on 2012-02-12

me 2012-02-12