PoS 类与 hyperref 包不兼容?

PoS 类与 hyperref 包不兼容?

我必须使用会议组织者提供的 PoS 课程版本准备一篇论文,可通过链接获取: TWEPP 2018 的 PoS

但是,我还需要使用 hyperref 包在生成的 PDF 中提供可点击的链接。不幸的是,当使用 hyperref 包时,pdflatex 无法处理 tex 文件,并且会产生有关未定义控制序列的错误:

(/usr/share/texlive/texmf-dist/tex/latex/psnfss/t1phv.fd)
! Undefined control sequence.
<recently read> \Hy@colorlink 
l.25 \begin{document}
[...]                    
(/usr/share/texlive/texmf-dist/tex/latex/psnfss/omsptm.fd)
! Undefined control sequence.
\close@pdflink ->\Hy@endcolorlink 
                            \Hy@VerboseLinkStop \pdfendlink 
l.25 \begin{document}
? 
! Undefined control sequence.
<recently read> \Hy@colorlink 
l.25 \begin{document}

看起来 PoS 类破坏了 hyperref 放入 \AtBeginDocument 中的定义。问题的原因是什么?我该如何解决?

下面是重现该问题的示例(基于原始骨架.tex由主办方提供)。请注意,要使用 pdflatex 编译它,您还需要PoSlogo.pdf文件。如果您将 \usepackage{hyperref} 替换为 \usepackage{url},则一切正常……

% Please make sure you insert your
% data according to the instructions in PoSauthmanual.pdf
\documentclass{PoS}
\usepackage{hyperref}
\title{Contribution title}
\ShortTitle{Short Title for header}
\author{\speaker{First Author}\thanks{A footnote may follow.}\\
        Author affiliation\\
        E-mail: \email{author@email}}
\abstract{..........................\
      ...........................}
\FullConference{Topical Workshop on Electronics for Particle Physics (TWEPP2018)\\
17-21 September 2018\\
    Antwerp, Belgium}

\begin{document}
\section{Sample section}
 Just a small link: \href{https://stackexchange.com}{https://stackexchange.com}
\begin{thebibliography}{99}
\bibitem{...}
....
\end{thebibliography}
\end{document}

答案1

无需加载超链接即可点击该链接。

该类有其自己的实现\href(与 hyperref 不兼容)。

相关内容