diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/minitoc/apx.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/minitoc/apx.tex | 49 |
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} |