我怎样才能在 \section 内获得有效的 \textsuperscript?
\documentclass[unicode, fontsize=9pt, twoside=false, russian, a5paper]{scrbook}
\usepackage{polyglossia}
\setmainfont{PT Serif}
\setsansfont{PT Sans Caption}
\setmonofont{PT Mono}
\defaultfontfeatures{Scale=MatchLowercase, Mapping=tex-text}
\setdefaultlanguage[spelling=modern]{russian}
\setotherlanguage{english}
\usepackage{xunicode}
\KOMAoptions{DIV=18,pagesize=auto}
\usepackage[
colorlinks=true,
linkcolor=black,
citecolor=DarkGreen,
urlcolor=SteelBlue,
xetex,
unicode=true,
bookmarks=false,
pdfstartview=FitH,
pdfpagelayout=OneColumn,
final=true,
draft=false,
debug=false,
]{hyperref}
\begin{document}
\title{Title}
\author{Author}
\maketitle{}
\tableofcontents{}
\section{Bla-bla\hyperlink{c_48}{\textsuperscript{\{48\}}}}
\end{document}
错误:
$ xelatex 测试.tex:
! Undefined control sequence.
\hyper@@link ->\let \Hy@reserved@a
\relax \@ifnextchar [{\hyper@link@ }{\hyp...
l.33 ...hyperlink{c_48}{\textsuperscript{\{48\}}}}
答案1
\hyperlink
在包中定义hyperref
。
\usepackage{hyperref}
并且让它在移动论证中存续\protect
之前:\hyperlink
\section
\section{Bla-bla\protect\hyperlink{c_48}{\textsuperscript{\{48\}}}}