![.sty 文件的 beamer 错误](https://linux22.com/image/408795/.sty%20%E6%96%87%E4%BB%B6%E7%9A%84%20beamer%20%E9%94%99%E8%AF%AF.png)
我正在尝试制作一个 Beamer 演示文稿,但名称中出现了一个我不知道的外部错误pdftexcmds.sty
。即使从向导启动快速 Beamer 也会出现此错误。此错误不是来自程序,而是来自包或 LaTeX 错误。这是我得到的错误:
C:\Users\mkluw\AppData\Roaming\MiKTeX\2.9\tex/latex/pdftexcmds\pdftexcmds.sty:未定义的控制序列.....
当我单击错误时,它会显示一个具有该名称的不同程序 .sty 文件pdftexcmds.sty
,并且我也无法运行这个 .sty 文件。
错误部分的日志文件:
LaTeX Warning: You have requested, on input line 186, version
`2019/11/07' of package iftex,
but only version
`2013/04/04 v0.2 Provides if(tex) conditional for PDFTeX, XeTeX,
and LuaTeX'
is available.
! Undefined control sequence.
l.189 \ifluatex
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Extra \else.
l.190 \else
I'm ignoring this; it doesn't match any \if.
! Extra \fi.
l.271 \fi
I'm ignoring this; it doesn't match any \if.
! Undefined control sequence.
l.272 \ifluatex
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
l.273 \ifnum\luatexversion
<36 %
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Missing number, treated as zero.
<to be read again>
<
l.273 \ifnum\luatexversion<
36 %
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)
! Undefined control sequence.
\pdftexcmds@directlua ->\directlua
0
l.281 \pdftexcmds@directlua
{%
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.281 \pdftexcmds@directlua
{%
You're in trouble here. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
! Extra \fi.
l.291 \fi
I'm ignoring this; it doesn't match any \if.
! Undefined control sequence.
l.316 \ifluatex
\else
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Extra \else.
l.316 \ifluatex\else
I'm ignoring this; it doesn't match any \if.
! Extra \fi.
l.340 \fi
I'm ignoring this; it doesn't match any \if.
Package pdftexcmds Info: \pdf@primitive is available.
Package pdftexcmds Info: \pdf@ifprimitive is available.
! Undefined control sequence.
l.421 \ifluatex
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Extra \else.
l.425 \else
I'm ignoring this; it doesn't match any \if.
! Extra \fi.
l.427 \fi
I'm ignoring this; it doesn't match any \if.
Package pdftexcmds Info: \pdfdraftmode found.
! Undefined control sequence.
l.485 \ifluatex
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Extra \else.
l.486 \else
I'm ignoring this; it doesn't match any \if.
! Extra \fi.
l.488 \fi
%
I'm ignoring this; it doesn't match any \if.
) ("C:\Program Files\MiKTeX 2.9\tex/generic/oberdiek\kvsetkeys.sty"
Package: kvsetkeys 2016/05/16 v1.17 Key value parser (HO)
("C:\Program Files\MiKTeX 2.9\tex/generic/oberdiek\etexcmds.sty"
Package: etexcmds 2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO)
("C:\Program Files\MiKTeX 2.9\tex/generic/oberdiek\ifluatex.sty"
Package: ifluatex 2016/05/16 v1.4 Provides the ifluatex switch (HO)
Package ifluatex Info: LuaTeX not detected.
)))
("C:\Program Files\MiKTeX 2.9\tex/generic/oberdiek\kvdefinekeys.sty"
Package: kvdefinekeys 2016/05/16 v1.4 Define keys (HO)
)
("C:\Program Files\MiKTeX 2.9\tex/generic/oberdiek\pdfescape.sty"
Package: pdfescape 2016/05/16 v1.14 Implements pdfTeX's escape features (HO)
)
("C:\Program Files\MiKTeX 2.9\tex/latex/oberdiek\hycolor.sty"
Package: hycolor 2016/05/16 v1.8 Color options for hyperref/bookmark (HO)
("C:\Program Files\MiKTeX 2.9\tex/latex/oberdiek\xcolor-patch.sty"
Package: xcolor-patch 2016/05/16 xcolor patch
("C:\Program Files\MiKTeX 2.9\tex/latex/oberdiek\hopatch.sty"
Package: hopatch 2016/05/16 v1.3 Wrapper for package hooks (HO)
)))
("C:\Program Files\MiKTeX 2.9\tex/latex/oberdiek\letltxmacro.sty"
Package: letltxmacro 2016/05/16 v1.5 Let assignment for LaTeX macros (HO)
))
("C:\Program Files\MiKTeX 2.9\tex/latex/oberdiek\auxhook.sty"
Package: auxhook 2016/05/16 v1.4 Hooks for auxiliary files (HO)
)
("C:\Program Files\MiKTeX 2.9\tex/latex/oberdiek\kvoptions.sty"
Package: kvoptions 2016/05/16 v3.12 Key value format for package options (HO)
)
\@linkdim=\dimen165
\Hy@linkcounter=\count122
\Hy@pagecounter=\count123
("C:\Program Files\MiKTeX 2.9\tex/latex/hyperref\pd1enc.def"
File: pd1enc.def 2019/06/12 v6.88h Hyperref: PDFDocEncoding definition (HO)
Now handling font encoding PD1 ...
... no UTF-8 mapping file for font encoding PD1
)
("C:\Program Files\MiKTeX 2.9\tex/generic/oberdiek\intcalc.sty"
Package: intcalc 2016/05/16 v1.2 Expandable calculations with integers (HO)
)
\Hy@SavedSpaceFactor=\count124
Overfull \hbox (22.475pt too wide) in paragraph at lines 281--2643
[]\OT1/cmr/m/n/10.95 0
[]
Overfull \hbox (6.38751pt too wide) in paragraph at lines 281--2643
\OT1/cmr/m/n/10.95 if
[]
Overfull \hbox (95.9039pt too wide) in paragraph at lines 281--2643
\OT1/cmr/m/n/10.95 tex.enableprimitives
[]
Overfull \hbox (230.98454pt too wide) in paragraph at lines 281--2643
\OT1/cmr/m/n/10.95 then
tex.enableprimitives(
'pdf@',
'primitive',
[]
Overfull \hbox (13.07918pt too wide) in paragraph at lines 281--2643
\OT1/cmr/m/n/10.95 'if-
[]
Overfull \hbox (26.18878pt too wide) in paragraph at lines 281--2643
\OT1/cmr/m/n/10.95 prim-
[]
Overfull \hbox (6.69167pt too wide) in paragraph at lines 281--2643
\OT1/cmr/m/n/10.95 i-
[]
Overfull \hbox (23.72504pt too wide) in paragraph at lines 281--2643
\OT1/cmr/m/n/10.95 tive',
[]
Overfull \hbox (22.50836pt too wide) in paragraph at lines 281--2643
\OT1/cmr/m/n/10.95 'pdf-
[]
Overfull \hbox (27.10129pt too wide) in paragraph at lines 281--2643
\OT1/cmr/m/n/10.95 draft-
[]
Overfull \hbox (216.08034pt too wide) in paragraph at lines 281--2643
\OT1/cmr/m/n/10.95 mode','draftmode'
)
tex.enableprimitives('',
[]
Overfull \hbox (15.81668pt too wide) in paragraph at lines 281--2643
\OT1/cmr/m/n/10.95 'lu-
[]
Overfull \hbox (103.87305pt too wide) in paragraph at lines 281--2643
\OT1/cmr/m/n/10.95 aescapestring')
end
[]
("C:\Program Files\MiKTeX 2.9\tex/latex/00miktex\hyperref.cfg"
File: hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive
)
Package hyperref Info: Option `bookmarks' set `true' on input line 4424.
Package hyperref Info: Option `bookmarksopen' set `true' on input line 4424.
Package hyperref Info: Option `implicit' set `false' on input line 4424.
Package hyperref Info: Hyper figures OFF on input line 4550.
Package hyperref Info: Link nesting OFF on input line 4555.
Package hyperref Info: Hyper index ON on input line 4558.
Package hyperref Info: Plain pages OFF on input line 4565.
Package hyperref Info: Backreferencing OFF on input line 4570.
Package hyperref Info: Implicit mode OFF; no redefinition of LaTeX internals.
Package hyperref Info: Bookmarks ON on input line 4803.
\c@Hy@tempcnt=\count125
("C:\Program Files\MiKTeX 2.9\tex/latex/url\url.sty"
\Urlmuskip=\muskip10
Package: url 2013/09/16 ver 3.4 Verb mode for urls, etc.
)
LaTeX Info: Redefining \url on input line 5156.
\XeTeXLinkMargin=\dimen166
("C:\Program Files\MiKTeX 2.9\tex/generic/oberdiek\bitset.sty"
Package: bitset 2016/05/16 v1.2 Handle bit-vector datatype (HO)
("C:\Program Files\MiKTeX 2.9\tex/generic/oberdiek\bigintcalc.sty"
Package: bigintcalc 2016/05/16 v1.4 Expandable calculations on big integers (HO
)
))
\Fld@menulength=\count126
\Field@Width=\dimen167
\Fld@charsize=\dimen168
Package hyperref Info: Hyper figures OFF on input line 6411.
Package hyperref Info: Link nesting OFF on input line 6416.
Package hyperref Info: Hyper index ON on input line 6419.
Package hyperref Info: backreferencing OFF on input line 6426.
Package hyperref Info: Link coloring OFF on input line 6431.
Package hyperref Info: Link coloring with OCG OFF on input line 6436.
Package hyperref Info: PDF/A mode OFF on input line 6441.
LaTeX Info: Redefining \ref on input line 6481.
LaTeX Info: Redefining \pageref on input line 6485.
\Hy@abspage=\count127
Package hyperref Message: Stopped early.
)
Package hyperref Info: Driver (autodetected): hpdftex.
("C:\Program Files\MiKTeX 2.9\tex/latex/hyperref\hpdftex.def"
File: hpdftex.def 2019/06/12 v6.88h Hyperref driver for pdfTeX
("C:\Program Files\MiKTeX 2.9\tex/latex/oberdiek\atveryend.sty"
Package: atveryend 2016/05/16 v1.9 Hooks at the very end of document (HO)
)
\Fld@listcount=\count128
\c@bookmark@seq@number=\count129
("C:\Program Files\MiKTeX 2.9\tex/latex/oberdiek\rerunfilecheck.sty"
Package: rerunfilecheck 2016/05/16 v1.8 Rerun checks for auxiliary files (HO)
("C:\Program Files\MiKTeX 2.9\tex/generic/oberdiek\uniquecounter.sty"
Package: uniquecounter 2016/05/16 v1.3 Provide unlimited unique counter (HO)
)
Package uniquecounter Info: New unique counter `rerunfilecheck' on input line 2
82.
))
("C:\Program Files\MiKTeX 2.9\tex/latex/beamer\beamerbaserequires.sty"
("C:\Program Files\MiKTeX 2.9\tex/latex/beamer\beamerbasecompatibility.sty")
("C:\Program Files\MiKTeX 2.9\tex/latex/beamer\beamerbasefont.sty"
("C:\Program Files\MiKTeX 2.9\tex/latex/amsfonts\amssymb.sty"
Package: amssymb 2013/01/14 v3.01 AMS font symbols
("C:\Program Files\MiKTeX 2.9\tex/latex/amsfonts\amsfonts.sty"
Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support
\@emptytoks=\toks26
\symAMSa=\mathgroup4
\symAMSb=\mathgroup5
LaTeX Font Info: Overwriting math alphabet `\mathfrak' in version `bold'
(Font) U/euf/m/n --> U/euf/b/n on input line 106.
))
在此之前,日志文件是:
(“C:\Program Files\MiKTeX 2.9\tex/generic/pgf/systemlayer\pgfsyssoftpath.code.t ex” 文件:pgfsyssoftpath.code.tex 2019/08/03 v3.1.4b (3.1.4b) \pgfsyssoftpath@smallbuffer@items=\count113 \pgfsyssoftpath@bigbuffer@items=\count114 )(“C:\Program Files\MiKTeX 2.9\tex/generic/pgf/systemlayer\pgfsysprotocol.code.t ex” 文件:pgfsysprotocol.code.tex 2019/08/03 v3.1.4b (3.1.4b) ))(“C:\Program Files\MiKTeX 2.9\tex/latex/xcolor\xcolor.sty” 软件包:xcolor 2016/05/11 v2.12 LaTeX 颜色扩展 (英国) ("C:\Program Files\MiKTeX 2.9\tex/latex/graphics-cfg\color.cfg" 文件:color.cfg 2016/01/02 v1.6 示例颜色配置 ) 软件包 xcolor 信息:驱动文件:pdftex.def 在输入行 225 上。软件包 xcolor 信息:模型cmy' substituted by
cmy0' 在输入行 1348 上。软件包 xcolor 信息:模型hsb' substituted by
rgb' 在输入行 1352 上。软件包 xcolor 信息:模型RGB' extended on input line 1364. Package xcolor Info: Model
HTML' 被rgb' on input line 1366. Package xcolor Info: Model
Hsb' 替换为hsb' on input line 1367. Package xcolor Info: Model
tHsb' 被hsb' on input line 1368. Package xcolor Info: Model
HSB' 替换为hsb' on input line 1369. Package xcolor Info: Model
Gray' 替换为gray' on input line 1370. Package xcolor Info: Model
在输入行 1371 中,wave' 由 'hsb' 替换。)(“C:\Program Files\MiKTeX 2.9\tex/generic/pgf/basiclayer\pgfcore.code.tex” 软件包:pgfcore 2019/08/03 v3.1.4b (3.1.4b)(“C:\Program Files\MiKTeX 2.9\tex/generic/pgf/math\pgfmath.code.tex”(“C:\Program Files\MiKTeX 2.9\tex/generic/pgf/math\pgfmathcalc.code.tex”(“C:\Program Files\MiKTeX 2.9\tex/generic/pgf/math\pgfmathutil.code.tex”)(“C:\Program Files\MiKTeX 2.9\tex/generic/pgf/math\pgfmathparser.code.tex” \pgfmath@dimen=\dimen140 \pgfmath@count=\count115 \pgfmath@box=\box37 \pgfmath@toks=\toks23 \pgfmath@stack@operand=\toks24 \pgfmath@stack@operation=\toks25 )(“C:\Program Files\MiKTeX 2.9\tex/generic/pgf/math\pgfmathfunctions.code.tex”(“C:\Program Files\MiKTeX 2.9\tex/generic/pgf/math\pgfmathfunctions.basic.code. tex”)(“C:\Program Files\MiKTeX 2.9\tex/generic/pgf/math\pgfmathfunctions.trigonometr ic.code.tex”)(“C:\Program Files\MiKTeX 2.9\tex/generic/pgf/math\pgfmathfunctions.random.code .tex”)(”C:\Program Files\MiKTeX 2.9\tex/generic/pgf/math\pgfmathfunctions.comparison。 code.tex") ("C:\Program Files\MiKTeX 2.9\tex/generic/pgf/math\pgfmathfunctions.base.code.t ex") ("C:\Program Files\MiKTeX 2.9\tex/generic/pgf/math\pgfmathfunctions.round.code. tex") ("C:\Program Files\MiKTeX 2.9\tex/generic/pgf/math\pgfmathfunctions.misc.code.t ex") ("C:\Program Files\MiKTeX 2.9\tex/generic/pgf/math\pgfmathfunctions.integerarit hmetics.code.tex"))) ("C:\Program Files\MiKTeX 2.9\tex/generic/pgf/math\pgfmathfloat.code.tex" \c@pgfmathroundto@lastzeros=\count116 )) (“C:\Program Files\MiKTeX 2.9\tex/generic/pgf/math\pgfint.code.tex”)(“C:\Program Files\MiKTeX 2.9\tex/generic/pgf/basiclayer\pgfcorepoints.code.tex”文件:pgfcorepoints.code.tex 2019/08/03 v3.1.4b (3.1.4b) \pgf@picminx=\dimen141 \pgf@picmaxx=\dimen142 \pgf@picminy=\dimen143 \pgf@picmaxy=\dimen144 \pgf@pathminx=\dimen145 \pgf@pathmaxx=\dimen146 \pgf@pathminy=\dimen147 \pgf@pathmaxy=\dimen148 \pgf@xx=\dimen149 \pgf@xy=\dimen150 \pgf@yx=\dimen151 \pgf@yy=\dimen152 \pgf@zx=\dimen153 \pgf@zy=\dimen154 )(“C:\Program Files\MiKTeX 2.9\tex/generic/pgf/basiclayer\pgfcorepathconstruct.code.tex” 文件:pgfcorepathconstruct.code.tex 2019/08/03 v3.1.4b (3.1.4b) \pgf@path@lastx=\dimen155 \pgf@path@lasty=\dimen156 )(“C:\Program Files\MiKTeX 2.9\tex/generic/pgf/basiclayer\pgfcorepathusage.code. tex” 文件:pgfcorepathusage.code.tex 2019/08/03 v3.1.4b (3.1.4b) \pgf@shorten@end@additional=\dimen157 \pgf@shorten@start@additional=\dimen158 )(“C:\Program Files\MiKTeX 2.9\tex/generic/pgf/basiclayer\pgfcorescopes.code.tex” 文件:pgfcorescopes.code.tex 2019/08/03 v3.1.4b (3.1.4b) \pgfpic=\box38 \pgf@hbox=\box39 \pgf@layerbox@main=\box40 \pgf@picture@serial@count=\count117 )(“C:\Program Files\MiKTeX 2.9\tex/generic/pgf/basiclayer\pgfcoregraphicstate.co.tex” 文件:pgfcoregraphicstate.code.tex 2019/08/03 v3.1.4b (3.1.4b) \pgflinewidth=\dimen159 )(“C:\Program Files\MiKTeX 2.9\tex/generic/pgf/basiclayer\pgfcoretransformations .code.tex” 文件:pgfcoretransformations.code.tex 2019/08/03 v3.1.4b (3.1.4b) \pgf@pt@x=\dimen160 \pgf@pt@y=\dimen161 \pgf@pt@temp=\dimen162 )(“C:\Program Files\MiKTeX 2.9\tex/generic/pgf/basiclayer\pgfcorequick.code.tex” 文件:pgfcorequick.code.tex 2019/08/03 v3.1.4b (3.1.4b) ) ("C:\Program Files\MiKTeX 2.9\tex/generic/pgf/basiclayer\pgfcoreobjects.code.te x" 文件:pgfcoreobjects.code.tex 2019/08/03 v3.1.4b (3.1.4b) ) ("C:\Program Files\MiKTeX 2.9\tex/generic/pgf/basiclayer\pgfcorepathprocessing. code.tex" 文件:pgfcorepathprocessing.code.tex 2019/08/03 v3.1.4b (3.1.4b) ) ("C:\Program Files\MiKTeX 2.9\tex/generic/pgf/basiclayer\pgfcorearrows.code.tex " 文件:pgfcorearrows.code.tex 2019/08/03 v3.1.4b (3.1.4b) \pgfarrowsep=\dimen163 ) ("C:\Program Files\MiKTeX 2.9\tex/generic/pgf/basiclayer\pgfcoreshade.code.tex" 文件:pgfcoreshade.code.tex 2019/08/03 v3.1.4b (3.1.4b) \pgf@max=\dimen164 \pgf@sys@shading@range@num=\count118 \pgf@shadingcount=\count119 ) ("C:\Program Files\MiKTeX 2.9\tex/generic/pgf/basiclayer\pgfcoreimage.code.te x" 文件:pgfcoreimage.code.tex 2019/08/03 v3.1.4b (3.1.4b) ("C:\Program Files\MiKTeX 2.9\tex/generic/pgf/basiclayer\pgfcoreexternal.code.t ex” 文件:pgfcoreexternal.code.tex 2019/08/03 v3.1.4b (3.1.4b) \pgfexternal@startupbox=\box41 )) ("C:\Program Files\MiKTeX 2.9\tex/generic/pgf/basiclayer\pgfcorelayers.code.tex " 文件:pgfcorelayers.code.tex 2019/08/03 v3.1.4b (3.1.4b) ) ("C:\Program Files\MiKTeX 2.9\tex/generic/pgf/basiclayer\pgfcoretransparency.co de.tex" 文件:pgfcoretransparency.code.tex 2019/08/03 v3.1.4b (3.1.4b) ) ("C:\Program Files\MiKTeX 2.9\tex/generic/pgf/basiclayer\pgfcorepatterns.code.t ex" 文件:pgfcorepatterns.code.tex 2019/08/03 v3.1.4b (3.1.4b) ) ("C:\Program Files\MiKTeX 2.9\tex/generic/pgf/basiclayer\pgfcorerdf.code.tex" 文件:pgfcorerdf.code.tex 2019/08/03 v3.1.4b (3.1.4b) ))) ("C:\Program Files\MiKTeX 2.9\tex/latex/pgf/utilities\xxcolor.sty" 软件包:xxcolor 2003/10/24 ver 0.1 \XC@nummixins=\count120 \XC@countmixins=\count121 ) ("C:\Program Files\MiKTeX 2.9\tex/generic/oberdiek\atbegshi.sty" 软件包:atbegshi 2016/06/09 v1.18 开始 shipout 钩子 (HO) ("C:\Program Files\MiKTeX 2.9\tex/generic/oberdiek\infwarerr.sty" 软件包:infwarerr 2016/05/16 v1.4 提供信息/警告/错误消息 (HO) ) ("C:\Program Files\MiKTeX 2.9\tex/generic/oberdiek\ltxcmds.sty" 软件包:ltxcmds 2016/05/16 v1.23 通用 LaTeX 内核命令 (HO) )) ("C:\Program Files\MiKTeX 2.9\tex/latex/hyperref\hyperref.sty" 软件包:hyperref 2019/06/12 v6.88h LaTeX 的超文本链接(C:\Users\mkluw\AppData\Roaming\MiKTeX\2.9\tex/latex/hobsub\hobsub-hyperref.sty 软件包:hobsub-hyperref 2019-11-14 hobsub 目前不受支持,请参阅 hobsub.dtx 以提取原始代码(C:\Users\mkluw\AppData\Roaming\MiKTeX\2.9\tex/latex/pdftexcmds\pdftexcmds.sty 包:pdftexcmds 2019/11/24 v0.31 LuaTeX 的 pdfTeX 实用函数(HO )(“C:\Program Files\MiKTeX 2.9\tex/latex/iftex\iftex.sty”包:iftex 2013/04/04 v0.2 为 PDFTeX、XeTeX 和 LuaTeX 提供 if(tex) 条件)
更新 if(tex) 更新后出现新的错误;
(“C:\Program Files\MiKTeX 2.9\tex/generic/oberdiek\kvsetkeys.sty” 软件包:kvsetkeys 2016/05/16 v1.17 键值解析器(HO)(“C:\Program Files\MiKTeX 2.9\tex/generic/oberdiek\etexcmds.sty” 软件包:etexcmds 2016/05/16 v1.6 避免与 e-TeX 命令发生名称冲突(HO)(“C:\Program Files\MiKTeX 2.9\tex/generic/oberdiek\ifluatex.sty” 软件包:ifluatex 2016/05/16 v1.4 提供 ifluatex 开关(HO)!软件包 ifluatex 错误:名称冲突,\ifluatex 已定义。有关解释,请参阅 ifluatex 软件包文档。输入 H 可立即获得帮助。... l.174 } % \ifluatex 的不兼容版本可能会导致问题,因此包加载被中止。 ))) (“C:\Program Files\MiKTeX 2.9\tex/generic/oberdiek\kvdefinekeys.sty” 包:kvdefinekeys 2016/05/16 v1.4 定义键 (HO)
答案1
问题解决了 !!!! 感谢 stackExchange。
pdftexcmds.sty 错误的原因是 pdftexcmds 包过期或缺失。我进入控制台,搜索并安装或更新了所需的包。主要包是 iftex 包和 pdftexcmds 包。
对于 ifluatex 错误,我完全按照答案中给出的方式进行操作软件包 ifluatex 错误问题解决了!现在,一切都顺利进行。
附言:如果有人在控制台更新时遇到错误,例如连接超时或其他问题,只需更改连接设置并选择与您合作的国家之一,而不是随机存放。我选择了英国、中国。