Como definir o tamanho da fonte para minitoc no LyX

Como definir o tamanho da fonte para minitoc no LyX

Olá a todos, estou escrevendo um livro em LyX com o pacote minitoc. Se eu usar \documentclass [10pt]{book}o minitoc será configurado em uma página, mas se eu usar 12pto minitoc será configurado em 2 páginas.

Quero usar o 12 pt mas redimensionar o minitoc como estava no 11pt!

Código de látex:

%% 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}

com 10p a saída é: toc em 1 página

com 12p a saída é: toc em 2 páginas

Responder1

Uma alternativa é adicionar tightcomo opção ao minitocpacote, ou seja

\usepackage[tight]{minitoc}

Isso definirá os minitocs com espaçamento vertical menor, o que fará com que caibam em uma página.

informação relacionada