0

I am facing a tricky situation regarding the design of a table of contents that needs to be placed for each chapter of a manuscript.

I am using a style.tex from another user to compile the design of the document and I am not familiarized with all of the instructions.

The issue : I want all the TOC to look like this at the beginning of each chapter : enter image description here

The \minitoc environment is tight and allows for a small portion of text behind it : very convenient.

Unfortunately, some chapters are longer than others therefore they have more section which causes the minitoc to be stretched like this :

enter image description here

I would like to avoid this and obtain systematically the first "style" even if it implies having more blank space below (I can consider putting an). The problem is that I don't know what to modify in order to do so...

I have isolated some important parts of the style.tex related to the design of the pages : maybe it can be useful to help me.

\usepackage[left=1.5in,right=1.3in,top=1.1in,bottom=1.1in,includefoot,includehead,headheight=13.6pt]{geometry}
\renewcommand{\baselinestretch}{1.05}

% Table of contents for each chapter

\usepackage[nottoc, notlof, notlot]{tocbibind}
\usepackage{minitoc}
\setcounter{minitocdepth}{2}
\mtcindent=15pt 

\usepackage{fancyhdr} 

\pagestyle{fancy}                       % Sets fancy header and footer
\fancyfoot{}  

\fancyhead[LE,RO]{\bfseries\thepage}    % Page number (boldface) in left on even
% pages and right on odd pages
\fancyhead[RE]{\bfseries\nouppercase{\leftmark}}      % Chapter in the right on even pages
\fancyhead[LO]{\bfseries\nouppercase{\rightmark}}     % Section in the left on odd pages

\let\headruleORIG\headrule
\renewcommand{\headrule}{\color{black} \headruleORIG}
\renewcommand{\headrulewidth}{1.0pt}
\usepackage{colortbl}
\arrayrulecolor{black}

\fancypagestyle{plain}{
  \fancyhead{}
  \fancyfoot{}
  \renewcommand{\headrulewidth}{0pt}
}

\newenvironment{maxime}[1]
{
\vspace*{0cm}
\hfill
\begin{minipage}{0.5\textwidth}%
%\rule[0.5ex]{\textwidth}{0.1mm}\\%
\hrulefill $\:$ {\bf #1}\\
%\vspace*{-0.25cm}
\it
}%
{%

\hrulefill
\vspace*{0.5cm}%
\end{minipage}
}

\let\minitocORIG\minitoc
\renewcommand{\minitoc}{\minitocORIG \vspace{1.5em}}

P.S : Before downgrading my post, please suggest how I can improve it to make it clearer since it's a very specific question I am aware that it needs specific details.

Thank you in advance for your help,

Best regards.

2
  • 1
    You could try changing \vspace{1.5em} to \vfill\par or whatever. But without code we can use to reproduce the problem, it's hard to say what exactly that might do. The code you show has various problems. In particular, it doesn't seem especially suitable for use with memoir as it just overwrites a bunch of what memoir does. Moreover, it uses commands which have been obsolete for several decades in LaTeX. memoir provides its own page layout features etc.
    – cfr
    Commented Jun 11 at 14:37
  • @cfr Thank you : your option worked for me it was sufficient. Yes, I know : I am trying to re-use a specific design that I liked in this stylefile. In the same time, I have to get rid of a lot of unnecessary options ! Thank you.
    – Waxler
    Commented 7 hours ago

0

You must log in to answer this question.

Browse other questions tagged .