目录中子章节的页码超链接可以与 memoir、hyperref 和 \headstyle{wilsondob} 配合使用,但不能与 \headstyle{dowding} 配合使用

目录中子章节的页码超链接可以与 memoir、hyperref 和 \headstyle{wilsondob} 配合使用,但不能与 \headstyle{dowding} 配合使用

单击目录 (ToC) 中子章节的页码超链接对于 documentclass memoir 中的 {wilsondob} 和 {tandh} 页眉样式来说效果很好,但对于 {dowding} 则不起作用,因为章节可以正常工作,但子章节会跳转到 pdf 的顶部。

我不确定这是否是 \headstyles{dowding} 的一个错误,因为当切换到 \headstyles{wilsondob} 或 \headstyles{tandh} 时这个问题就被解决了。

我在下面概述了我的论文结构 - 我是否遗漏了什么?

非常感谢

\documentclass[11pt,a4paper, twoside, onecolumn, openright, final]{memoir} 

\raggedbottom
\pagestyle{Ruled} %ruled sometimes has pagenumber clash with figure legend
\settrims{0pt}{0pt}
\setlrmargins{3.5cm}{*}{*} 
\checkandfixthelayout

\usepackage{mathptmx}
\usepackage{multibib}
\usepackage[sort,round,authoryear]{natbib} 
\usepackage{microtype}
\usepackage[final]{graphicx}
\usepackage{subcaption}
\usepackage{grffile}
\usepackage{pgf} 
\usepackage{tikz} %requires install.packages('tikzDevice') in R
\usepackage{xfrac} %syntax is \sfrac{}{}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage[version=4]{mhchem}
\usepackage{gensymb} 
\usepackage{siunitx} 
\usepackage{ctable}
\usepackage{longtable}
\usepackage{csvsimple}
\usepackage[left]{lineno}
\usepackage{xcolor} 
\usepackage{xr}
\externaldocument{Chapter01_20190703}
\externaldocument{Chapter02_20190322}
\externaldocument{Chapter03_20190703}
\externaldocument{Chapter04_20190703}
\externaldocument{Chapter05_20190703}
\externaldocument{Chapter06_20190703}
\externaldocument{Chapter07_20181210}
\externaldocument{Chapter08_20190611}
\externaldocument{Chapter0A_20190519}

\PassOptionsToPackage{hyperfootnotes=false}{hyperref}
\usepackage{hyperref}
\usepackage{memhfixc}
\hypersetup{
    colorlinks=true,
    linktocpage=true,
    breaklinks=true,
    urlcolor=blue,
    linkcolor=black,
    citecolor=blue}

\usepackage[nonumberlist, nopostdot, nogroupskip, automake]{glossaries} 
\glsdisablehyper
\setacronymstyle{long-short}
\makeglossaries
\loadglsentries{defns}

\begin{document}
\frontmatter 
\include{Titlepage_20190703}

\headstyles{wilsondob} 

\include{Declaration_20181102}
\clearforchapter
\include{Abstract_20190703}
\include{Publications_20190703}
\clearforchapter

\setcounter{secnumdepth}{3} 
\settocdepth{subsection}
\tableofcontents

\vfill
\listoffigures
\vfill
\listoftables

\setglossarystyle{long}
\printglossary[type=\acronymtype,title=List of Abbreviations]
\addcontentsline{toc}{chapter}{List of Abbreviations}
\include{Acknowledgements_20190703}

%Mainmatter
\mainmatter
\pagenumbering{arabic} 
\DoubleSpacing 
\include{Chapter01_20190703}
\include{Chapter02_20190322} 
\include{Chapter03_20190703}
\include{Chapter04_20190703}
\include{Chapter05_20190703}
\include{Chapter06_20190703}
\include{Chapter07_20181210}
\include{Chapter08_20190611}    
\include{Chapter0A_20190519}

%Backmatter
\backmatter 
\SingleSpacing
\bibliographystyle{apa}
\bibliography{../../BibTeX/library}

\end{document}

缩写为:

\documentclass[11pt,a4paper, twoside, onecolumn, openright, final]{memoir} 
\usepackage{lipsum}
\PassOptionsToPackage{hyperfootnotes=false}{hyperref}
\usepackage{hyperref}
\usepackage{memhfixc}
\hypersetup{
    colorlinks=true,
    linktocpage=true,
    breaklinks=true,
    urlcolor=blue,
    linkcolor=blue,
    citecolor=blue}

\begin{document}

%\headstyles{wilsondob}  
\headstyles{dowding}

\setcounter{secnumdepth}{3} 
\settocdepth{subsection}
\tableofcontents


\chapter{Introduction}
\section{Overview of mechanisms of hypertrophy}
\lipsum[20]
\subsection{Physiological hypertrophy}
\lipsum[20]
\subsection{Pathological hypertrophy}
\lipsum[20]
\subsubsection{Transcriptional players}
\lipsum[20]
\subsubsection{Substrate utilization}
\lipsum[20]
\paragraph{Fat}
Fat oxidation. 
\paragraph{Glucose}
Glucose oxidation.
\chapter{Methods}
\section{EM}
\lipsum[20]
\subsection{Subsec1}
\lipsum[20]
\subsection{Subsec2}
\lipsum[20]
\subsubsection{SS1}
\lipsum[20]
\subsubsection{SS2}
\lipsum[20]
\paragraph{Fat2}
Fat oxidation.
\paragraph{Glucose2}
Glucose oxidation. 

\end{document}

相关内容