打印 toc/lof/lot/其他

打印 toc/lof/lot/其他

如果目录不为空,如何才能打印目录?

\documentclass{article}


\begin{document}

%if there is a section, toc will be printed, else it wont be

\tableofcontents

%\section%in this case it wont be printed

A

\end{document}

相关内容