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

text equation: unexpected whitespace when tag includes math mode #238

Open
pkra opened this issue Feb 17, 2025 · 1 comment
Open

text equation: unexpected whitespace when tag includes math mode #238

pkra opened this issue Feb 17, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@pkra
Copy link
Member

pkra commented Feb 17, 2025

Found in tran8745

Minimal use case:

\begin{textequation}\tag{HR}\label{HR1}
    A
\end{textequation}
\begin{textequation}\tag{$HR$}\label{HR1}
B
\end{textequation}

becomes

  <disp-formula content-type="text" id="ltxid4">
    <p>A</p>
    <tag parens="yes">HR</tag>
  </disp-formula>
  <disp-formula content-type="text" id="ltxid5">
    <p>B</p>
    <tag parens="yes">
      <inline-formula content-type="math/tex">
        <tex-math>HR</tex-math>
      </inline-formula>
    </tag>
  </disp-formula>

The additional whitespace in the second tag element is unexpected. Downstream we end up with spaces after/before parentheses.

@pkra
Copy link
Member Author

pkra commented Feb 17, 2025

A solution might be via #231.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant