diff options
Diffstat (limited to 'texmf-dist/doc/latex/aeb-minitoc/examples/minitoc-art-star.tex')
-rw-r--r-- | texmf-dist/doc/latex/aeb-minitoc/examples/minitoc-art-star.tex | 139 |
1 files changed, 139 insertions, 0 deletions
diff --git a/texmf-dist/doc/latex/aeb-minitoc/examples/minitoc-art-star.tex b/texmf-dist/doc/latex/aeb-minitoc/examples/minitoc-art-star.tex new file mode 100644 index 00000000..ce1dd321 --- /dev/null +++ b/texmf-dist/doc/latex/aeb-minitoc/examples/minitoc-art-star.tex @@ -0,0 +1,139 @@ +\documentclass{article} + +%\usepackage{xcolor} +\usepackage[linktocpage,colorlinks]{hyperref} +\usepackage{booktabs} +\usepackage[!nominitocs]{aeb-minitoc} + +\setcounter{secnumdepth}{3} + +\begin{minitocfmt}{\minitocFmt} +\declaretocfmt{subsection}{\@W{1.55em}\@D{0em}\@F{\bfseries}} +\declaretocfmt{subsection*}{\@W{0em}\@D{1.55em}\@F{\bfseries}} +\declaretocfmt{subsubsection}{\@W{2.5em}\@D{1.55em}\@P{\color{red}}\@F{\color{blue}}} +\declaretocfmt{subsubsection*}{\@W{0em}\@D{4.05em}\@F{\color{blue}}} +%\declaretocfmt{subsubsection*}{\@W{0em}\@D{4.05em}\@P{\color{red}}\@F{\color{blue}}} +\end{minitocfmt} + +\newcommand{\insMinitoc}[2][]{% + \begin{center}#2 + \begin{minipage}[c]{0.8\linewidth} + \insertminitoc[#1] + \end{minipage} + \end{center} +} + +\newcommand{\insMinitoctab}[2][]{% + \begin{center}#2 + \begin{tabular}{c}\toprule + \begin{minipage}[c]{0.8\linewidth} + \insertminitoc[#1] + \end{minipage}\\ \bottomrule + \end{tabular} + \end{center} +} + + +\begin{document} + +\tableofcontents + +\newpage + + +\section{First of Many} + +The topic headings of this section are listed below. + +\insMinitoctab{\minitocFmt} + +For long section headings, for them to wrap around, we need to take the hyperref option +\texttt{linktocpage}, unless pdflatex or xelatex are used. + +\subsection{Now is the time for all good men to come to the aid of their country, so it has been said} + +\addtocontents{toc}{\protect\vspace{1em}\hfill + Vertical Space\hfill\protect\vspace{1em}} + +\subsection{For all good men} + +Content + +\subsubsection{A subsubsection, let's make it a long subsection to wrap around} + +Content + +\subsubsection{Another one} + +Content + +\subsection{To come to the aid} + +Content + +\subsubsection{A third subsubsection} + +Content + +\subsubsection{A fourth} + +Content + +\subsection{Of their country} + +Content + + +\addcontentsline{toc}{subsection}{Hello world! (subsection*)} %\protect\numberline{} +\subsection*{Hello world! (section*)} + +\addcontentsline{toc}{subsubsection}{Hello world! (subsubsection*)} %\protect\numberline{} +\subsubsection*{Hello world! (subsubsection*)} + + +\newpage + +\section{Second to None} + +\insMinitoctab{\minitocFmt} + + +Content + +\subsection{Peter Piper} + +Content + +\subsubsection{A subsubsection} + +Content + +\subsubsection{Another one} + +Content + +\subsection{Picked a peck} + +Content + +\subsection{Of pickled peppers} + +Content + +\subsubsection{A third subsubsection} + +Content + +\subsubsection{A fourth} + +Content + +\subsection[How many pecks]{How many pecks of pickled peppers} + +Content + +\subsection{Did Peter Piper pick?} + +Content + +\end{document} |