带有查询交叉链接的运行头

带有查询交叉链接的运行头

我尝试在运行头中创建查询交叉链接,但 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(实际上是在几个嵌套的\hboxes 中),因此没有周围的垂直列表。因此它消失了。

您可以通过将\AQ正文中的内容也放入 中来检查这一点\hbox。然后它也会消失。

但是,您可以将标题内容放在中\parbox,然后它将出现在垂直列表中,并且\AQ文本将会出现。

\def\@oddhead{\parbox{\textwidth}{\hfil\rightmark\hfil}}

相关内容