colors

David Carlisle d.p.carlisle at gmail.com
Mon Jun 13 13:00:45 CEST 2022


You should I think be able to add


\ifx\mathcolor\@undefined
  % simplified version of \mathcolor
  \protected\def\mathcolor{\begingroup\@ifnextchar[\mlx at mathcolora
\mlx at mathcolorb}
  \long\def\mlx at mathcolora[#1]#2#3{\color[#1]{#2}#3\endgroup}
  \long\def\mlx at mathcolorb#1#2{\color{#1}#2\endgroup}
\fi

to the end of miniltx.ltx  If  that works for your real documents I'll
arrange an update at ctan

David


On Mon, 13 Jun 2022 at 10:56, Gérald Tenenbaum <gerald.ten at free.fr> wrote:

> Hello,
>
> Here is a small file that used to work but doesn't anymore:
>
> \input eplain
> \beginpackages
> \usepackage{color}
> \endpackages
> \long\def\red#1{{\color{red}#1}}
> \red{ab}
> \bye
>
>
> The error message is:
>
> This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022) (preloaded
> format=pdftex)
>  restricted \write18 enabled.
> entering extended mode
> (./essai.tex (/usr/local/texlive/2022/texmf-dist/tex/eplain/eplain.tex)
> (/usr/local/texlive/2022/texmf-dist/tex/plain/graphics-pln/miniltx.tex)
> (/usr/local/texlive/2022/texmf-dist/tex/latex/graphics/color.sty
> (/usr/local/texlive/2022/texmf-dist/tex/latex/graphics-cfg/color.cfg)
> (/usr/local/texlive/2022/texmf-dist/tex/latex/graphics-def/pdftex.def)
> (/usr/local/texlive/2022/texmf-dist/tex/latex/graphics/mathcolor.ltx
> /usr/local/texlive/2022/texmf-dist/tex/latex/graphics/mathcolor.ltx:21:
> Undefined control sequence.
> l.21 \ExplSyntaxOn
>
> Many thanks for help.
> Regards,
>
> Gérald
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/texhax/attachments/20220613/02d8496d/attachment.html>


More information about the texhax mailing list.