[l2h] BUG: textrm{} does not work correctly.
Edwin Steiner
Edwin Steiner" <esteiner@net4you.at
Thu, 26 Apr 2001 14:53:28 +0200
Hello!
When LaTeX processes the document
\documentclass{article}
\newcommand{\mytt}[1]{{\tt #1}}
\newcommand{\myrm}[1]{{\rm #1}}
\begin{document}
\texttt{AAA\textrm{BBB}AAA},
{\tt AAA{\rm BBB}AAA},
\mytt{AAA\myrm{BBB}AAA}
\end{document}
it produces three times
'AAA' in tt font, 'BBB' in rm, 'AAA' in tt.
LaTeX2HTML 2K.1beta produces (for complete HTML
output see below):
<TT>AAA BBBAAA</TT>,
<TT>AAA</TT>BBB<TT>AAA</TT>,
<TT>AAA</TT>BBB<TT>AAA</TT>
The \textrm{BBB} comes out in typewriter font, and
an incorrect space is inserted.
Is this a known problem?
-Edwin
The complete HTML output:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with LaTeX2HTML 2K.1beta (1.48)
original version by: Nikos Drakos, CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>test</TITLE>
<META NAME="description" CONTENT="test">
<META NAME="keywords" CONTENT="test">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="LaTeX2HTML v2K.1beta">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<LINK REL="STYLESHEET" HREF="test.css">
</HEAD>
<BODY >
<!--Navigation Panel-->
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
SRC="/usr/share/latex2html/icons/up_g.png">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
SRC="/usr/share/latex2html/icons/prev_g.png">
<BR>
<BR>
<BR>
<!--End of Navigation Panel-->
<P>
<TT>AAA BBBAAA</TT>,
<TT>AAA</TT>BBB<TT>AAA</TT>,
<TT>AAA</TT>BBB<TT>AAA</TT>
<P>
<H1><A NAME="SECTION00010000000000000000">
About this document ...</A>
</H1>
<P>
This document was generated using the
<A
HREF="http://www-texdev.mpce.mq.edu.au/l2h/docs/manual/"><STRONG>LaTeX</STRO
NG>2<tt>HTML</tt></A> translator Version 2K.1beta (1.48)
<P>
Copyright © 1993, 1994, 1995, 1996,
<A HREF="http://cbl.leeds.ac.uk/nikos/personal.html">Nikos Drakos</A>,
Computer Based Learning Unit, University of Leeds.
<BR>
Copyright © 1997, 1998, 1999,
<A HREF="http://www.maths.mq.edu.au/~ross/">Ross Moore</A>,
Mathematics Department, Macquarie University, Sydney.
<P>
The command line arguments were: <BR>
<STRONG>latex2html</STRONG> <TT>-split 0 test.tex</TT>
<P>
The translation was initiated by root on 2001-04-26
<BR><HR>
<ADDRESS>
root
2001-04-26
</ADDRESS>
</BODY>
</HTML>