miniltx颜色冲突

miniltx颜色冲突

我正在使用 Plain TeX 编写包含插图并使用彩色类型的文档。我发现当我加载两者时miniltxcolor控制台上会显示错误消息。查看发生错误的文件后,我发现我完全无法理解。有人能建议如何克服这个问题吗?这是我的源代码和控制台消息

源代码

\input color


\hrule


\input miniltx

\def\Gin@driver{dvips.def}
\input graphicx.sty

\resetatcatcode


\centerline{ \includegraphics[width=2.5in]{Klein125}}
\kern -20pt
\centerline{Figure 125}
\hrule

\bye

控制台消息

This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=pdftex)
 restricted \write18 enabled.
entering extended mode
(./Klein in TeX copy.tex
(/usr/local/texlive/2015/texmf-dist/tex/plain/graphics-pln/color.tex
(/usr/local/texlive/2015/texmf-dist/tex/plain/graphics-pln/miniltx.tex)
(/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/color.sty
(/usr/local/texlive/2015/texmf-dist/tex/latex/latexconfig/color.cfg)
(/usr/local/texlive/2015/texmf-dist/tex/latex/pdftex-def/pdftex.def
(/usr/local/texlive/2015/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/local/texlive/2015/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)
(/usr/local/texlive/2015/texmf-dist/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
)))) (/usr/local/texlive/2015/texmf-dist/tex/plain/graphics-pln/miniltx.tex)
(/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/graphics.sty
/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/graphics.sty:34: Use of \
@ doesn't match its definition.
l.34 \@m
        akeother\"%
? 
Process aborted

答案1

发布的代码在 texlive 2020 中运行无错误

在此处输入图片描述

\input color


\hrule


\input miniltx

\def\Gin@driver{dvips.def}
\input graphicx.sty

\resetatcatcode


\centerline{ \includegraphics[width=2.5in]{example-image}}
\kern -20pt
\centerline{Figure 125}
\hrule

\bye

相关内容