summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/minitoc/apx.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-06-19 22:43:58 +0000
committerKarl Berry <karl@freefriends.org>2006-06-19 22:43:58 +0000
commit315f6e8cf21d3f57aaefe05b58147de728d5ede0 (patch)
treea1cace88e0004de97a607a486feab2045bff04aa /Master/texmf-dist/doc/latex/minitoc/apx.tex
parent1c6ae1bc004f1c8a3b49e90c803ebef5030dcdaa (diff)
minitoc 45
git-svn-id: svn://tug.org/texlive/trunk@1705 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/minitoc/apx.tex')
-rw-r--r--Master/texmf-dist/doc/latex/minitoc/apx.tex49
1 files changed, 49 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/minitoc/apx.tex b/Master/texmf-dist/doc/latex/minitoc/apx.tex
new file mode 100644
index 00000000000..9cc8ded101a
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/minitoc/apx.tex
@@ -0,0 +1,49 @@
+\documentclass{book}
+\usepackage{tocbibind} % adds some entries in the main TOC.
+\usepackage{lipsum} % provides filling text
+\usepackage[tight]{minitoc}
+\setcounter{minitocdepth}{3}
+\setcounter{parttocdepth}{3}
+\begin{document}
+\doparttoc
+\dominitoc
+\tableofcontents
+\mtcaddchapter % because tocbibind adds a chapter entry in the TOC
+\chapter{First}
+\minitoc
+First chapter
+\section{First section}
+\lipsum
+\section{Second section}
+\lipsum
+\chapter{Second}
+\minitoc
+Second
+\section{First section of second chapter}
+\lipsum
+\section{Second section of second chapter}
+\lipsum
+\appendix % begins the appendices
+\addcontentsline{toc}{part}{Appendices} % adds a part entry in the TOC
+\adjustptc % fixes the parttoc counter ptc
+\parttoc % adds a partial toc for the appendices
+\begin{mtchideinmaintoc}[-1] % hides the details of the
+% % appendices in the main TOC, but chapter-level
+% % entries would be still visible if you use 0
+% % in place of -1 as optional argument.
+\chapter{First appendix}
+\minitoc
+First appendix
+\section{First section}
+\lipsum
+\section{Second section}
+\lipsum
+\chapter{Second appendix}
+\minitoc
+Second appendix
+\section{First section of second appendix}
+\lipsum
+\section{Second section of second appendix}
+\lipsum
+\end{mtchideinmaintoc} % end of hiding
+\end{document}