Latex导入hyperref包报错:Undefined control sequence.
·
overleaf上写论文用到了\autoref,需要导入hyperref。这个包不仅允许你创建带有超链接的文档,还能够让 \autoref 命令自动生成带有上下文的引用标签(例如,“Figure 1”、“Table 2”等)。
但是报错了:
<argument> \sf@counterlist
l.45 \begin{document}
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.

这种情况一般是没有导入相关的包或者包有冲突。
解决办法:
检查发现是因为subfig和subfigure包与hyperref不兼容。删除subfig和subfigure包就行了。
更多推荐
所有评论(0)