Re: Ridurre di una pagina l’indice

#92511
OldClaudio
Partecipante
    Up
    0
    Down
    ::


    Ho preso il tuo codice, hi messo del testo fasullo solo epr avere capitoli da mettere nell’indice e ho allungato la pagina di tre righe; il tutto funziona, ma è importante che prima dlel’indice sia stato stampato qualche cosa; ciò che l’indice non cada nella pagina 1-romano.
    `% !TEX encoding = UTF-8 Unicode
    % !TEX TS-program = pdflatex

    % Per allungare la pagina dell'indice
    \documentclass[12pt]{book}

    \usepackage{emptypage}

    \begin{document}

    \frontmatter

    \chapter{Presentazione}
    CCC

    \begingroup
    \advance\textheight 3\baselineskip
    \tableofcontents
    \clearpage
    \endgroup

    \mainmatter

    \chapter{XXX}

    AAA
    \section{YYY}
    BBB
    \section{YYY}
    BBB
    \section{YYY}
    BBB
    \section{YYY}
    BBB
    \section{YYY}
    BBB
    \section{YYY}
    BBB
    \section{YYY}
    BBB

    \chapter{XXX}

    AAA
    \section{YYY}
    BBB
    \section{YYY}
    BBB
    \section{YYY}
    BBB
    \section{YYY}
    BBB
    \section{YYY}
    BBB
    \section{YYY}
    BBB
    \section{YYY}
    BBB

    \chapter{XXX}

    AAA
    \section{YYY}
    BBB
    \section{YYY}
    BBB
    \section{YYY}
    BBB
    \section{YYY}
    BBB
    \section{YYY}
    BBB
    \section{YYY}
    BBB
    \section{YYY}
    BBB
    \section{YYY}
    BBB

    \chapter{XXX}

    AAA
    \enddocument}
    `

    Copialo, salvaloe e compailalo: vedrai che cosa succede a commentare o non commentare la riga [tt]\advance\textheight 3\baleineskip[/tt].

    Go to top