Skip to content

Commit

Permalink
\new@ifnextchar is provided by amsgen, need earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
RuixiZhang42 committed Nov 14, 2020
1 parent f9492a5 commit 684c82f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions mtpro2-patch.tex
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,11 @@
used. So ##1 and ##2 will be gobbled and have no effect.}%
}%
}
% amsmath unfortunately codes \AtBeginDocument{\reset@strutbox@},
% therefore any fix for \strutbox@ using \fontdimen22 must occur
% after this. One must load amsmath prior and we make sure of it.
% We also need \new@ifnextchar for \redistributestrutht.
\RequirePackage{amsmath}
\newcommand*\redistributestrutht[1]{%
\new@ifnextchar\bgroup
{\redistributestrutht@t@s{#1}}%
Expand Down Expand Up @@ -547,10 +552,6 @@
used. So ##1 and so on will be gobbled and have no effect.}%
}%
}
% amsmath unfortunately codes \AtBeginDocument{\reset@strutbox@},
% therefore any fix for \strutbox@ using \fontdimen22 must occur
% after this. One must load amsmath prior and we make sure of it.
\RequirePackage{amsmath}
% https://github.com/latex3/latex2e/issues/160
\patchcmd\math@cr@@@aligned
{\next@ \cr}
Expand Down

0 comments on commit 684c82f

Please sign in to comment.