白色未定义?

白色未定义?

我正在尝试将编译链从 lualatex + dvips + ps2pdf 更改为 pdf 模式下的 lualatex。以前可以正常工作的某些功能现在不再起作用了。

例如,此代码:

%-*- coding: utf-8 -*-

\documentclass{article}

\usepackage[svgnames]{xcolor}

\begin{document}

\white Text

\end{document}

产生错误:

This is LuaTeX, Version 1.12.0 (MiKTeX 2.9.7300 64-bit)
 restricted system commands enabled.
(./white_bug.tex
LaTeX2e <2020-02-02> patch level 5
 L3 programming layer <2020-03-06>
("C:/Program Files/MiKTeX 2.9/tex/latex/base/article.cls"
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
("C:/Program Files/MiKTeX 2.9/tex/latex/base/size10.clo"))
("C:/Program Files/MiKTeX 2.9/tex/latex/xcolor/xcolor.sty"
("C:/Program Files/MiKTeX 2.9/tex/latex/graphics-cfg/color.cfg")
("C:/Program Files/MiKTeX 2.9/tex/latex/graphics-def/luatex.def")
("C:/Program Files/MiKTeX 2.9/tex/latex/xcolor/svgnam.def"))
("C:/Program Files/MiKTeX 2.9/tex/latex/l3backend/l3backend-pdfmode.def")
(./white_bug.aux) ("C:/Program Files/MiKTeX 2.9/tex/latex/base/ts1cmr.fd")
("C:/Program Files/MiKTeX 2.9/tex/context/base/mkii/supp-pdf.mkii"
[Loading MPS to PDF converter (version 2006.09.02).]
)
! Undefined control sequence.
l.11 \white
          Text

发行版 :MikTeX 2.9

命令行 :lualatex --output-format=pdf "white_bug.tex"

将白色改为白色也不起作用......

相关内容