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

相關內容