From 725ba0e6199db5fc0dff9df34f5e28a77c28624a Mon Sep 17 00:00:00 2001 From: Paco - tomillo Date: Fri, 3 Oct 2014 18:51:11 +0200 Subject: [PATCH] Further improve the TOC. --- Makefile | 3 ++- libro.tex | 14 +++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e14eb56..ca35070 100644 --- a/Makefile +++ b/Makefile @@ -66,7 +66,8 @@ $(NOMBRE).pdf: $(NOMBRE).tex $(INCLUDESTEX) $(IMAGENES) $(SPLITPDFS): pruebalibro.ly lilypond pruebalibro.ly - . ./scriptPDFTK.sh + . ./scriptPDFTK.sh # extract pages from the auxiliar document + # to include them as images frerejacques.pdf: frerejacques.ly lilypond frerejacques.ly diff --git a/libro.tex b/libro.tex index ca83b16..280629c 100644 --- a/libro.tex +++ b/libro.tex @@ -14,7 +14,7 @@ \setkomafont{disposition}{\normalcolor\bfseries} %no sans serif %\setkomafont{disposition}{\normalcolor\mdseries} %no negrita -\parskip=0pt\clubpenalty=10000\widowpenalty=10000 +\parskip=3pt\clubpenalty=10000\widowpenalty=10000 \parindent=6mm \newcommand{\preLilyPondExample}{\vspace{0pt}} \newcommand{\postLilyPondExample}{\vspace{6pt}} @@ -60,8 +60,20 @@ %\singlespace \begin{singlespace} % los listados van a un espacio. Necesita el paquete setspace + +\begingroup +\makeatletter +\patchcmd{\l@section}{% + \addvspace{1.0em \@plus\p@}% original code line +}{% + \addvspace{0.3em \@plus 0.3\p@}% substitute code line +}{}{} +\makeatother +%\shorttoc{Shorttoc}{1} \setcounter{tocdepth}{1} \tableofcontents +\endgroup + % \listoffigures % \listoftables \end{singlespace} -- 2.11.4.GIT