\chapter[Short Chapter Title \& Lorem\textsubscript{A}]{Long Chapter Title \& Lorem\textsubscript{A}}
警告:
Package hyperref Warning: Token not allowed in a PDF string (Unicode): removing `\mathsurround' on input line 1.
Package hyperref Warning: Token not allowed in a PDF string (Unicode): removing `\z@' on input line 1.
Package hyperref Warning: Token not allowed in a PDF string (Unicode): removing `subscript' on input line 1.
正在编译,但仍然有警告。我见过针对数学模式修复此问题的建议,但我不想让 A 变成数学模式斜体
答案1
您可以使用如下\texorpdfstring{<latex-code>}{<bookmark-text>}
提供的宏:hyperref
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\section{hello \texorpdfstring{\textsuperscript{world}}{world}}
\end{document}