通用 LOT 后的附录 LOT

通用 LOT 后的附录 LOT

我希望创建两个 LOF 列表(也是两个 LOT),其中一个是主要文件,另一个是附录中的文件。总的来说,效果不错。但我希望将这两个列表一个接一个地放在论文的前面,但遗憾的是,我只能在附录的开头创建附录 LOF,而不能更早。

我该如何解决这个问题?或者在使用 LOF/LOT 时没有办法移动它吗?

“minimalcode” 是:

 \documentclass[12pt]{article}

\usepackage[nottoc]{tocbibind}


\usepackage{titletoc}


\begin{document} 


\tableofcontents  
\thispagestyle{empty}
\startlist[main]{lof}% starts main list of figures
\printlist[main]{lof}{}{\section*{List of Figures - general}}% prints main list of figures

\thispagestyle{empty}
%\listoftables
%\renewcommand{\listoftables}{Timetables}
%\listoffigures


\setcounter{page}{1}




\bibliography{scibib}

\bibliographystyle{AM}



\end{document}

我不想创建真正的附录,因为我m using the include option to section my appendix and the appendix feature seems to not be compatible with that? Anyway the code i在附录中使用的内容如下所示:

\stoplist[main]{lof}% stops main list of figures

\section{Appendix}
\startlist[appendix]{lof}% starts list of figures in appendices
\printlist[appendix]{lof}{}{\section*{List of Figures in 
Appendix}}% prints list of figures in appendices

答案1

以下是使用包的建议tocbasic

\documentclass[12pt]{article}
\usepackage[nottoc]{tocbibind}

\usepackage{tocbasic}
\DeclareNewTOC[%
  listname={List of Figures in Appendix},
  setup=totoc% add an entry in TOC for this list
]{alof}
\DeclareNewTOC[%
  listname={List of Tables in Appendix},
  setup=totoc% add an entry in TOC for this list
]{alot}
\makeatletter
\newcommand*{\useappendixlists}{%
  \renewcommand*{\ext@figure}{alof}%
  \renewcommand*{\ext@table}{alot}%
}
\newcommand*{\usestandardlists}{%
  \renewcommand*{\ext@figure}{lof}%
  \renewcommand*{\ext@table}{lot}%
}
\makeatother

\begin{document} 
\tableofcontents  
\listoffigures
\listofalofs

\clearpage
\section{A section}
\begin{figure}[htb]
\rule{\linewidth}{1cm}
\caption{First Figure}%
\end{figure}
\begin{figure}[htb]
\rule{\linewidth}{1cm}
\caption{Second Figure}%
\end{figure}

\clearpage
\section{Appendix}
\useappendixlists
\begin{figure}[htb]
\rule{\linewidth}{1cm}
\caption{First Figure in Appendix}%
\end{figure}
\begin{figure}[htb]
\rule{\linewidth}{1cm}
\caption{Second Figure in Appendix}%
\end{figure}
\end{document}

在此处输入图片描述

但请注意,不能tocbasic与包titletoc或包一起使用tocloft

相关内容