如何获取附录列表,如图片列表和表格列表?如何将其设置在单独的页面上,如图片列表和表格列表?
答案1
我觉得这个帖子并不是 Verly 问题的真正答案,因为他似乎不需要附录的目录,只需要像图片列表一样的附录列表。这是最简单的使用方法tocloft
:
\documentclass{article}
\usepackage{tocloft}
\newcommand{\listappendicesname}{Appendices}
\newlistof{appendices}{apc}{\listappendicesname}
\newcommand{\appendices}[1]{\addcontentsline{apc}{appendices}{#1}}
\parindent0mm
\begin{document}
some text some text some text some text some text some text
\appendices{appendix one} appendix appendix appendix appendix appendix appendix
\appendices{appendix two} appendix appendix appendix appendix appendix appendix
\appendices{appendix three} appendix appendix appendix appendix appendix appendix
\appendices{appendix four} appendix appendix appendix appendix appendix appendix
\listofappendices
\end{document}
编辑1:如果您想要附录的标题,您可以这样做:
\documentclass[parskip]{scrartcl}
\usepackage{tocloft}
\newcommand{\listappendicesname}{Appendices}
\newlistof{appendices}{apc}{\listappendicesname}
\newcommand{\appendices}[1]{\addcontentsline{apc}{appendices}{#1}}
\newcommand{\newappendix}[1]{\section*{#1}\appendices{#1}}
\parindent0mm
\begin{document}
some text some text some text some text some text some text
\newappendix{Appendix one} appendix appendix appendix appendix appendix appendix
\newappendix{Appendix two} appendix appendix appendix appendix appendix appendix
\newappendix{Appendix three} appendix appendix appendix appendix appendix appendix
\newappendix{Appendix four} appendix appendix appendix appendix appendix appendix
\listofappendices
\end{document}
这将产生类似这样的结果:
编辑2:对于居中标题,请这样做:
\documentclass[parskip]{scrreprt}
\usepackage[margin=15mm]{geometry}
\usepackage{tocloft}
\newcommand{\listappendicesname}{Appendices}
\newlistof{appendices}{apc}{\listappendicesname}
\newcommand{\appendices}[1]{\addcontentsline{apc}{appendices}{#1}}
\newcommand{\newappendix}[1]{\section*{#1}\appendices{#1}}
\makeatletter
\renewcommand\section{\@startsection {section}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
{\centering\normalfont\Large\bfseries}}
\makeatother
\parindent0mm
\begin{document}
some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text
\newappendix{Appendix one} appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix
\newappendix{Appendix two} appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix
\newappendix{Appendix three} appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix
\newappendix{Appendix four} appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix
\listofappendices
\end{document}
编辑3:要使附录列表的标题居中,请更改
\newcommand{\listappendicesname}{Appendices}
简单地
\newcommand{\listappendicesname}{\hfill Appendices \hfill}
正如我们所见,为了右对齐:
\newcommand{\listappendicesname}{\hfill Appendices}