brucemiller / LaTeXML

LaTeXML: a TeX and LaTeX to XML/HTML/ePub/MathML translator.
http://dlmf.nist.gov/LaTeXML/
Other
942 stars 101 forks source link

spacing tweak for {tabbing} #2284

Open Spamakin opened 10 months ago

Spamakin commented 10 months ago

When I compile the following code to a PDF, the tabbing environment works just fine. However, it is not rendering into HTML properly. Consider the following minimal tex code:

\documentclass{article}

\title{Blog Testing}
\author{Anakin Dey}

\begin{document}
\maketitle

\begin{tabbing}
  \quad\=\qquad\=\qquad\=\qquad\=\qquad\=\qquad\=\kill
  \textsc{Function}$(x)$:\+
  \\  \textbf{return} $x$
\end{tabbing}

\end{document}

The PDF produced using pdflatex is as follows image

However, here is the HTML output: image

This was produced by running the following command

latexml --dest=main.xml main && latexmlpost --dest=main.html main.xml
dginev commented 10 months ago

@Spamakin just to be clear - is the issue here that the leading space before return is getting trimmed?

That is the piece I managed to reproduce locally.

Spamakin commented 10 months ago

Yup that is the issue. That bolded return should be indented but is not.