Hi Vadim,

On 19/02/2010, at 9:05 PM, Vadim Engelson wrote:

A math with typewriter font inside ({\tt xyz}),
generates an unnecessary image that looks bad:

$abc+ {\tt xyz} +fgh$

No. This is not the correct way to do this.
It should be
  $abc+ \mbox{\tt xyz} +fgh$
or
  $abc+ \text{\tt xyz} +fgh$   with AMS-math loaded

or better still

  $abc+ \text{\texttt{xyz}} +fgh$


If you think that this is excessive markup for something
rather simple in appearance, then use a macro definition.

\newcommand{\ttname}[1]{\mathord{\text{\texttt{#1}}}}

  $abc + \ttname{xyz} + fgh$

Now you can play around with the expansion of \ttname
to experiment with different styles/colours/whatever
and get a consistent result with all occurrences.


But math with \tt  outside just places the text directly as HTML:

$abc+${\tt xyz}$+fgh$

But now the spacing around the + signs is wrong
when you typeset this for a PDF.



I use

latex2html ttmath.tex -nomath -html_version 4.0,math

Is there any method or patch to latex2html to avoid generating
unnecesary image in the first case above ?

It is not LaTeX2HTML that is wrong.
Your own markup does not properly indicate what is mathematics
and what is text --- being used inside mathematics.


Hope this helps,

        Ross


_______________________________________________
latex2html mailing list
[email protected]
http://tug.org/mailman/listinfo/latex2html

------------------------------------------------------------------------
Ross Moore                                       [email protected]
Mathematics Department                           office: E7A-419
Macquarie University                             tel: +61 (0)2 9850 8955
Sydney, Australia  2109                          fax: +61 (0)2 9850 8114
------------------------------------------------------------------------



_______________________________________________
latex2html mailing list
[email protected]
http://tug.org/mailman/listinfo/latex2html

Reply via email to