在运行各种 texlive 安装的各种 Mac 上,我在输出中得到了一行额外的文本,如下所示:
“tx@Dict begin Rand end{<}randomgraygray tx@Dict begin Rand end{<}gray tx@Dict begin Rand end{<}randomgray” 不带括号 { }
平均能量损失
\documentclass[10pt]{article}
\usepackage{pstricks}
\begin{document}
\section{Start}
Here we go.
\end{document}
我正在使用 Mojave 和 Texshop,并全新安装了 texlive 2019,但多年来我在多台电脑上都遇到过这个问题。无论我使用 xelatex 还是普通 latex 都没有关系
日志文件包含如下消息:
/usr/local/texlive/2019/texmf-dist/tex/generic/pstricks/pstricks.tex:662: Illeg
al unit of measure (pt inserted).
<to be read again>
和
Runaway argument?
tx@Dict begin Rand Rand Rand end\p@ <\z@ 0\@@ \@@drv \ifx \@@cls \@empty \ETC.
/usr/local/texlive/2019/texmf-dist/tex/generic/pstricks/pstricks.tex:667: Parag
raph ended before \c@lor@@rgb was complete.
<to be read again>
\par
l.667
以下是使用 \listfile 得到的文件列表
文件列表
article.cls 2018/09/03 v1.4i 标准 LaTeX 文档类 size10.clo 2018/09/03 v1.4i 标准 LaTeX 文件(大小选项) pstricks.sty 2018/12/21 v0.69 PSTricks' (RN,HV) iftex.sty 2013/04/04 v0.2 Provides if(tex) conditional for PDFTeX, XeTeX, and LuaTeX shellesc.sty 2016/06/07 v0.02a unified shell escape interface for LaTeX xcolor.sty 2004/07/04 v2.00 LaTeX color extensions (UK) color.cfg 2016/01/02 v1.6 sample color configuration dvips.def 2017/06/20 v3.1d Graphics/color driver for dvips pst-xkey.tex 2005/11/25 v1.6 PSTricks specialization of xkeyval (HA) pst-xkey.tex 2005/11/25 v1.6 PSTricks specialization of xkeyval (HA) xkeyval.sty 2014/12/03 v2.7a package option processing (HA) xkeyval.tex 2014/12/03 v2.7a key=value parser (HA) pstricks.tex 2019/05/11 v2.97
PSTricks' 的 LaTeX 包装器(tvz、hv) pst-fp.tex 2019/05/11 v2.97 `PST-fp' (hv)
如果需要的话,这里是完整的日志文件:
这是 pdfTeX,版本 3.14159265-2.6-1.40.20(TeX Live 2019)(预加载格式=latex 2019.8.13)2019 年 8 月 22 日 09:42 进入扩展模式限制 \write18 已启用。file:line:error 样式消息已启用。%&-line 解析已启用。 **test.tex (./test.tex LaTeX2e <2018-12-01> (/usr/local/texlive/2019/texmf-dist/tex/latex/base/article.cls 文档类:article 2018/09/03 v1.4i 标准 LaTeX 文档类 (/usr/local/texlive/2019/texmf-dist/tex/latex/base/size10.clo 文件:size10.clo 2018/09/03 v1.4i 标准 LaTeX 文件 (size 选项) ) \c@part=\count80 \c@section=\count81 \c@subsection=\count82 \c@subsubsection=\count83 \c@paragraph=\count84 \c@subparagraph=\count85 \c@figure=\count86 \c@table=\count87 \abovecaptionskip=\skip41 \belowcaptionskip=\skip42 \bibindent=\dimen102 )(/usr/local/texlive/2019/texmf-dist/tex/latex/pstricks/pstricks.sty 软件包:pstricks 2018/12/21 v0.69 `PSTricks' 的 LaTeX 包装器(RN、HV)
(/usr/local/texlive/2019/texmf-dist/tex/generic/iftex/iftex.sty 软件包:iftex 2013/04/04 v0.2 为 PDFTeX、XeTeX 和 LuaTeX 提供 if(tex) 条件 )(/usr/local/texlive/2019/texmf-dist/tex/latex/tools/shellesc.sty 软件包:shellesc 2016/06/07 v0.02a LaTeX 的统一 shell 转义接口 软件包 shellesc 信息:在输入行 69 上启用了受限的 shell 转义。 )(/Users/reiss/Library/texmf/tex/latex/xcolor/xcolor.sty 软件包:xcolor 2004/07/04 v2.00 LaTeX 颜色扩展(英国)
(/usr/local/texlive/2019/texmf-dist/tex/latex/graphics-cfg/color.cfg 文件:color.cfg 2016/01/02 v1.6 示例颜色配置)软件包 xcolor 信息:驱动文件:dvips.def 位于输入行 136。
(/usr/local/texlive/2019/texmf-dist/tex/latex/graphics-def/dvips.def 文件:dvips.def 2017/06/20 v3.1d dvips 的图形/颜色驱动程序)软件包 xcolor 信息:cmy' added on input line 972. Package xcolor Info: Color model
在输入行 1000 上添加了“颜色模型 HTML”。软件包 xcolor 信息:HSB' added on input line 1006. Package xcolor Info: Color model
在输入行 1012 上添加了“颜色模型 Gray”。)(/usr/local/texlive/2019/texmf-dist/tex/generic/xkeyval/pst-xkey.tex 文件:pst-xkey.tex 2005/11/25 v1.6 PSTricks 对 xkeyval 的专业化(HA)
(/usr/local/texlive/2019/texmf-dist/tex/latex/xkeyval/xkeyval.sty 包:xkeyval 2014/12/03 v2.7a 包选项处理(HA)
(/usr/local/texlive/2019/texmf-dist/tex/generic/xkeyval/xkeyval.tex (/usr/local/texlive/2019/texmf-dist/tex/generic/xkeyval/xkvutils.tex \XKV@toks=\toks14 \XKV@tempa@toks=\toks15
(/usr/local/texlive/2019/texmf-dist/tex/generic/xkeyval/keyval.tex)) \XKV@depth=\count88 文件:xkeyval.tex 2014/12/03 v2.7a key=value 解析器 (HA) ))) (/usr/local/texlive/2019/texmf-dist/tex/generic/pstricks/pstricks.tex (/usr/local/texlive/2019/texmf-dist/tex/generic/pstricks/pst-fp.tex `pst-fp' v0.05, 2010/01/17 (hv) \pstFP@xs=\count89 \pstFP@xia=\count90 \pstFP@xib=\count91 \pstFP@xfa=\count92 \pstFP@xfb=\count93 \pstFP@rega=\count94 \pstFP@regb=\count95 \pstFP@regs=\count96 \pstFP@times=\count97 )(/usr/local/texlive/2019/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.te x \pgfutil@everybye=\toks16 \pgfutil@tempdima=\dimen103 \pgfutil@tempdimb=\dimen104
(/usr/local/texlive/2019/texmf-dist/tex/generic/pgf/utilities/pgfutil-common-li sts.tex))(/usr/local/texlive/2019/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex \pgfkeys@pathtoks=\toks17 \pgfkeys@temptoks=\toks18
(/usr/local/texlive/2019/texmf-dist/tex/generic/pgf/utilities/pgfkeysfiltered.code.tex \pgfkeys@tmptoks=\toks19 ))(/usr/local/texlive/2019/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex 正在加载 pgffor.code.tex (/usr/local/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex (/usr/local/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex (/usr/local/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex \pgf@x=\dimen105 \pgf@xa=\dimen106 \pgf@xb=\dimen107 \pgf@xc=\dimen108 \pgf@y=\dimen109 \pgf@ya=\dimen110 \pgf@yb=\dimen111 \pgf@yc=\dimen112 \c@pgf@counta=\count98 \c@pgf@countb=\count99 \c@pgf@countc=\count100 \c@pgf@countd=\count101 \pgfutil@tempcnta=\count102 \pgfutil@tempcntb=\count103 )(/usr/local/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex \pgfmath@dimen=\dimen113 \pgfmath@count=\count104 \pgfmath@box=\box27 \pgfmath@toks=\toks20 \pgfmath@stack@operand=\toks21 \pgfmath@stack@operation=\toks22 )(/usr/local/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code。 tex(/usr/local/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic.code.tex)(/usr/local/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigonometric.code.tex)(/usr/local/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.random.code.tex)(/usr/local/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.compa rison.code.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.base.code.tex)(/usr/local/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.round .code.tex)(/usr/local/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.misc.code.tex)(/usr/local/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.integ erarithmetics.code.tex))) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code.tex \c@pgfmathroundto@lastzeros=\count105 ))\pgffor@iter=\dimen114 \pgffor@skip=\dimen115 \pgffor@stack=\toks23 \pgffor@toks=\toks24 )\psLoopIndex=\count106
`PSTricks' v2.97 <2019/05/11> (tvz,hv) \pst@dima=\dimen116 \pst@dimb=\dimen117 \pst@dimc=\dimen118 \pst@dimd=\dimen119 \pst@dimg=\dimen120 \pst@dimh=\dimen121 \pst@dimm=\dimen122 \pst@dimn=\dimen123 \pst@dimo=\dimen124 \pst@dimp=\dimen125 \pst@hbox=\box28 \pst@ibox=\box29 \pst@boxg=\box30 \pst@cnta=\count107 \pst@cntb=\count108 \pst@cntc=\count109 \pst@cntd=\count110 \pst@cntg=\count111 \pst@cnth=\count112 \pst@cntm=\count113 \pst@cntn=\count114 \pst@cnto=\count115 \pst@cntp=\count116 @zero=\count117 \pst@toks=\toks25 (/usr/local/texlive/2019/texmf-dist/tex/generic/pstricks/pstricks.con) /usr/local/texlive/2019/texmf-dist/tex/generic/pstricks/pstricks.tex:662: 缺少数字,视为零。t l.662 }
? /usr/local/texlive/2019/texmf-dist/tex/generic/pstricks/pstricks.tex:662: 非法计量单位(插入 pt)。t l.662 }
? /usr/local/texlive/2019/texmf-dist/tex/generic/pstricks/pstricks.tex:662: 缺少 = 插入 \ifdim。t l.662 }
? /usr/local/texlive/2019/texmf-dist/tex/generic/pstricks/pstricks.tex:662: 缺少数字,视为零。t l.662 }
? /usr/local/texlive/2019/texmf-dist/tex/generic/pstricks/pstricks.tex:662: 非法计量单位(插入 pt)。t l.662 }
? /usr/local/texlive/2019/texmf-dist/tex/generic/pstricks/pstricks.tex:662: 缺少数字,视为零。t l.662 }
? /usr/local/texlive/2019/texmf-dist/tex/generic/pstricks/pstricks.tex:662: 非法计量单位(插入 pt)。t l.662 }
?
/usr/local/texlive/2019/texmf-dist/tex/generic/pstricks/pstricks.tex:662: LaTeX 错误:缺少 \begin{document}。
请参阅 LaTeX 手册或 LaTeX Companion 了解解释。输入 H 可立即获得帮助。...
l.662 }
? /usr/local/texlive/2019/texmf-dist/tex/generic/pstricks/pstricks.tex:662: 缺少数字,视为零。< l.662 }
? /usr/local/texlive/2019/texmf-dist/tex/generic/pstricks/pstricks.tex:662: 非法计量单位(插入 pt)。< l.662 }
? /usr/local/texlive/2019/texmf-dist/tex/generic/pstricks/pstricks.tex:662: 缺少数字,视为零。< l.662 }
? /usr/local/texlive/2019/texmf-dist/tex/generic/pstricks/pstricks.tex:662: 非法计量单位(插入 pt)。< l.662 }
? /usr/local/texlive/2019/texmf-dist/tex/generic/pstricks/pstricks.tex:662: 缺少数字,视为零。@temptokena l.662 }
? /usr/local/texlive/2019/texmf-dist/tex/generic/pstricks/pstricks.tex:662: 未定义的控制序列。...v @temptokena \expandafter {@@col }\csname color@@@cls \exp... l.662 }
? /usr/local/texlive/2019/texmf-dist/tex/generic/pstricks/pstricks.tex:662: 缺少数字,视为零。< l.662 }
? /usr/local/texlive/2019/texmf-dist/tex/generic/pstricks/pstricks.tex:662: 非法计量单位(插入 pt)。< l.662 }
? /usr/local/texlive/2019/texmf-dist/tex/generic/pstricks/pstricks.tex:662: 非法计量单位(插入 pt)。{ l.662 }
? /usr/local/texlive/2019/texmf-dist/tex/generic/pstricks/pstricks.tex:662: 缺少数字,视为零。t l.662 }
? /usr/local/texlive/2019/texmf-dist/tex/generic/pstricks/pstricks.tex:662: 非法计量单位(插入 pt)。t l.662 }
? /usr/local/texlive/2019/texmf-dist/tex/generic/pstricks/pstricks.tex:662: 缺少 = 插入 \ifdim。t l.662 }
? /usr/local/texlive/2019/texmf-dist/tex/generic/pstricks/pstricks.tex:662: 缺少数字,视为零。t l.662 }
? /usr/local/texlive/2019/texmf-dist/tex/generic/pstricks/pstricks.tex:662: 非法计量单位(插入 pt)。t l.662 }
? 失控参数?tx@Dict begin Rand Rand Rand end\p@ <\z@ 0@@ @@drv \ifx @@cls @empty \ETC。/usr/local/texlive/2019/texmf-dist/tex/generic/pstricks/pstricks.tex:667: Parag raph 在 \c@lor@@rgb 完成之前结束。\par l.667
? \psunit=\dimen126 \psxunit=\dimen127 \psyunit=\dimen128 \pst@C@@rType=\count118 \pslinewidth=\dimen129 \psk@startLW=\dimen130 \psk@endLW=\dimen131 \pst@customdefs=\toks26 \pslinearc=\dimen132 \pst@symbolStep=\dimen133 \pst@symbolWidth=\dimen134 \pst@symbolLinewidth=\dimen135 \everypsbox=\toks27 \psframesep=\dimen136 \pslabelsep=\dimen137 \sh@wgridXunit=\dimen138 \sh@wgridYunit=\dimen139 \pst@shift=\dimen140 )文件:pstricks.tex 2019/05/11 v2.97 PSTricks' (tvz,hv) (/usr/local/texlive/2019/texmf-dist/tex/generic/pstricks/pst-fp.tex) File: pst-fp.tex 2019/05/11 v2.97
PST-fp' (hv) ) (./test.aux) \openout1 = `test.aux'。
LaTeX 字体信息:检查输入行 5 上 OML/cmm/m/it 的默认值。LaTeX 字体信息:...输入行 5 上没问题。LaTeX 字体信息:检查输入行 5 上 T1/cmr/m/n 的默认值。LaTeX 字体信息:...输入行 5 上没问题。LaTeX 字体信息:检查输入行 5 上 OT1/cmr/m/n 的默认值。LaTeX 字体信息:...输入行 5 上没问题。LaTeX 字体信息:检查输入行 5 上 OMS/cmsy/m/n 的默认值。LaTeX 字体信息:...输入行 5 上没问题。LaTeX 字体信息:检查输入行 5 上 OMX/cmex/m/n 的默认值。LaTeX 字体信息:...输入行 5 上没问题。LaTeX 字体信息:检查输入行 5 上 U/cmr/m/n 的默认值。LaTeX 字体信息:...输入行 5 上没问题。[1
](./test.aux)
文件列表
article.cls 2018/09/03 v1.4i 标准 LaTeX 文档类 size10.clo 2018/09/03 v1.4i 标准 LaTeX 文件(大小选项) pstricks.sty 2018/12/21 v0.69 PSTricks' (RN,HV) iftex.sty 2013/04/04 v0.2 Provides if(tex) conditional for PDFTeX, XeTeX, and LuaTeX shellesc.sty 2016/06/07 v0.02a unified shell escape interface for LaTeX xcolor.sty 2004/07/04 v2.00 LaTeX color extensions (UK) color.cfg 2016/01/02 v1.6 sample color configuration dvips.def 2017/06/20 v3.1d Graphics/color driver for dvips pst-xkey.tex 2005/11/25 v1.6 PSTricks specialization of xkeyval (HA) pst-xkey.tex 2005/11/25 v1.6 PSTricks specialization of xkeyval (HA) xkeyval.sty 2014/12/03 v2.7a package option processing (HA) xkeyval.tex 2014/12/03 v2.7a key=value parser (HA) pstricks.tex 2019/05/11 v2.97
PSTricks' 的 LaTeX 包装器(tvz、hv) pst-fp.tex 2019/05/11 v2.97 `PST-fp' (hv)
)(\end 发生在 1 级组内)
半单群(1 级)输入于第 662 行 (\begingroup)
底层
(\end 发生在第 662 行的 \ifx 不完整时)这是您使用的 TeX 内存量: 492610 个中的 7280 个字符串 6129074 个中的 134550 个字符串字符 5000000 个中的 192330 个字内存 15000+600000 个中的 11171 个多字母控制序列 16 种字体的 4245 个字字体信息,9000 个中的 8000000 个 8191 个中的 1141 个连字异常 5000i、500n、10000p、200000b、80000s 中的 36i、5n、41p、395b、1424s 堆栈位置
输出写在 test.dvi 上(1 页,920 字节)。
答案1
通过 MacTeX 重新安装解决了该问题,不仅适用于 texlive 2019,也适用于较旧的安装。