LaTeXML icon indicating copy to clipboard operation
LaTeXML copied to clipboard

spacing tweak for {tabbing}

Open Spamakin opened this issue 1 year ago • 2 comments
trafficstars

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

Spamakin avatar Dec 18 '23 05:12 Spamakin

@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.

dginev avatar Jan 01 '24 18:01 dginev

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

Spamakin avatar Jan 01 '24 21:01 Spamakin