Tag Info

New answers tagged


you can reset the tocdepth in the toc by inserting change commands in appropriate places. say you start with \setcounter{tocdepth}{1} to include nothing lower than sections. to reset this in another chapter to include subsections, insert this command just after the \chapter command for the relevant chapter: \addtocontents{toc}{\setcounter{tocdepth}{2}} ...


You must have separate tex files for each section. Then it is easy for you to exclude chapter2 section. If your code is drawn as shown below then chapter2 tex file will not be compiled. \documentclass{article} \usepackage{excludeonly} \excludeonly{chap2} \begin{document} \include{chap1.tex} \include{chap2.tex} \include{chap3.tex} \include{chap4.tex} ...

Top 50 recent answers are included