
MWE는 다음과 같습니다.
% !TeX program = XeLaTeX
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\section{\^e\%}
\section{20\%}
\end{document}
pdfLaTeX 및 LuaLaTeX에서는 잘 작동합니다. 그러나 XeLaTeX에는 오류가 있습니다.
(./mwe.out)
Runaway argument?
{ê\BOOKMARK [1][-]{section.2}{20\045}{}
! File ended while scanning use of \@@BOOKMARK.
<inserted text>
\par
l.5 \begin{document}
?
(./mwe.out)
Runaway argument?
{ê\BOOKMARK [1][-]{section.2}{20\045}{}
! File ended while scanning use of \@@BOOKMARK.
<inserted text>
\par
l.5 \begin{document}
?
\@outlinefile=\write3
\openout3 = `mwe.out'.
북마크 보조파일(mwe.out)이 보입니다.
\BOOKMARK [1][-]{section.1}{ê%}{}% 1
\BOOKMARK [1][-]{section.2}{20\045}{}% 2
%
나는 그것이 첫 번째 의 첫 번째 때문이라고 생각합니다 \BOOKMARK
. XeLaTeX에서 어떻게 방지할 수 있나요?
답변1
로드bookmark
패키지대신에; 업데이트된 북마크 참조를 제공합니다.
\documentclass{article}
\usepackage{bookmark}
\begin{document}
\section{\^e\%}
\section{20\%}
\end{document}
bookmark
잔뜩hyperref
(보다어떤 패키지를 먼저 로드해야 합니까? hyperref
또는 bookmark
?)