答案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
。