由于使用的模板编辑论文,发现生成的目录出现页码错误,进而导致产生的书签链接错误。查阅模板的命令定义,发现是命令\BiAppendixChapter的定义出现问题:
\newcommand{\BiAppendixChapter}[2]
{ \phantomsection %
\markboth{#1}{#1}%\markboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}
\addcontentsline{toc}{chapter}{\hei #1}
\addcontentsline{toe}{chapter}{\bfseries \xiaosi #2} \chapter*{#1}
该命令中使用了\addcontentsline命令,而使用该命令时,其包含的命令会因为换页造成页码不一致。因此,需要在\addcontentsline命令之前加入换页的命令。如果使用的是article等文档类,可以 使用\clearpage进行换页;如果使用了book或者带有openright参数的report等文档类,尤其需要奇数页显示章节名称的时候,需要使用\cleardoublepage进行换页;如果使用了Hyperref宏包生成书签,还需要使用\plantomsection命令。
因此,\BiAppendixChapter命令定义为:
\newcommand{\BiAppendixChapter}[2]
{ \cleardoublepage \phantomsection
\markboth{#1}{#1}%\markboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}
\addcontentsline{toc}{chapter}{\hei #1}
\addcontentsline{toe}{chapter}{\bfseries \xiaosi #2} \chapter*{#1}
重新编辑后,问题结果。