| 1 |
%% |
| 2 |
%% This is file `latex-lab-mathpkg.ltx', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% latex-lab-mathpkg.dtx (with options: `kernel') |
| 8 |
%% |
| 9 |
%% This is a generated file. |
| 10 |
%% |
| 11 |
%% Copyright 2021-2025 LaTeX Project |
| 12 |
%% |
| 13 |
%% This file was generated from file(s) of the `LaTeX-lab Bundle'. |
| 14 |
%% ------------------------------------------------------------------------------------ |
| 15 |
%% |
| 16 |
%% It may be distributed and/or modified under the |
| 17 |
%% conditions of the LaTeX Project Public License, either version 1.3c |
| 18 |
%% of this license or (at your option) any later version. |
| 19 |
%% The latest version of this license is in |
| 20 |
%% http://www.latex-project.org/lppl.txt |
| 21 |
%% and version 1.3c or later is part of all distributions of LaTeX |
| 22 |
%% version 2008 or later. |
| 23 |
%% |
| 24 |
%% This file may only be distributed together with a copy of the LaTeX |
| 25 |
%% `LaTeX-lab Bundle'. You may however distribute the `LaTeX-lab Bundle' |
| 26 |
%% without such generated files. |
| 27 |
%% |
| 28 |
%% The newest sources can be found below |
| 29 |
%% |
| 30 |
%% https://github.com/latex3/latex2e/required/latex-lab |
| 31 |
%% |
| 32 |
%% where one can also log issues in case there are any. |
| 33 |
%% |
| 34 |
%% |
| 35 |
%% File: latex-lab-mathpkg.dtx |
| 36 |
\ProvidesFile{latex-lab-mathpkg.ltx} |
| 37 |
[2025-06-20 v0.1c mathpkg adaptions] |
| 38 |
\AddToHook{package/breqn/after}{ |
| 39 |
\RegisterMathEnvironment{dmath} |
| 40 |
\RegisterMathEnvironment{dgroup*} |
| 41 |
\AddToHook{env/dmath/begin}{\tagpdfparaOff} |
| 42 |
\AddToHook{env/dgroup*/begin}{\tagpdfparaOff} |
| 43 |
} |
| 44 |
\AddToHook{package/cases/before}{\RequirePackage{amsmath}} |
| 45 |
\AddToHook{package/cases/after}{ |
| 46 |
\RegisterMathEnvironment{subnumcases} |
| 47 |
} |
| 48 |
\ExplSyntaxOn |
| 49 |
\AddToHook{package/bm/after} |
| 50 |
{ |
| 51 |
\def\bm@pmb@@#1#2#3{{% |
| 52 |
\hbox_set:Nn\l__math_tmpa_box{$\m@th#1#3$}% |
| 53 |
\dimen@#2\wd\tw@ |
| 54 |
\rlap{\box_use:N\l__math_tmpa_box}% |
| 55 |
\tag_mc_end:\tag_mc_begin:n{artifact} |
| 56 |
\tag_mc_reset_box:N\l__math_tmpa_box |
| 57 |
\kern\dimen@ |
| 58 |
\raise1.5\dimen@\rlap{\box_use:N\l__math_tmpa_box}% |
| 59 |
\kern\dimen@ |
| 60 |
\box_use_drop:N\l__math_tmpa_box |
| 61 |
\tag_mc_end:\tag_mc_begin:n{}% |
| 62 |
}} |
| 63 |
} |
| 64 |
\ExplSyntaxOff |
| 65 |
\AddToHook{package/accents/before}{\RequirePackage{amsmath}} |
| 66 |
\AddToHook{package/cleveref/before}{\RequirePackage{amsmath}} |
| 67 |
\AddToHook{package/esint/before}{\RequirePackage{amsmath}} |
| 68 |
\AddToHook{package/grmath/before}{\RequirePackage{amsmath}} |
| 69 |
\AddToHook{package/mathabx/before}{\RequirePackage{amsmath}} |
| 70 |
\AddToHook{package/wasysym/before}{\RequirePackage{amsmath}} |
| 71 |
\endinput |
| 72 |
%% |
| 73 |
%% End of file `latex-lab-mathpkg.ltx'. |