diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/tocvsec2/tocvsec2-example.tex |
Initial commit
Diffstat (limited to 'macros/latex/contrib/tocvsec2/tocvsec2-example.tex')
-rw-r--r-- | macros/latex/contrib/tocvsec2/tocvsec2-example.tex | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/macros/latex/contrib/tocvsec2/tocvsec2-example.tex b/macros/latex/contrib/tocvsec2/tocvsec2-example.tex new file mode 100644 index 0000000000..0dea71304b --- /dev/null +++ b/macros/latex/contrib/tocvsec2/tocvsec2-example.tex @@ -0,0 +1,56 @@ + +\documentclass{article} + +\usepackage{tocvsec2} +\maxtocdepth{subsubsection} +\maxsecnumdepth{subsubsection} + +\def\x{% + \subsection{sone} xyz + \subsubsection{ssone} abc + \subsubsection{sstwo} def + \subsection{stwo} 123 + \paragraph{foo} here +} + +\begin{document} +\makeatletter + +\tableofcontents +\section{Normal section} +\x + +\setsecnumdepth{subsection} +\settocdepth{subsection} +\section{Reduce numbering} +\x + +\setsecnumdepth{section} +\settocdepth{section} +\section{Reduce numbering again} +\x + +\resetsecnumdepth +\resettocdepth +\section{Reset numbering once} +\x + +\setsecnumdepth{section} +\settocdepth{section} +\section{Reduce numbering again} +\x + +\resetsecnumdepth* +\resettocdepth* +\section{Another normal section after resetting completely} +\x + +\appendix + +\settocdepth{all} +\setsecnumdepth{all} +\section{Appendix with all numbering} +\x + + +\end{document} |