Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

\llap does not shift to the left, creates newlines #2474

Open
xworld21 opened this issue Jan 2, 2025 · 2 comments · May be fixed by #2475
Open

\llap does not shift to the left, creates newlines #2474

xworld21 opened this issue Jan 2, 2025 · 2 comments · May be fixed by #2475

Comments

@xworld21
Copy link
Contributor

xworld21 commented Jan 2, 2025

\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!).

@dginev dginev added this to the LaTeXML-0.9 milestone Jan 2, 2025
@dginev
Copy link
Collaborator

dginev commented Jan 2, 2025

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

@xworld21
Copy link
Contributor Author

xworld21 commented Jan 3, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants