如何在 LyX 中設定 minitoc 的字體大小

如何在 LyX 中設定 minitoc 的字體大小

大家好,我正在用 LyX 包寫一本書minitoc。如果我使用\documentclass [10pt]{book}minitoc 則設定在一頁中,但如果我使用12ptminitoc 則設定在 2 頁中。

我想使用 12 pt,但像 11 pt 那樣調整 minitoc 的大小!

乳膠代碼:

%% LyX 2.0.7 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\RequirePackage{fix-cm}
\documentclass[10pt,oneside,italian]{book}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{listings}
\lstset{basicstyle={\ttfamily},
breaklines=true,
frame=TRBL,
frameround=ffff}
\usepackage{fancyhdr}
\pagestyle{fancy}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{1}
\setlength{\parskip}{\smallskipamount}
\setlength{\parindent}{0pt}
\usepackage{float}
\usepackage{amsmath}
\usepackage{setspace}
\doublespacing

\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\numberwithin{equation}{section}
\numberwithin{figure}{section}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage{minitoc}
\renewcommand{\mtcfont }{\tiny}
\usepackage[Lenny]{fncychap}

\makeatother

\usepackage{babel}
\begin{document}
\dominitoc

\tableofcontents{}

\begin{singlespace}

\chapter{\noindent Cap1}
\end{singlespace}

\begin{singlespace}
\noindent \null 
\vfill
\begin{singlespace}
\minitoc
text text text text text text text text text text text text text text text text .
\end{singlespace}
\end{singlespace}


\section{Sec1}


\subsection{SubSec1}


\subsection{SubSec2}


\section{Sec2}


\subsection{SubSec1}


\subsection{SubSec2}


\section{Sec3}


\subsection{SubSec1}


\subsection{SubSec2}


\section{Sec4}


\subsection{SubSec1}


\section{Sec5}


\subsection{SubSec1}


\subsection{SubSec2}


\section{Sec6}


\subsection{SubSec1}


\subsection{SubSec2}


\section{Sec7}
\end{document}

10p 的輸出是: 1 頁目錄

12p 的輸出是: 目錄共 2 頁

答案1

一種替代方法是tight作為選項添加到minitoc包中,即

\usepackage[tight]{minitoc}

這會將 minitoc 設定為更緊密的垂直間距,使其適合一頁。

相關內容