TeX Live 2016 上的 todonotes 错误

TeX Live 2016 上的 todonotes 错误

我刚刚在 Mac 上升级到 Tex Live 2016,并且对包含 todonotes 包的任何文档(无论是否实际使用)执行 pdflatex 都会引发此错误:

(/usr/local/texlive/2016/texmf-dist/tex/latex/todonotes/todonotes.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-cfg/color.cfg)
(/usr/local/texlive/2016/texmf-dist/tex/latex/pdftex-def/pdftex.def
! Undefined control sequence.
l.444 \ifGin@setpagesize

文档确实生成了,而且任何注释确实显示在 pdf 中,但加载 todonotes 的文档中都存在错误。有其他人见过这种行为吗?

答案1

这个错误在 texlive 源中已经避免了,所以将在下次更新时修复,今天或明天,在此之前,如果你graphicx在之前加载xcolor,甚至只是

\expandafter\newif\csname ifGin@setpagesize\endcsname 

定义\ifGin@setpagesize然后错误就应该消失。

相关内容