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

latexml omits parentheses from tag #533

Closed
swalter62 opened this issue Oct 10, 2014 · 2 comments
Closed

latexml omits parentheses from tag #533

swalter62 opened this issue Oct 10, 2014 · 2 comments
Labels
Milestone

Comments

@swalter62
Copy link

@swalter62 swalter62 commented Oct 10, 2014

LaTeX interprets the contents of \tag{}, in math mode if requested, and encloses it in parentheses. LaTeXML, on the other hand, interprets the contents in text mode, and omits the parentheses. Not quite a bug, but a surprising difference, and an ugly one, as a tag like \tag{$2'$} results not in (2'), but in $2^{\prime}$.
Here's a MWE:

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

Here's a numbered equation:
\begin{equation} 
y = mx + b
\end{equation}

Here's a numbered equation with a hand-rolled tag:
\begin{equation} 
z = mx + b\tag{$1'$}
\end{equation}
\end{document}

No errors or warnings are thrown by latexml or latexmlpost, but I can post the output if so desired.
The LaTeXML \tag{} behavior is not difficult to work around, but it would be handy to be able to use math mode in tags, all the same.

@dginev dginev added this to the LaTeXML-0.9 milestone Oct 10, 2014
@brucemiller
Copy link
Owner

@brucemiller brucemiller commented Apr 7, 2018

Finally!! Fixed!!! Thanks for the report!

@brucemiller brucemiller closed this Apr 7, 2018
@swalter62
Copy link
Author

@swalter62 swalter62 commented Apr 7, 2018

Thanks a million, Bruce!

@dginev dginev modified the milestones: LaTeXML-0.9, LaTeXML-0.8.3 Apr 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants