summaryrefslogtreecommitdiff
path: root/texmf-dist/doc/latex/aeb-minitoc/examples
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2018-09-25 08:30:26 +0900
committerNorbert Preining <norbert@preining.info>2018-09-25 08:30:26 +0900
commite6b754ddd8bdcc1242d8acf0517fa8a694a960c5 (patch)
tree1469880d4b4f3fa14abe2694b697a8cfbc3833f9 /texmf-dist/doc/latex/aeb-minitoc/examples
parent75618a98911aa06acc60d6895de38dd4e4f7cf4e (diff)
aeb-minitoc (new)
Diffstat (limited to 'texmf-dist/doc/latex/aeb-minitoc/examples')
-rw-r--r--texmf-dist/doc/latex/aeb-minitoc/examples/manual-exmpls-bullets.tex296
-rw-r--r--texmf-dist/doc/latex/aeb-minitoc/examples/manual-exmpls-default.tex268
-rw-r--r--texmf-dist/doc/latex/aeb-minitoc/examples/minitoc-art-star.tex139
-rw-r--r--texmf-dist/doc/latex/aeb-minitoc/examples/minitoc-art.pdfbin0 -> 108828 bytes
-rw-r--r--texmf-dist/doc/latex/aeb-minitoc/examples/minitoc-art.tex169
-rw-r--r--texmf-dist/doc/latex/aeb-minitoc/examples/minitoc-bk.tex236
-rw-r--r--texmf-dist/doc/latex/aeb-minitoc/examples/minitoc-bullets-para.tex211
7 files changed, 1319 insertions, 0 deletions
diff --git a/texmf-dist/doc/latex/aeb-minitoc/examples/manual-exmpls-bullets.tex b/texmf-dist/doc/latex/aeb-minitoc/examples/manual-exmpls-bullets.tex
new file mode 100644
index 00000000..755253d8
--- /dev/null
+++ b/texmf-dist/doc/latex/aeb-minitoc/examples/manual-exmpls-bullets.tex
@@ -0,0 +1,296 @@
+\documentclass{article}
+\usepackage{xcolor}
+\usepackage[linktocpage,colorlinks,bookmarksnumbered]{hyperref}
+\usepackage{booktabs}
+\usepackage[!nominitocs]{aeb-minitoc}
+\usepackage{ifthen}
+
+\let\db\mtocgobble
+
+\setcounter{secnumdepth}{5}
+\setcounter{tocdepth}{5}
+
+
+\makeatletter
+% redefinitions necessitated by the special bullet glyph for the subsubsection level
+% see the file manual-exmpls-nobullets.tex to see this file using normal numbering
+\renewcommand*{\thesubsubsection}{\texorpdfstring{$\bullet$}{\textbullet}}
+\renewcommand*{\theparagraph}{\texorpdfstring{\protect\P}{\textparagraph}}
+\renewcommand*{\thesubparagraph}{\texorpdfstring{\protect\P\protect\P}{\textparagraph\textparagraph}}
+\let\section@mtocSAVE\section
+\renewcommand\section{\renewcommand{\@seccntformat}[1]{\thesection\space}%
+ \section@mtocSAVE}
+\let\subsection@mtocSAVE\subsection
+\renewcommand\subsection{\renewcommand{\@seccntformat}[1]{\thesubsection\space}%
+ \subsection@mtocSAVE}
+\let\subsubsection@mtocSAVE\subsubsection
+\renewcommand\subsubsection{\renewcommand{\@seccntformat}[1]{\thesubsubsection\space}%
+ \subsubsection@mtocSAVE}
+\renewcommand{\paragraph}
+ {\renewcommand{\@seccntformat}[1]{\theparagraph\space}%
+ \@startsection{paragraph}{4}{0pt}{6pt}{-3pt}{\bfseries}}
+\renewcommand*\l@paragraph{\@dottedtocline{4}{5.0em}{1em}} %{7.0em}{4.1em}}
+\renewcommand{\subparagraph}
+ {\renewcommand{\@seccntformat}[1]{\thesubparagraph\space}%
+ \@startsection{subparagraph}{5}{\parindent}{6pt}{-3pt}{\bfseries}}
+\def\cs#1{\texttt{\@backslashchar#1}}
+\makeatother
+
+\title{Examples from the aeb-minitoc manual}
+\author{D. P. Story}
+
+\begin{minitocfmt}{\minitocFmtFullToc}
+% we can declare toc fmtting for section level, but
+% in the main toc, sections have special formatting, we leave it alone.
+\declaretocfmt{subsection}{\@W{2em}\@D{1.55em}}
+\declaretocfmt{subsubsection}{\@W{1em}\@D{3.55em}}
+\end{minitocfmt}
+
+
+\begin{minitocfmt}{\minitocFmt}
+\declaretocfmt{subsection}{\@W{2.5em}\@D{0em}}
+\declaretocfmt{subsubsection}{\@W{1em}\@D{2.5em}}
+\end{minitocfmt}
+
+\begin{minitocfmt}{\minitocFmti}
+\@A{\def\@linkcolor{blue}\@PW{1.5em}}%
+\declaretocfmt{subsection}{\@R{1.55em\@plus 2em}\@W{2.5em}\@D{0em}}
+\declaretocfmt{subsubsection}{\@W{1em}\@D{2.5em}}
+\end{minitocfmt}
+
+\begin{minitocfmt}{\minitocFmtii}
+\declaretocfmt{subsection}{\@W{2.5em}\@D{0em}\@N{\textbf}}
+\declaretocfmt{subsubsection}{\@W{1em}\@D{2.5em}}
+\end{minitocfmt}
+
+\begin{minitocfmt}{\minitocFmtvii}
+\declaretocfmt{subsection}{\@W{2.5em}\@D{0em}\@F{\bfseries}}
+\declaretocfmt{subsubsection}{\@W{1em}\@D{2.5em}\@F{\color{blue}}}
+\end{minitocfmt}
+
+\begin{minitocfmt}{\minitocFmtiv}
+\@A{\FmtTOCEntry}
+\declaretocfmt{subsection}{\@W{2.5em}\@D{0em}}
+\declaretocfmt{subsubsection}{\@W{1em}\@D{2.5em}}
+\end{minitocfmt}
+
+\begin{minitocfmt}{\minitocFmtv}
+\declaretocfmt{paragraph}{\@W{1em}\@D{0em}}
+\declaretocfmt{subparagraph}{\@W{1.5em}\@D{1em}}
+\end{minitocfmt}
+
+\begin{minitocfmt}{\minitocFmtvi}
+\@A{\@PW{1em}}
+\declaretocfmt{subsection}{\@W{2em}\@D{0em}}
+\declaretocfmt{subsubsection}{\@W{1em}
+ \@R{1.55em plus 2em}\leftskip2em\relax
+ \rightskip\@tocrmarg\relax{#1},\nobreak{ #2}\enspace\allowbreak} %\allowbreak
+\end{minitocfmt}
+
+\newcommand{\insMinitoc}[2][]{%
+ \begin{center}#2
+ \begin{minipage}[c]{0.8\linewidth}
+ \insertminitoc[#1]
+ \end{minipage}
+ \end{center}
+}
+
+\newcommand{\insMinitoci}[2][]{%
+ \begin{center}#2
+ \begin{minipage}[c]{0.8\linewidth}
+ Contents of Section~\ref*{CandM}: \nameref*{CandM}
+ \par\kern2pt
+ \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}
+}
+
+\newcommand{\insMinitocfbox}[2][]{%
+ \begin{center}#2
+ \fbox{\begin{minipage}[c]{0.8\linewidth}
+ \insertminitoc[#1]
+ \end{minipage}}
+ \end{center}
+}
+
+
+
+\begin{document}
+
+\maketitle
+
+\bgroup
+\value{secnumdepth}=3
+\value{tocdepth}=3
+\minitocFmtFullToc
+\tableofcontents
+\egroup
+
+\newpage
+
+\section{Introduction}
+
+Content removed
+
+\section{Required packages and options}
+
+Content removed
+
+\section{Commands and methods}\mtoclabel{CandM}
+
+\insMinitoci{\minitocFmt}
+
+\subsection[\protect\miniorfulltoc{\protect\textbf}{Setting the top and bottom levels}]{Setting the top and bottom levels}
+
+Content removed
+
+\subsubsection{Automatically setting the levels}
+
+Content removed
+
+\subsubsection{Manually setting the levels}
+
+Content removed
+
+\subsection{The \texorpdfstring{\protect\cs{insertminitoc}}{\textbackslash{insertminitoc}} command}\mtoclabel{insertminitoc}
+
+Content removed
+
+\subsubsection{The \texttt{minitocfmt} environment}
+
+Content removed
+
+\subsubsection{Some examples that illuminate}\mtoclabel{SExmpls}
+
+Content removed
+
+\goodbreak
+
+\paragraph{Some basic examples} \leavevmode
+
+\subparagraph{First Example} \leavevmode
+
+\insMinitoc[CandM]\minitocFmt
+
+\subparagraph{The TOC listing on page~\pageref*{SExmpls}} \leavevmode
+
+\insMinitoc[SExmpls]{\TOCLevels{subsubsection}{subparagraph}\minitocFmtv}
+
+\subparagraph{Color the page numbers} \leavevmode
+
+\insMinitoc[CandM]\minitocFmti
+
+\subparagraph{Make section numbers bold} \leavevmode
+
+\insMinitoc[CandM]\minitocFmtii
+
+\subparagraph{Make section headings some bold, some blue} \leavevmode
+
+\insMinitoc[CandM]\minitocFmtvii
+
+\paragraph{Some more advanced examples} \leavevmode
+
+\subparagraph{Formatting sections with no section number} \leavevmode
+
+\begin{minitocfmt}{\minitocFmtstar}
+\declaretocfmt{subsection*}{\@W{0em}\@D{0em}}
+\end{minitocfmt}
+\insMinitoctab[myRetirement]{\TOCLevels{section}{subsection}\minitocFmtstar}
+
+\subparagraph{Formatting individual title headings} \leavevmode
+
+\insMinitoc[CandM]\minitocFmtiv
+
+
+\subparagraph{A custom entry for \protect\cs{subsubsection}} \leavevmode
+
+\insMinitoc[CandM]\minitocFmtvi
+
+\subparagraph{Using \texorpdfstring{\protect\cs{@E}}{\textbackslash{@E}} for greater formatting control} \leavevmode
+
+\begin{minitocfmt}{\minitocFmtF}
+\declaretocfmt{subsection}
+ {\@W{2.5em}\@D{0em}
+ \ifthenelse{\@E=\mtocref{insertminitoc}}{\@F{\bfseries}}{}}
+\declaretocfmt{subsubsection}
+ {\@W{1em}\@D{2.5em}
+ \ifthenelse{\@E > \mtocref{insertminitoc}\and\@E < \mtocref{MPW}}
+ {\@F{\color{blue}}}{}}
+\end{minitocfmt}
+\insMinitoc[CandM]{\TOCLevels{section}{subsubsection}\minitocFmtF}
+
+\subparagraph{No leaders using \texorpdfstring{\protect\cs{@B}}{\textbackslash{@B}}} \leavevmode
+
+\begin{minitocfmt}{\minitocFmtB}
+\declaretocfmt{subsection}
+ {\vspace{6pt}\@W{2.5em}\@B{0em}\@F{\bfseries}\@N{\bfseries}\@P{\bfseries}}
+\declaretocfmt{subsubsection}
+ {\@W{1em}\@D{2.5em}}
+\end{minitocfmt}
+
+\insMinitoc[CandM]\minitocFmtB
+
+\subparagraph{Using the
+ \texorpdfstring{\protect\cs{@L} and \protect\cs{@Pg}}{\textbackslash{@L}
+ and \textbackslash{@Pg}} commands} \leavevmode
+
+\begin{minitocfmt}{\minitocFmtPara} % Para
+\@A{\@PW{2.5em}\@R{3.8em}}
+\declaretocfmt{paragraph}
+ {
+ \@W{1em}\@D{0em}
+ \ifthenelse{\arabic{page}=\@Pg}
+ {\@P{\small\hyperlink{\@L}{this page}\mtocgobble}}
+ {}
+ }
+\declaretocfmt{subparagraph}
+ {
+ \@W{1.5em}\@D{1em}
+ \ifthenelse{\arabic{page}=\@Pg}
+ {\@P{\small\hyperlink{\@L}{this page}\mtocgobble}}
+ {}
+ }
+\end{minitocfmt}
+
+\insMinitoc[SExmpls]{\TOCLevels{subsubsection}{subparagraph}\minitocFmtPara}
+
+\paragraph{Using \texorpdfstring{\texttt{minitocfmt} with \protect\cs{tableofcontents}}
+ {minitocfmt with \textbackslash{tableofcontents}}}\leavevmode
+
+\subsubsection{Alternate presentations of the mini-toc}
+
+Content removed
+
+\paragraph{Predefined presentations} \leavevmode
+
+Defined in preamble
+
+\subparagraph{Enclose the mini-toc in an \cs{fbox}} \leavevmode
+
+\insMinitocfbox[CandM]{\TOCLevels{section}{subsubsection}\minitocFmt}
+
+\subparagraph{Enclose the mini-toc in a ruled tabular environment} \leavevmode
+
+\insMinitoctab[CandM]{\minitocFmt}
+
+
+\section{Methodology}\mtoclabel{MPW}
+
+Content removed
+
+\section{My retirement}\mtoclabel{myRetirement}
+
+\subsection*{Time to get back to it, dps}
+\addcontentsline{toc}{subsection}{Time to get back to it, dps}
+
+\end{document} \ No newline at end of file
diff --git a/texmf-dist/doc/latex/aeb-minitoc/examples/manual-exmpls-default.tex b/texmf-dist/doc/latex/aeb-minitoc/examples/manual-exmpls-default.tex
new file mode 100644
index 00000000..1a9d08ca
--- /dev/null
+++ b/texmf-dist/doc/latex/aeb-minitoc/examples/manual-exmpls-default.tex
@@ -0,0 +1,268 @@
+\documentclass{article}
+\usepackage[linktocpage,colorlinks,bookmarksnumbered]{hyperref}
+\usepackage{booktabs}
+\usepackage[!nominitocs]{aeb-minitoc}
+\usepackage{ifthen}
+
+\let\db\mtocgobble
+
+% Same as manual-exmpls, but with numbers at all levels. Numerous adjustments
+% to the mini-toc entries were necessary.
+
+\setcounter{secnumdepth}{5}
+\setcounter{tocdepth}{5}
+
+\makeatletter
+\def\cs#1{\texttt{\@backslashchar#1}}
+\makeatother
+
+\title{Examples from the aeb-minitoc manual}
+\author{D. P. Story}
+
+\begin{minitocfmt}{\minitocFmt}
+\declaretocfmt{subsection}{\@W{1.5em}\@D{0em}}
+\declaretocfmt{subsubsection}{\@W{2.5em}\@D{1.5em}}
+\end{minitocfmt}
+
+\begin{minitocfmt}{\minitocFmti}
+\@A{\def\@linkcolor{blue}\@PW{1.5em}}%
+\declaretocfmt{subsection}{\@W{1.5em}\@D{0em}}
+\declaretocfmt{subsubsection}{\@W{2.5em}\@D{1.5em}}
+\end{minitocfmt}
+
+\begin{minitocfmt}{\minitocFmtii}
+\declaretocfmt{subsection}{\@W{1.7em}\@D{0em}\@N{\textbf}}
+\declaretocfmt{subsubsection}{\@W{2.5em}\@D{1.7em}}
+\end{minitocfmt}
+
+\begin{minitocfmt}{\minitocFmtvii}
+\declaretocfmt{subsection}{\@W{1.7em}\@D{0em}\@F{\bfseries}}
+\declaretocfmt{subsubsection}{\@W{2.5em}\@D{1.7em}\@F{\color{blue}}}
+\end{minitocfmt}
+
+\begin{minitocfmt}{\minitocFmtiv}
+\@A{\FmtTOCEntry}
+\declaretocfmt{subsection}{\@W{1.5em}\@D{0em}}
+\declaretocfmt{subsubsection}{\@W{2.5em}\@D{1.5em}}
+\end{minitocfmt}
+
+\begin{minitocfmt}{\minitocFmtv}
+\declaretocfmt{paragraph}{\@W{3.3em}\@D{0em}}
+\declaretocfmt{subparagraph}{\@W{4em}\@D{3.3em}}
+\end{minitocfmt}
+
+\begin{minitocfmt}{\minitocFmtvi}
+\@A{\@PW{1em}}
+\declaretocfmt{subsection}{\@W{2em}\@D{0em}}
+\declaretocfmt{subsubsection}{\@W{2.3em}
+ \@R{1.55em plus 2em}\leftskip2em\relax
+ \rightskip\@tocrmarg\relax{#1},\nobreak{ #2}\enspace\allowbreak}
+\end{minitocfmt}
+
+\newcommand{\insMinitoc}[2][]{%
+ \begin{center}#2
+ \begin{minipage}[c]{0.8\linewidth}
+ \insertminitoc[#1]
+ \end{minipage}
+ \end{center}
+}
+
+\newcommand{\insMinitoci}[2][]{%
+ \begin{center}#2
+ \begin{minipage}[c]{0.8\linewidth}
+ Contents of Section~\ref*{CandM}: \nameref*{CandM}
+ \par\kern2pt
+ \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}
+}
+
+\newcommand{\insMinitocfbox}[2][]{%
+ \begin{center}#2
+ \fbox{\begin{minipage}[c]{0.8\linewidth}
+ \insertminitoc[#1]
+ \end{minipage}}
+ \end{center}
+}
+
+
+
+\begin{document}
+
+\maketitle
+
+\bgroup
+\value{secnumdepth}=3
+\value{tocdepth}=3
+\tableofcontents
+\egroup
+
+\newpage
+
+\section{Introduction}
+
+Content removed
+
+\section{Required packages and options}
+
+Content removed
+
+\section{Commands and methods}\mtoclabel{CandM}
+
+\insMinitoci{\minitocFmt}
+
+\subsection[\protect\miniorfulltoc{\protect\textbf}{Setting the top and bottom levels}]{Setting the top and bottom levels}
+
+Content removed
+
+\subsubsection{Automatically setting the levels}
+
+Content removed
+
+\subsubsection{Manually setting the levels}
+
+Content removed
+
+\subsection{The \texorpdfstring{\protect\cs{insertminitoc}}{\textbackslash{insertminitoc}} command}\mtoclabel{insertminitoc}
+
+Content removed
+
+\subsubsection{The \texttt{minitocfmt} environment}
+
+Content removed
+
+\subsubsection{Some examples that illuminate}\mtoclabel{SExmpls}
+
+Content removed
+
+\goodbreak
+
+\paragraph{Some basic examples} \leavevmode
+
+\subparagraph{First Example} \leavevmode
+
+\insMinitoc[CandM]\minitocFmt
+
+\subparagraph{The TOC listing on page~\pageref*{SExmpls}} \leavevmode
+
+\insMinitoc[SExmpls]{\TOCLevels{subsubsection}{subparagraph}\minitocFmtv}
+
+\subparagraph{Color the page numbers} \leavevmode
+
+\insMinitoc[CandM]\minitocFmti
+
+\subparagraph{Make section numbers bold} \leavevmode
+
+\insMinitoc[CandM]\minitocFmtii
+
+\subparagraph{Make section headings some bold, some blue} \leavevmode
+
+\insMinitoc[CandM]\minitocFmtvii
+
+\paragraph{Some more advanced examples} \leavevmode
+
+\subparagraph{Formatting sections with no section number} \leavevmode
+
+\begin{minitocfmt}{\minitocFmtstar}
+\declaretocfmt{subsection*}{\@W{0em}\@D{0em}}
+\end{minitocfmt}
+\insMinitoctab[myRetirement]{\TOCLevels{section}{subsection}\minitocFmtstar}
+
+\subparagraph{Formatting individual title headings} \leavevmode
+
+\insMinitoc[CandM]\minitocFmtiv
+
+
+\subparagraph{A custom entry for \protect\cs{subsubsection}} \leavevmode
+
+\insMinitoc[CandM]\minitocFmtvi
+
+\subparagraph{Using \texorpdfstring{\protect\cs{@E}}{\textbackslash{@E}} for greater formatting control} \leavevmode
+
+\begin{minitocfmt}{\minitocFmtF}
+\declaretocfmt{subsection}
+ {\@W{2em}\@D{0em}
+ \ifthenelse{\@E=\mtocref{insertminitoc}}{\@F{\bfseries}}{}}
+\declaretocfmt{subsubsection}
+ {\@W{2.5em}\@D{2em}
+ \ifthenelse{\@E > \mtocref{insertminitoc}\and\@E < \mtocref{MPW}}
+ {\@F{\color{blue}}}{}}
+\end{minitocfmt}
+\insMinitoc[CandM]{\TOCLevels{section}{subsubsection}\minitocFmtF}
+
+\subparagraph{No leaders using \texorpdfstring{\protect\cs{@B}}{\textbackslash{@B}}} \leavevmode
+
+\begin{minitocfmt}{\minitocFmtB}
+\declaretocfmt{subsection}
+ {\vspace{6pt}\@W{2em}\@B{0em}\@F{\bfseries}\@N{\bfseries}\@P{\bfseries}}
+\declaretocfmt{subsubsection}
+ {\@W{2.5em}\@D{2em}}
+\end{minitocfmt}
+
+\insMinitoc[CandM]\minitocFmtB
+
+\subparagraph{Using the
+ \texorpdfstring{\protect\cs{@L} and \protect\cs{@Pg}}{\textbackslash{@L}
+ and \textbackslash{@Pg}} commands} \leavevmode
+
+\begin{minitocfmt}{\minitocFmtPara} % Para
+\@A{\@PW{2.5em}\@R{7em}}
+\declaretocfmt{paragraph}
+ {%
+ \@W{3.2em}\@D{0em}
+ \ifthenelse{\arabic{page}=\@Pg}
+ {\@P{\small\hyperlink{\@L}{this page}\mtocgobble}}
+ {}
+ }
+\declaretocfmt{subparagraph}
+ {%
+ \@W{4.1em}\@D{3.2em}
+ \ifthenelse{\arabic{page}=\@Pg}
+ {\@P{\small\hyperlink{\@L}{this page}\mtocgobble}}
+ {}
+ }
+\end{minitocfmt}
+
+\hfuzz12pt
+\insMinitoc[SExmpls]{\TOCLevels{subsubsection}{subparagraph}\minitocFmtPara}
+
+\paragraph{Using \texorpdfstring{\texttt{minitocfmt} with \protect\cs{tableofcontents}}
+ {minitocfmt with \textbackslash{tableofcontents}}}\leavevmode
+
+\subsubsection{Alternate presentations of the mini-toc}
+
+Content removed
+
+\paragraph{Predefined presentations} \leavevmode
+
+Defined in preamble
+
+\subparagraph{Enclose the mini-toc in an \texorpdfstring{\protect\cs{fbox}}{\textbackslash{fbox}}} \leavevmode
+
+\insMinitocfbox[CandM]{\TOCLevels{section}{subsubsection}\minitocFmt}
+
+\subparagraph{Enclose the mini-toc in a ruled tabular environment} \leavevmode
+
+\insMinitoctab[CandM]{\minitocFmt}
+
+
+\section{Methodology}\mtoclabel{MPW}
+
+Content removed
+
+\section{My retirement}\mtoclabel{myRetirement}
+
+\subsection*{Time to get back to it, dps}
+\addcontentsline{toc}{subsection}{Time to get back to it, dps}
+
+\end{document} \ No newline at end of file
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}
diff --git a/texmf-dist/doc/latex/aeb-minitoc/examples/minitoc-art.pdf b/texmf-dist/doc/latex/aeb-minitoc/examples/minitoc-art.pdf
new file mode 100644
index 00000000..ec8542e6
--- /dev/null
+++ b/texmf-dist/doc/latex/aeb-minitoc/examples/minitoc-art.pdf
Binary files differ
diff --git a/texmf-dist/doc/latex/aeb-minitoc/examples/minitoc-art.tex b/texmf-dist/doc/latex/aeb-minitoc/examples/minitoc-art.tex
new file mode 100644
index 00000000..d3dd0df1
--- /dev/null
+++ b/texmf-dist/doc/latex/aeb-minitoc/examples/minitoc-art.tex
@@ -0,0 +1,169 @@
+\documentclass{article}
+\usepackage{xcolor}
+\usepackage[linktocpage,colorlinks]{hyperref}
+\usepackage{booktabs}
+\usepackage[!nominitocs]{aeb-minitoc} % try compiling with the nominitocs option
+\usepackage{ifthen}
+
+% Try uncommenting the next line, change subsection to subsection*
+% and subsubsection to subsubsection* in the minitocfmt below. What other
+% changes are needed to get a good looking mini-toc?
+% \setcounter{secnumdepth}{0}
+
+\begin{minitocfmt}{\minitocFmt} %{tctta}
+\@A{\FmtTOCEntry}%
+\declaretocfmt{subsection}{\vspace{3pt}%
+ \@W{1.55em}\@D{0em}
+ \ifthenelse{\arabic{page}=\@Pg}
+ {\@P{\hyperlink{\@L}{\mbox{\strut--}}\mtocgobble}}
+ {}%
+}
+\declaretocfmt{subsubsection}{%
+ \ifthenelse{\mtocref{TST}=\@E}
+ {\@F{\color{blue}}}
+ {\ifthenelse{\@E<\mtocref{StoNone}}
+ {\sffamily}{}}%
+ \@W{2.5em}\@D{1.5em}
+ \ifthenelse{\arabic{page}=\@Pg}
+ {\@P{\hyperlink{\@L}{\mbox{\strut--}}\mtocgobble}}
+ {}
+}
+\end{minitocfmt}
+
+\newcommand{\insMinitoc}[2][]{%
+ \begin{center}#2
+ \begin{minipage}[c]{0.8\linewidth}
+ \ifMiniTocListings
+ \insertminitoc[#1]\else
+ \fcolorbox{blue}{yellow}{\makebox[\linewidth][c]{\textbf{A mini-toc goes here}}}\fi
+ \end{minipage}
+ \end{center}
+}
+
+\newcommand{\insMinitoctab}[2][]{%
+ \begin{center}#2
+ \begin{tabular}{c}\toprule
+ \begin{minipage}[c]{0.8\linewidth}
+ \ifMiniTocListings
+ \insertminitoc[#1]\else
+ \centering\textbf{A mini-toc goes here}\fi
+ \end{minipage}\\ \bottomrule
+ \end{tabular}
+ \end{center}
+}
+
+\begin{document}
+
+\tableofcontents
+
+\newpage
+
+\section{First of Many}
+
+The topic headings of this section are listed below.
+
+
+\insMinitoc{\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}}
+
+Content
+
+% Here is a non-tricky example of the \miniorfulltoc usage
+\subsection[\protect\miniorfulltoc{\protect\textbf}{For all good men}]{For all good men}
+
+Content
+
+\subsubsection{A subsubsection, let's make it a long subsection, shall we}\mtoclabel{TST}
+
+Content
+
+\subsubsection{Another one}
+
+Content
+
+
+
+\vfill Page break induced
+\newpage
+
+\subsection{To come to the aid}
+
+Content
+
+\subsubsection{A third subsubsection}
+
+Content
+
+\subsubsection{A fourth}
+
+Content
+
+\subsection{Of their country}
+
+Content
+
+
+\newpage
+
+\section{Second to None}\mtoclabel{StoNone}
+
+\insMinitoctab{\minitocFmt}
+
+
+Content
+
+\subsection{Peter Piper}
+
+Content
+
+\subsubsection{A subsubsection}
+
+Content
+
+\subsubsection{Another one}
+
+Content
+
+\vfill Page break induced
+\newpage
+
+
+\subsection{Picked a peck}
+
+Content
+
+\subsection{Of pickled peppers}
+
+Content
+
+% Here is the answer to the question posed in the manual. \mtocgobble is a public version of the \@gobble of latex
+% These changes do not appear in the table of contents as displayed by \tableofcontents.
+\subsubsection[\protect\miniorfulltoc{A \protect\emph{third} sub\protect\textcolor{blue}{sub}section \protect\textcolor{red}{$\Leftarrow$}\protect\mtocgobble}{}]{A third subsubsection}
+
+Content
+
+\subsubsection{A fourth}
+
+Content
+
+\vfill Page break induced
+\newpage
+
+
+\subsection[How many pecks]{How many pecks of pickled peppers}
+
+Content
+
+\subsection{Did Peter Piper pick?}
+
+Content
+
+\end{document}
diff --git a/texmf-dist/doc/latex/aeb-minitoc/examples/minitoc-bk.tex b/texmf-dist/doc/latex/aeb-minitoc/examples/minitoc-bk.tex
new file mode 100644
index 00000000..02f04f02
--- /dev/null
+++ b/texmf-dist/doc/latex/aeb-minitoc/examples/minitoc-bk.tex
@@ -0,0 +1,236 @@
+\documentclass{book}
+
+% If you remove hyperref, uncomment xcolor
+%\usepackage{xcolor}
+\usepackage[linktocpage,colorlinks,bookmarksnumbered]{hyperref}
+
+\usepackage{booktabs}
+\usepackage{aeb-minitoc}
+\usepackage{multicol}
+
+\TOPLevel{chapter}\BTMLevel{subsection}
+\setcounter{secnumdepth}{5}
+\setcounter{tocdepth}{5}
+
+\begin{minitocfmt}{\minitocFmtColor}
+\@A{\def\@linkcolor{blue}}
+\declaretocfmt{section}{\@W{2.5em}\@D{0em}}
+\declaretocfmt{subsection}{\@W{2.5em}\@D{2.5em}\@N{\color{blue}}\@P{\bfseries\textsl}}
+\declaretocfmt{subsubsection}{\@W{3.1em}\@D{5em}}
+\end{minitocfmt}
+
+\begin{minitocfmt}{\minitocFmtColoriiCols}
+\@A{\def\@linkcolor{blue}\@DS{2}\@PW{1em}\NoFmtTOCEntry}
+\declaretocfmt{section}{\@W{1.6em}\@D{0em}}
+\declaretocfmt{subsection}{\@R{1.55em\@plus 2em}\@W{2.6em}\@D{1.5em}\@N{\color{blue}}\@P{\bfseries\textsl}
+}
+\declaretocfmt{subsubsection}{\@W{3.1em}\@D{5em}}
+\end{minitocfmt}
+
+\begin{minitocfmt}{\minitocFmti}
+\declaretocfmt{section}{\@W{2.5em}\@D{0em}}
+\declaretocfmt{subsection}{\@W{2.5em}\@D{0em}}
+\declaretocfmt{subsubsection}{\@W{3.1em}\@D{2.5em}}
+\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}\toprule
+ \begin{minipage}[c]{0.8\linewidth}
+ \insertminitoc[#1]
+ \end{minipage}\\\bottomrule
+ \end{tabular}
+ \end{center}
+}
+
+\newcommand{\insMinitociiCols}[2][]{%
+ \begin{center}#2
+ \begin{minipage}[c]{.9\linewidth}
+\begin{multicols}{2}
+ \insertminitoc[#1]
+\end{multicols}
+ \end{minipage}
+ \end{center}
+}
+
+\let\env\texttt
+\let\pkg\textsf
+\def\cs#1{\texttt{\char`\\#1}}
+
+
+\begin{document}
+
+\tableofcontents
+
+\listoffigures
+
+\listoftables
+
+\newpage
+
+\chapter{My first chapter}
+
+The topics of this section are listed below.
+
+\insMinitoc{\TOPLevel{chapter}\BTMLevel{subsection}\small\minitocFmtColor}
+
+Now let's try a two column format using the \pkg{multicol} package.
+
+\insMinitociiCols{\TOPLevel{chapter}\BTMLevel{subsection}\small\minitocFmtColoriiCols}
+
+\noindent We've set the \cs{linewidth} of the \env{minipage} environment to
+\texttt{.9\cs{linewidth}} and set the font size to \cs{small}.
+
+%\newpage
+
+\section{First of Many}
+
+\subsection[\protect\miniorfulltoc{\textbf}{Now is the time for all good men to come to the aid of their country, so it has been said}]{Now is the time for all good men to come to the aid of their country, so it has been said}
+
+Content
+
+\addtocontents{toc}{\protect\vspace{1em}\hfill
+ Vertical Space\hfill\protect\vspace{1em}}
+
+\subsection{For all good men}
+
+Let's insert a table in this section.
+
+\begin{table}[htb]
+\begin{center}
+Hello world 1!
+\end{center}
+\caption{Cool Table 1}
+\end{table}
+
+
+\subsubsection{A subsubsection}
+
+Content
+
+\subsubsection{Another one}
+
+Content
+
+\subsection{To come to the aid}
+
+Content
+
+\begin{table}[htb]
+\begin{center}
+Hello world 2!
+\end{center}
+\caption{Cool Table 2}
+\end{table}
+
+\subsubsection{A third subsubsection}
+
+Content
+
+\subsubsection{A fourth}
+
+Content
+
+\subsection{Of their country}
+
+Content
+
+
+\newpage
+
+\section{Second to None}
+
+
+\insMinitoc{\TOPLevel{section}\BTMLevel{subsubsection}\small\minitocFmti}
+
+\subsection{Peter Piper}
+
+Content
+
+\subsubsection{A subsubsection}
+
+Content
+
+\subsubsection{Another one}
+
+Content
+
+\begin{figure}[htb]
+\begin{center}
+Hello world 1!
+\end{center}
+\caption{Cool Figure 1}
+\end{figure}
+
+
+\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?}
+
+\chapter{Second Chapter}
+
+Content
+
+\section{First of Second Chapter}
+
+\insMinitoc{\TOCLevels{section}{subsubsection}\minitocFmti}
+
+Content
+
+\subsection{First: A subsection}
+
+Content
+
+\subsubsection{First: A sub-subsection, and let's make it a long one}
+
+Content
+
+\subsection{First: Another one}
+
+Content
+
+\section{Second Section of Second Chapter}
+
+\insMinitoc{\TOCLevels{section}{subsubsection}\minitocFmti}
+
+Content
+
+\subsection{Second: A subsection}
+
+Content
+
+\subsection{Second: Another one}
+
+Content
+
+\subsubsection{Second: Another subsub, bub}
+
+
+
+\end{document}
diff --git a/texmf-dist/doc/latex/aeb-minitoc/examples/minitoc-bullets-para.tex b/texmf-dist/doc/latex/aeb-minitoc/examples/minitoc-bullets-para.tex
new file mode 100644
index 00000000..1a989b6c
--- /dev/null
+++ b/texmf-dist/doc/latex/aeb-minitoc/examples/minitoc-bullets-para.tex
@@ -0,0 +1,211 @@
+\documentclass{article}
+
+% Use the nameref package to use the \Nameref command
+\usepackage{nameref}
+% if you use hyperref, nameref is automatically loaded
+%\usepackage[linktocpage,colorlinks,bookmarksnumbered]{hyperref}
+
+\usepackage{booktabs}
+\usepackage{aeb-minitoc}
+
+\setcounter{secnumdepth}{5}
+\setcounter{tocdepth}{5}
+\BTMLevel{subsubsection}
+
+\renewcommand*{\thesubsubsection}{$\bullet$}
+%\renewcommand*{\thesubsubsection}{\texorpdfstring{$\bullet$}{\textbullet}}
+\renewcommand*{\theparagraph}{\protect\P}
+\renewcommand*{\thesubparagraph}{\protect\P\protect\P}
+% definitions for main toc
+\makeatletter
+\renewcommand\l@paragraph{\@dottedtocline{\sl@paragraph}{5.0em}{1em}} %{7.0em}{4.1em}}
+\renewcommand\l@subparagraph{\@dottedtocline{\sl@paragraph}{6.0em}{1.5em}} %{7.0em}{4.1em}}
+\renewcommand\@pnumwidth{.55em}
+
+\renewcommand{\paragraph}{%
+ \@startsection{paragraph}{4}{0pt}{6pt}{-3pt}{\bfseries}}
+%\renewcommand*\l@paragraph{\@dottedtocline{4}{5.0em}{1em}} %{7.0em}{4.1em}}
+\renewcommand{\subparagraph}{%
+ \@startsection{subparagraph}{5}{\parindent}{6pt}{-3pt}{\bfseries}}
+\def\@seccntformat#1{\csname the#1\endcsname\ }
+\makeatother
+
+\begin{minitocfmt}{\fulltocFmt}
+\declaretocfmt{subsection}{\@W{1.5em}\@D{1.5em}}
+\declaretocfmt{subsubsection}{\@W{1em}\@D{3em}}
+\declaretocfmt{paragraph}{\@W{1em}\@D{4em}}
+\declaretocfmt{subparagraph}{\@W{1.5em}\@D{5em}}
+\end{minitocfmt}
+
+%\TOCLevels{section}{subsubsubsection}
+\begin{minitocfmt}{\minitocFmti}
+\declaretocfmt{subsection}{\@W{2em}\@D{0em}}
+\declaretocfmt{subsubsection}{\@W{1em}\def\@tocrmarg{1.55em\@plus 2em}\leftskip2em
+ \rightskip\@tocrmarg {#1},\nobreak{ #2}\enspace\allowbreak}
+\end{minitocfmt}
+
+
+%\TOCLevels{subsubsection}{subparagraph}
+\begin{minitocfmt}{\minitocFmtii}
+\declaretocfmt{paragraph}{\@W{1em}\@D{0em}}
+\declaretocfmt{subparagraph}{\@W{1.5em}\@D{1em}}
+\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}
+
+\fulltocFmt
+
+\tableofcontents
+
+\newpage
+
+\section{First of Many}
+
+Let's introduce a paragraph listing TOC in this section.
+
+\insMinitoc{\TOCLevels{section}{subsubsection}\minitocFmti}
+
+As an exercise in referencing a mini-toc outside its natural scope, we list
+the paragraphs and subparagraphs of the section titled \Nameref{ss:fourth}.
+
+\insMinitoctab[ss:fourth]{\TOCLevels{subsubsection}{subparagraph}\minitocFmtii}
+
+
+\subsection{A subsection}
+
+Content
+
+\subsubsection{A subsubsection}
+
+Content
+
+\subsubsection{Another one, but let us make it a much longer entry}
+
+Content
+
+\subsection{To come to the aid}
+
+Content
+
+
+\subsubsection{A third subsubsection}
+
+Content
+
+\subsubsection{A fourth subsubsection}\mtoclabel{ss:fourth}
+
+We list the named paragraphs and subparagraphs.
+
+
+\insMinitoctab{\TOCLevels{subsubsection}{subparagraph}\minitocFmtii}
+
+
+\paragraph{A paragraph} This is filler sentence, long enough to wrap around to the next line.
+
+
+\subparagraph{A sub-paragraph}
+
+Content
+
+\subparagraph{A sub-paragraph}
+
+Content
+
+\subsubsection{A fifth subsub}
+
+Content
+
+
+\paragraph{A paragraph}
+
+Content
+
+\subsection{Of their country}
+
+Content
+
+\newpage
+
+\section{Second to None}
+
+\insMinitoc{\TOCLevels{section}{subsubsection}\minitocFmti}
+
+\noindent
+Content
+
+\subsection{Peter Piper}
+
+Content
+
+\subsubsection{A subsubsection on the second page}
+
+\insMinitoctab{\TOCLevels{subsubsection}{subparagraph}\minitocFmtii}
+
+\noindent
+Content
+
+\paragraph{A paragraph of second section} \leavevmode\medskip
+
+\noindent
+Content
+
+\subparagraph{A sub-paragraph of second section} \leavevmode\medskip
+
+\noindent
+Content
+
+\paragraph{A paragraph of second section} \leavevmode\medskip
+
+\noindent
+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}