LaTeXML icon indicating copy to clipboard operation
LaTeXML copied to clipboard

\llap does not shift to the left, creates newlines

Open xworld21 opened this issue 1 year ago • 2 comments

\llap is supposed to put its content to the left of the current position, but the HTML generated by LaTeXML does not do that. The resulting box will also pile all text in a column because of width:0.0pt. Just try the following:

\parindent=0pt

Sufficiently long text \llap{with overlap}

The overlap direction can be fixed with direction:rtl;; to be safe, one must also create a further wrapper which restores the intended direction. The characters piling up can be fixed with white-space: nowrap.

Note also that the \parident=0pt should not be necessary... the LaTeXML CSS adds text-indent even inside the boxes created by \hbox (I am too lazy right now to create another issue!).

xworld21 avatar Jan 02 '25 13:01 xworld21

This will likely also need a reasonable treatment for \hss which is currently a no-op.

dginev avatar Jan 02 '25 17:01 dginev

This will likely also need a reasonable treatment for \hss which is currently a no-op.

As far as I can tell, there is no need for \hss here, CSS will put the text in the right place automatically.

xworld21 avatar Jan 03 '25 20:01 xworld21