![带有查询交叉链接的运行头](https://linux22.com/image/453819/%E5%B8%A6%E6%9C%89%E6%9F%A5%E8%AF%A2%E4%BA%A4%E5%8F%89%E9%93%BE%E6%8E%A5%E7%9A%84%E8%BF%90%E8%A1%8C%E5%A4%B4.png)
我尝试在运行头中创建查询交叉链接,但 PDF 中未显示查询交叉链接,其他地方工作正常。我的 MWE 如下
\documentclass{book}
\makeatletter
\def\ps@heading{%
\def\@oddfoot{}
\def\@evenfoot{}
\def\@oddhead{\hfil\rightmark\hfil}%
\def\@evenhead{\hfil\leftmark\hfil}%
}
\def\AQ#1{\leavevmode\vadjust{\smash{\llap{\hbox to 70pt{#1\hfill}}}}}
\pagestyle{heading}
\makeatother
\begin{document}
\chapter{Chapter Title}
\section{Section Title}
\markboth{Left side margin}{Right side\protect\AQ{AQ2} aaaaamargin}
The current\protect\AQ{AQ1} study was a subanalysis of the CENC study, approved by local institutional review boards at each study site. CENC assesses V/SM for psychological, cognitive, and physical symptoms at fixed intervals based on an injury- or deployment-related index date that is established through the PCE mapping process. Only baseline data were used for the current analysis. This study conformed to all state and federal research regulations, including federal ethical standards. All participants provided written informed consent to participate.
\clearpage
The current study was a subanalysis of the CENC study, approved by local institutional review boards at each study site. CENC assesses V/SM for psychological, cognitive, and physical symptoms at fixed intervals based on an injury- or deployment-related index date that is established through the PCE mapping process. Only baseline data were used for the current analysis. This study conformed to all state and federal research regulations, including federal ethical standards. All participants provided written informed consent to participate.
\clearpage
The current study was a subanalysis of the CENC study, approved by local institutional review boards at each study site. CENC\protect\AQ{AQ2} assesses V/SM for psychological, cognitive, and physical symptoms at fixed intervals based on an injury- or deployment-related index date that is established through the PCE mapping process. Only baseline data were used for the current analysis. This study conformed to all state and federal research regulations, including federal ethical standards. All participants provided written informed consent to participate.
\clearpage
The current study was a subanalysis of the CENC study, approved by local institutional review boards at each study site.\protect\AQ{AQ3} CENC assesses V/SM for psychological, cognitive, and physical symptoms at fixed intervals based on an injury- or deployment-related index date that is established through the PCE mapping process. Only baseline data were used for the current analysis. This study conformed to all state and federal research regulations, including federal ethical standards. All participants provided written informed consent to participate.
\clearpage
\end{document}
答案1
\vadjust
材料从水平列表迁移到周围的垂直列表。但是,标题被设置为 a \hbox
(实际上是在几个嵌套的\hbox
es 中),因此没有周围的垂直列表。因此它消失了。
您可以通过将\AQ
正文中的内容也放入 中来检查这一点\hbox
。然后它也会消失。
但是,您可以将标题内容放在中\parbox
,然后它将出现在垂直列表中,并且\AQ
文本将会出现。
\def\@oddhead{\parbox{\textwidth}{\hfil\rightmark\hfil}}