我正在使用 TeXnicCentre 2.02 和 MiKTeX 2.9 撰写论文。我发现了一个无法修复的小问题...
我正在使用一些部分在文件中,碰巧的是附录在最后一部分。我试过用,\backmatter
但没有成功。你能给我一点建议吗?
我的序言部分如下:
\documentclass[11pt,openright,twoside]{toptesi}
...
\usepackage{indentfirst}
\usepackage[toc]{appendix}
\usepackage[colorlinks=false, pdfborder={0 0 0}]{hyperref}
\usepackage{nameref}
...
%% Document Parts %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\include{Cpt_0}
\include{Cpt_1}
\part{Part 1}
... some chapters ...
\part{Part 2}
\include{Cpt_2}
\include{Cpt_3}
\appendix
\appendixpage
\addappheadtotoc
\include{App_1}
\include{App_2}
\include{App_3}
\printbibliography
\end{document}
答案1
解决方案的建议:使用附录作为一部分来使结构保持一致。
我认为,等等\include{App_1}
包含\chapter
命令。
\documentclass[11pt,openright,twoside]{toptesi}
\usepackage{indentfirst}
%\usepackage[toc]{appendix}
\usepackage[colorlinks=false, pdfborder={0 0 0}]{hyperref}
\usepackage{biblatex}
\usepackage{nameref}
%% Document Parts %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\tableofcontents%
%\include{Cpt_0}
%\include{Cpt_1}
\part{Part 1}
... some chapters ...
\part{Part 2}
%\include{Cpt_2}
%\include{Cpt_3}
\setcounter{chapter}{0}%
\renewcommand{\thechapter}{\Alph{chapter}}% Letters as 'counters'
\part{\appendixname}
\chapter{First Appendix}
\chapter{Second Appendix}
\chapter{Third Appendix}
%\include{App_1}
%\include{App_2}
%\include{App_3}
\printbibliography
\end{document}
答案2
我找到了另一个可能的解决方案:
\usepackage{bookmark}
...
\bookmarksetupnext{level=-1}
\appendix
\addappheadtotoc
\appendixpage
\include{Appendice_A}
\include{Appendice_B}
\include{Appendice_C}
使用它,它在目录和书签中都能正常工作。