[l2h] Bug in alltt.pl

Peter Junglas Peter Junglas <Junglas@tu-harburg.de>
Thu, 25 Nov 1999 09:21:54 +0100


This is a multi-part message in MIME format.
--------------130D3F035B2F5E266F01CDE6
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,

when I use the alltt environment (l2h version 99.2b6) together with
\usepackage[german]{babel}, then the " inside alltt is interpreted as in german
style, though inside alltt it shouldn't. In LATEX itself everything works fine.

A crude workaround for me was to use english and redefine some strings, but of
course this leads to wrong hyphenation.

I've included a test example to show the bug. It needs a .latex2html-init with
the only command
  $alltt_rx = 'code';
(and 1; of course)

BTW: Please describe this l2h-option in the manual!

   Greetings from Hamburg
        Peter

--
Dr. Peter Junglas                  Tel.:  040/42878-3193
TU Hamburg-Harburg,                Fax.:  040/42878-2803
  Rechenzentrum                    email: Junglas@tu-harburg.de
Schwarzenbergstr. 95               WWW: http://www.tu-harburg.de/rzt/rzt/pj/
21071 Hamburg
--------------130D3F035B2F5E266F01CDE6
Content-Type: application/x-tex;
 name="master.tex"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline;
 filename="master.tex"

%
% Problem in l2h: =

%  " in alltt are interpreted, if using german
%  latex works fine
% Workaround: english, overwrite names
%   but: wrong hyphenation!
%

%
% use this with the following .latex2html-init:
% $alltt_rx =3D 'code';
% 1;
%

\documentclass{article}
%\usepackage[english]{babel}
\usepackage[german]{babel}
\usepackage{html}
\usepackage[latin1]{inputenc}
\usepackage{alltt}


\newenvironment{code}{\begin{alltt}}{\end{alltt}\vspace{-\baselineskip}}

% Computer-Font
% beseitigt den leidigen "Extra-Space"-Bug
\newcommand{\cft}[1]{\latexhtml{{\tt #1}}%
  {\HTMLcode{TT}{#1}}}

% Umgebung f=FCr Listen mit =DCberschrift
\newenvironment{listwithhead}[1]%
  {\medskip {\bf #1:} \begin{itemize}}%
  {\end{itemize}}

% workaround: use english and redefine some names
% problem: wrong hyphenation!!!
%\addto\extrasenglish{
%  \renewcommand{\contentsname}{Inhalt}
%}


%%%%%%%%%%%%%%%%%  Ende der Makros %%%%%%%%%%%%%%%%

\begin{document}
\title{Verwendung von Stylesheets}

\author{Peter Junglas}
\date{22. November 1999}

\maketitle

\tableofcontents

  \section{juhu die erste}
  \begin{listwithhead}{\cft{STYLE}-Attribut f=FCr einen einzelnen Tag}
  \item
    Beispiel:
   \begin{code}
   <H1 STYLE=3D"color:red; font-size:36pt;"> =DCberschrift 1. Ordnung </H=
1>
   <P STYLE=3D"margin-left:1.5cm;"> Ein Textabsatz </P>
    \end{code}
  \end{listwithhead}

\end{document}

--------------130D3F035B2F5E266F01CDE6--