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

Incorrect textequation syntax #237

Open
djn-ams opened this issue Feb 14, 2025 · 0 comments
Open

Incorrect textequation syntax #237

djn-ams opened this issue Feb 14, 2025 · 0 comments

Comments

@djn-ams
Copy link
Collaborator

djn-ams commented Feb 14, 2025

There's a fundamental incompatibility between how texml and tex handle the textequation environment. Specifically, the usual tex version accepts an optional argument (which is actually mandatory if you wish to label [or tag] the textequation) whereas the texml implementation takes no such optional argument.

Here's the relevant bit of the texml implementation:1

\newenvironment{textequation}{%
...

And here's the tex implementation:2

\newenvironment{textequation}[1][]{%
...

This incompatibility means, when producing HTML, textequation produces a superfluous pair of [, ]s. As the optional argument structure is, more-or-less, necessary for the tex implementation, it'd probably be best to change the texml implementation to match.

Footnotes

  1. /ams/texmf/texml/lib/perl/TeX/Interpreter/Package/amsmath.pm

  2. /ams/texmf/archive/texlive2016/texmf-prd/tex/latex/amscls/amsart.cfg

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

No branches or pull requests

1 participant