Skip to content

Commit

Permalink
disable math grabbing in begindocument
Browse files Browse the repository at this point in the history
  • Loading branch information
u-fischer committed Jan 28, 2024
1 parent 053830b commit 3d10344
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions required/latex-lab/changes.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-01-29 Ulrike Fischer <[email protected]>
* latex-lab-math.dtx: disable mathgrabbing in begindocument hook.

2024-01-18 Ulrike Fischer <[email protected]>
* latex-lab-firstaid.dtx: add support for \authors from amsart.

Expand Down
14 changes: 14 additions & 0 deletions required/latex-lab/latex-lab-math.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -1828,6 +1828,20 @@
}
% \end{macrocode}
% \end{macro}
%
% \subsection{Disable math grabbing in the begindocument hook}
% For example amsart uses math to measure text there.
%
% \begin{macrocode}
\tl_gput_right:Nn\@kernel@before@begindocument
{
\bool_set_true:N\l__math_collected_bool
}
\tl_gput_right:Nn\@kernel@after@begindocument
{
\bool_set_false:N\l__math_collected_bool
}
% \end{macrocode}
%
% \subsection{Modifying \pkg{amsmath}}
%
Expand Down

0 comments on commit 3d10344

Please sign in to comment.