当尝试在 pdflatex(MiKTeX-pdfTeX 4.19(MiKTeX 24.3.31))或 lualatex(LuaHBTeX,版本 1.18.1(MiKTeX 24.3.31))下编译以下输入时,我收到了与 hyperref 包有关的错误。
\documentclass[12pt]{book}
\usepackage{hyperref}
\begin{document}
\frontmatter
\tableofcontents
\mainmatter
\chapter{Lorem Ipsum}
Lorem ipsum dolor sit amet
\end{document}
根据 miktex 包管理器,我安装了 hyperref 7.01h 版本。错误如下:
("C:/Users/[Username]/AppData/Local/Programs/MiKTeX/tex/latex/base/atbegshi-
ltx.sty"
Package: atbegshi-ltx 2021/01/10 v1.0c Emulation of the original atbegshi
package with kernel methods
)
\Hy@abspage=\count268
\c@Item=\count269
\c@Hfootnote=\count270
)
! Extra \else.
\Hy@AtEndOfPackageHook ...color}\fi \fi \fi \else
\def \HyOpt@DriverType { (...
l.4