diff options
Diffstat (limited to 'macros/plain/graphics/miniltx.tex')
-rw-r--r-- | macros/plain/graphics/miniltx.tex | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/macros/plain/graphics/miniltx.tex b/macros/plain/graphics/miniltx.tex index 6f4085dbc0..8a747790bf 100644 --- a/macros/plain/graphics/miniltx.tex +++ b/macros/plain/graphics/miniltx.tex @@ -2,7 +2,7 @@ %%% %%% Parts of LaTeX: Slightly changed/simplified in places. %%% Changes -%%% Copyright 1996-2021 David Carlisle LaTeX3 Project +%%% Copyright 1996-2022 David Carlisle LaTeX3 Project %%% Original Code %%% Copyright 1993-1996 LaTeX3 Project and original authors %%% @@ -28,6 +28,8 @@ % 2019/07/20 more updates for latex drivers % 2020/03/02 move to own git repository and add newcommand fix from issue #2 % 2021/11/15 Define \@backslashchar for issue #4 +% 2022/06/13 Define \@ehd error help (usedby color errors) +% Define fallback \mathcolor so color package does not require expl3 \edef\resetatcatcode{\catcode`\noexpand\@\the\catcode`\@\relax} @@ -325,6 +327,8 @@ \def\on@line{ on input line \the\inputlineno} \ifx\@ehc\@undefined\def\@ehc{}\fi +% 2022/06/13 +\ifx\@ehd\@undefined\def\@ehd{}\fi \def\PackageError#1#2#3{{% \newlinechar`\^^J\def\MessageBreak{^^J\space\space#1: }% @@ -537,3 +541,10 @@ \def\set@curr@file#1{\xdef\@curr@file{#1}} \fi +% 2022/06/13 +\ifx\mathcolor\@undefined + % simplified version of \mathcolor + \protected\def\mathcolor{\begingroup\@ifnextchar[\mlx@mathcolora\mlx@mathcolorb} + \long\def\mlx@mathcolora[#1]#2#3{\color[#1]{#2}#3\endgroup} + \long\def\mlx@mathcolorb#1#2{\color{#1}#2\endgroup} +\fi |