Guest User

Untitled

a guest
Jan 3rd, 2016
134
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Related to minitoc demonstration of http://tex.stackexchange.com/a/284781/2956 where only the main TOC printed, not the sub TOCs.
  2.  
  3. \documentclass{book}
  4. \usepackage{subfiles}
  5. \usepackage{lipsum}
  6. \usepackage{minitoc}
  7. \dominitoc
  8.  
  9. \begin{document}
  10.  
  11. \tableofcontents
  12. \let\tableofcontents\relax
  13.  
  14. \chapter{Foo}
  15. \section{Bar}
  16. \lipsum[1-2]
  17. \section{Baz}
  18. \lipsum[1-2]
  19. \subfile{myfile1}
  20. \subfile{myfile2}
  21. \subfile{myfile3}
  22. \end{document}% main file is called myfile.tex
  23. % this is myfile1.tex
  24. \documentclass[myfile]{subfiles}
  25. \begin{document}
  26. \tableofcontents
  27. \chapter{Foo1}
  28. \section{Bar1}
  29. \lipsum[1-2]
  30. \section{Baz1}
  31. \lipsum[3-4]
  32. \end{document}% main file is called myfile.tex
  33. % this is myfile2.tex
  34. \documentclass[myfile]{subfiles}
  35. \begin{document}
  36. \tableofcontents
  37. \chapter{Foo2}
  38. \section{Bar2}
  39. \lipsum[5-6]
  40. \section{Baz2}
  41. \lipsum[7-8]
  42. \end{document}
  43. % main file is called myfile.tex
  44. % this is myfile3.tex
  45. \documentclass[myfile]{subfiles}
  46. \begin{document}
  47. \tableofcontents
  48. \chapter{Foo3}
  49. \section{Bar3}
  50. \lipsum[9-10]
  51. \section{Baz3}
  52. \lipsum[10-11]
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×