Closed jfbu closed 1 week ago
This issue has been automatically marked as stale because it has not had recent activity.
This issue has been automatically marked as stale because it has not had recent activity.
In general, setting chars math active is not supported by LaTeX: there is a pre-defined set of chars that are covered, and that is all we support. If you want to use others, you have to take steps to sort issues.
Brief outline of the bug
Making the
(
mathematically active breaks amsmath\resetMathstrut@
.Minimal example showing the bug
Commenting out the
\usepackage{amsmath}
line, the document compiles.Log file (required) and possibly PDF file
pdflatex --halt-on-error mathstrutactive
mathstrutactive.log
Additional context
My package mathastext overrides
\resetMathstrut@
with its own version to work around that problem. The replacement (which dates back to 2013) is found in its macro\mst@nonlettersobeymathxx
. Here copied pasted frommathastext.pdf
with code line numbers (top of page 60)and is probably a bit too naive. Some comments are found on page 56 of
mathastext.pdf 1.3v
:I remember back in 2012/2013 I considered it only a quick patch, with not a lot of thinking going into my replacement. By default
mathastext
does not do the replacement, it is done if user executes\MTnonlettersobeymathxx
(one of the effect being that parenthesis now react to the math alphabet commands).