Re: Problema indice

#14263
lorenzo.pantieri
Partecipante
    Up
    0
    Down
    ::


    Sono warning sostanzialmente inoffensivi. Io uso il seguente schema:
    `\documentclass[a4paper,11pt,twoside]{book}

    \usepackage{fancyhdr}

    \makeatletter
    \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
    \hbox{}
    \vspace*{\fill}
    \vspace{\fill}
    \thispagestyle{empty}
    \newpage
    \if@twocolumn\hbox{}\newpage\fi\fi\fi}
    \makeatother

    \pagestyle{fancy}
    \renewcommand{\chaptermark}[1]{\markboth{#1}{}}
    \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
    \fancyhf{}
    \fancyhead[LE,RO]{\scshape\thepage}
    \fancyhead[LO]{\scshape\footnotesize\nouppercase{\rightmark}}
    \fancyhead[RE]{\scshape\footnotesize\nouppercase{\leftmark}}
    \renewcommand{\headrulewidth}{0.5pt}
    \renewcommand{\footrulewidth}{0pt}
    \addtolength{\headheight}{1.6pt}

    \begin{document}
    \frontmatter
    \include{…}
    \tableofcontents
    \mainmatter
    \include{…}
    \include{…}
    \backmatter
    \include{…}
    \end{document}`
    Con l’opzione twoside, le testatine delle pagine dispari riportano il titolo della sezione, quelle delle pagine pari del capitolo corrispondente. Con l’opzione oneside, invece, tutte le testatine riportano il titolo della sezione corrispondente. Ecco spiegato il primo warning. Quanto al secondo, il comando
    `\addtolength{\headheight}{1.6pt}`
    rimedia.

    Ciao,
    L.

    Go to top