我想在附录部分中添加前缀“附录”,以便它出现在目录中。但是,每当我使用命令添加此前缀时\renewcommand
,目录都会与前缀和部分名称重叠。例如:
\documentclass[11pt,openright,oneside,letterpaper,onecolumn]{report}
\usepackage[toc,page]{appendix}
\begin{document}
\setcounter{tocdepth}{2}
\renewcommand{\contentsname}{Table of Contents}
\tableofcontents
\cleardoublepage
\listoffigures
\cleardoublepage
\listoftables
\cleardoublepage
\clearpage
\chapter{Section 1}
XYZ
\begin{subappendices}
\renewcommand{\thesection}{Appendix 1.\arabic{section}}
\section{Part 1}
XYZ
\section{Part 2}
XYZ
\end{subappendices}
\end{document}
关于如何添加此功能但产生适当间距,您有什么想法吗?谢谢。
答案是:
\documentclass[11pt,openright,oneside,letterpaper,onecolumn]{report}
\usepackage[titletoc, toc,page]{appendix}
\begin{document}
\setcounter{tocdepth}{2}
\renewcommand{\contentsname}{Table of Contents}
\tableofcontents
\cleardoublepage
\listoffigures
\cleardoublepage
\listoftables
\cleardoublepage
\clearpage
\chapter{Section 1}
XYZ
\begin{subappendices}
\renewcommand{\thesection}{Appendix 1.\arabic{section}}
\section{Part 1}
XYZ
\section{Part 2}
XYZ
\end{subappendices}
\end{document}