Add patches for latex-lab math compatibility
This commit is contained in:
parent
be474c633a
commit
e74bca7eac
@ -264,7 +264,7 @@
|
|||||||
\restorealignstate@
|
\restorealignstate@
|
||||||
\egroup
|
\egroup
|
||||||
\nonumber
|
\nonumber
|
||||||
\ifnum0=‘{\fi\iffalse}\fi
|
\ifnum0=`{\fi\iffalse}\fi
|
||||||
\else
|
\else
|
||||||
$$
|
$$
|
||||||
\fi
|
\fi
|
||||||
|
@ -57,3 +57,7 @@
|
|||||||
\__luamml_kernel_define_character:Nnn \longleftrightarrow {3} {27f7}
|
\__luamml_kernel_define_character:Nnn \longleftrightarrow {3} {27f7}
|
||||||
\__luamml_kernel_define_character:Nnn \longmapsto {4} {27fc}
|
\__luamml_kernel_define_character:Nnn \longmapsto {4} {27fc}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
\IfFileLoadedT {latex-lab-math.ltx} {
|
||||||
|
\RequirePackage{luamml-patches-lab-math}
|
||||||
|
}
|
||||||
|
30
luamml-patches-lab-math.sty
Normal file
30
luamml-patches-lab-math.sty
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
\ProvidesExplPackage {luamml-patches-lab-math} {2021-05-30} {0.0.1-alpha}
|
||||||
|
{Feel free to add a description here}
|
||||||
|
|
||||||
|
\AddToHook{begindocument} {
|
||||||
|
\cs_set:Npn \common@align@ending {
|
||||||
|
\math@cr
|
||||||
|
\black@ \totwidth@
|
||||||
|
\__luamml_amsmath_finalize_table:n {align}
|
||||||
|
\egroup
|
||||||
|
\ifingather@
|
||||||
|
\restorealignstate@
|
||||||
|
\egroup
|
||||||
|
\nonumber
|
||||||
|
\ifnum0=`{\fi\iffalse}\fi
|
||||||
|
\else
|
||||||
|
$$
|
||||||
|
\fi
|
||||||
|
\ignorespacesafterend
|
||||||
|
}
|
||||||
|
\show \__math_env_gather_end:
|
||||||
|
\show \endgather
|
||||||
|
% \cs_set:Npn \endgather {
|
||||||
|
% \math@cr
|
||||||
|
% \black@ \totwidth@
|
||||||
|
% \__luamml_amsmath_finalize_table:n {gather}
|
||||||
|
% \egroup
|
||||||
|
% $$
|
||||||
|
% \ignorespacesafterend
|
||||||
|
% }
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user