SHARE
TWEET

Untitled

a guest Oct 12th, 2017 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. documentclass{book}
  2.  
  3.  
  4.  
  5. setcounter{tocdepth}{2}
  6.  
  7. begin{document}
  8.  
  9. tableofcontents
  10.  
  11. addtocontents{toc}{protectsetcounter{tocdepth}{2}}
  12.  
  13. part{One}
  14. chapter{Foo}
  15.  
  16. section{Foo}
  17.  
  18. subsection{Foo stuff}
  19.  
  20.  
  21.  
  22. addtocontents{toc}{protectsetcounter{tocdepth}{1}}
  23. setcounter{tocdepth}{1}
  24.  
  25. part{Two}
  26. chapter{Foo}
  27.  
  28. section{Foo}
  29.  
  30. subsection{Foo stuff}
  31.  
  32.  
  33.  
  34. end{document}
RAW Paste Data
Top