brucemiller / LaTeXML

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

Support \tag* for marks #1953

Open dginev opened 2 years ago

dginev commented 2 years ago

The reason I am opening this issue is that I saw this technique recommended online, and noticed latexml can't emulate it. Definitely not a high priority, but good to keep a record.

Minimal self-contained example:

\documentclass{article}
\usepackage{amsmath}
\usepackage{amsthm}
\begin{document}

\begin{proof}
\[
1+1=2  \tag*{\qed}
\]
done. \phantom{\qedhere}
\end{proof}

\end{document}

We would expect the QED mark at the usual spot for an equation number. Here's the PDF rendering:

brucemiller commented 2 years ago

hmm... it used to work...

dginev commented 2 years ago

Oh, we should make it a test if so, might be a particularly fragile bit of logic.

brucemiller commented 2 years ago

Actually, it still works fine for numbered equations; but it apparently doesn't know that it's supposed to turn unnumbered one into numbered (sorta) ones.

dginev commented 2 years ago

Right, I had assumed we simply hadn't extended the support for somehow embedding arbitrary marks. Switching back to a "fresh bug report" label :>