Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. documentclass[a4paper,12pt,icelandic]{report}
  2. usepackage[toc,page]{appendix}
  3. begin{document}
  4. tableofcontents
  5.  
  6. chapter{Chapter 1}
  7. section{Section 1.1}
  8. subsection{Section 1.1.1}
  9. chapter{Chapter 2}
  10. section{Section 2.1}
  11. subsection{Section 2.1.1}
  12. appendix
  13. chapter{Appendix A}
  14. section{Appendix A.1} % Do not show in table of content.
  15. subsection{Appendix A.1.1} % Do not show in table of content.
  16. chapter{Appendix B}
  17. section{Appendix B.1} % Do not show in table of content.
  18. section{Appendix B.2} % Do not show in table of content.
  19. end{document}
  20.  
  21. documentclass[a4paper,12pt,icelandic]{report}
  22. usepackage[toc,page]{appendix}
  23.  
  24. **newcommand{nocontentsline}[3]{}
  25. newcommand{tocless}[2]{bgroupletaddcontentsline=nocontentsline#1{#2}egroup}**
  26.  
  27. begin{document}
  28. tableofcontents
  29.  
  30. chapter{Chapter 1}
  31. **tocless**section{1}
  32. **tocless**subsection{2}
  33. chapter{Chapter 2}
  34. **tocless**section{1}
  35. **tocless**subsection{2}
  36. **tocless**subsubsection{3}
  37. appendix
  38. chapter{Appendix A}
  39. **tocless**section{Appendix A.1} % Do not show in table of content.
  40. **tocless**subsection{Appendix A.1.1} % Do not show in table of content.
  41. chapter{Appendix B}
  42. **tocless**section{Appendix B.1} % Do not show in table of content.
  43. **tocless**section{Appendix B.2} % Do not show in table of content.
  44. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement