
¿Cómo puedo imprimir el toc solo si no está vacío?
\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}
¿Cómo puedo imprimir el toc solo si no está vacío?
\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}