Minitoc 顶部对齐

Minitoc 顶部对齐

当我应用minitoc并且目录溢出到下一页时,它会自动填满整个页面而不是与顶部对齐。

正确对齐

错误对齐

    \documentclass[12pt]{book} 


\usepackage{minitoc} % for mini content page 
\setcounter{minitocdepth}{2} 
\dominitoc[n] % for mini content page

\begin{document}

\faketableofcontents

\chapter{Chapter 1}

\minitoc  

\pagebreak[4]

\section{Section 1}
This is section 1.
\subsection{Subsection 1}
This is subsection 1.
\subsection{Subsection 2}
This is subsection 2.
\subsection{Subsection 3}
This is subsection 3. 

\section{Section 2}
\subsection{Subsection 1}
\subsection{Subsection 2}
\subsection{Subsection 3}

\section{Section 3}
\subsection{Subsection 1}
\subsection{Subsection 2}
\subsection{Subsection 3}

\section{Section 4}
\subsection{Subsection 1}
\subsection{Subsection 2}
\subsection{Subsection 3}

\section{Section 5}
\subsection{Subsection 1}
\subsection{Subsection 2}
\subsection{Subsection 3}

\section{Section 6}
\subsection{Subsection 1}
\subsection{Subsection 2}
\subsection{Subsection 3}

\end{document}

答案1

您请求此行为

\pagebreak[4]

使用

\clearpage

如果您想让页面简短。您会看到换行符和 之间的\linebreak区别\newline

相关内容