![etoolbox + koma-script:警告“似乎有人破坏了 auxhook 包”](https://linux22.com/image/394162/etoolbox%20%2B%20koma-script%EF%BC%9A%E8%AD%A6%E5%91%8A%E2%80%9C%E4%BC%BC%E4%B9%8E%E6%9C%89%E4%BA%BA%E7%A0%B4%E5%9D%8F%E4%BA%86%20auxhook%20%E5%8C%85%E2%80%9D.png)
我在序言末尾使用etoolbox
's\AtEndPreamble
来加载包。在文档中这样做会导致警告hyperref
koma-script
Class scrartcl Warning: seems someone has broken package auxhook.
\documentclass{scrartcl}
\usepackage{etoolbox}
\AtEndPreamble{
\usepackage{hyperref}
}
\begin{document}
Text here.
\end{document}
我的问题是:这是已知/可修复/不相关的吗?
答案1
您加载 hyperref(以及 auxhook)的时间相当晚。在早期版本的 KOMA 类中,这可能会导致错误(参见例如文档前面的奇怪线条),现在 scrartcl 正在尝试从此问题中恢复。您可以通过提前加载 auxhook 来避免出现此警告:
\documentclass{scrartcl}
\usepackage{etoolbox}
\usepackage{auxhook}
\AtEndPreamble{
\usepackage{hyperref}
}
\begin{document}
Text here.
\end{document}