1

Is there any way to easily customize \minitoc to avoid the big before/after space?

Without using \vspace{-5mm} everywhere I use them (which is in a lot of chapters), and, only as a last case recourse, without resorting to hacks such as this: How to suppress extra vertical space before/after fancy Verbatim environments?.

The minitoc manual is too huge for me to parse it, and my latex skills are still in their infancy. :)

MWE:

\documentclass{report}

\usepackage{minitoc}

\dominitoc

\mtcsettitle{minitoc}{}
\mtcsetrules{*}{off}

\begin{document}

\faketableofcontents

\chapter{Chapter One}

The following topics will be explojlkmemdl.dm,dl d,wd,dw dwwfeefr ffwfewefef feef feeffe red:
\minitoc

\section{Section One One}
\subsection{Subsection One One One}
\subsection{Subsection One One Two}


\end{document}

screenshot

0
1

try this

\documentclass{report}

\usepackage{minitoc}
% this
\mtcsetfeature{minitoc}{before}{\vspace{-.5cm}}
\mtcsetfeature{minitoc}{after}{\vspace{-.5cm}}
% or this
%\mtcsetfeature{minitoc}{open}{\vspace{-.5cm}}
%\mtcsetfeature{minitoc}{close}{\vspace{-.5cm}}

\dominitoc

\mtcsettitle{minitoc}{}
\mtcsetrules{*}{off}

\begin{document}

\faketableofcontents

\chapter{Chapter One}

The following topics will be explojlkmemdl.dm,dl d,wd,dw dwwfeefr ffwfewefef feef feeffe red:
\minitoc

\section{Section One One}
\subsection{Subsection One One One}
\subsection{Subsection One One Two}


\end{document}
1
  • Using \mtcsetfeature{minitoc}{before}{\vspace{-...}} didn't work for me. After a lot of frustration I realised that I needed the starred version of \vspace, i.e.: \mtcsetfeature{minitoc}{before}{\vspace*{-...}} – John J. Camilleri Aug 30 '17 at 14:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.