![将表格列表和图片列表设置为目录中的部分](https://linux22.com/image/434787/%E5%B0%86%E8%A1%A8%E6%A0%BC%E5%88%97%E8%A1%A8%E5%92%8C%E5%9B%BE%E7%89%87%E5%88%97%E8%A1%A8%E8%AE%BE%E7%BD%AE%E4%B8%BA%E7%9B%AE%E5%BD%95%E4%B8%AD%E7%9A%84%E9%83%A8%E5%88%86.png)
答案1
使用包的建议tocbasic
:
\documentclass{book}
\usepackage{blindtext}% only for dummy text
\usepackage{tocbasic}
\renewcommand*{\listoffigures}{\listoftoc[\listfigurename]{lof}}
\renewcommand*{\listoftables}{\listoftoc[\listtablename]{lot}}
\setuptoc{lof}{leveldown,totoc}
\setuptoc{lot}{leveldown,totoc}
\begin{document}
\listoffigures
\listoftables
\tableofcontents
\blinddocument
\begin{table}
\caption{A table}
\end{table}
\begin{figure}%
\caption{A figure}%
\end{figure}
\end{document}
备注:tocbasic
不可与包装tocloft
或一起使用titletoc
。