Re: Problema con testatine dei capitoli

#15088
lorenzo.pantieri
Partecipante
    Up
    0
    Down
    ::


    `\documentclass{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}}

    \begin{document}
    \frontmatter
    \include{frontespizio}
    \include{ringraziamenti}
    \tableofcontents \listoffigures
    \mainmatter
    \include{introduzione}
    \include{…} % capitoli
    \include{…}
    \include{conclusioni}
    \backmatter
    \include{bibliografia}
    \end{document}
    `
    dove introduzione.tex è:
    `\chapter*{Introduzione}
    \markboth{Introduzione}{}
    \addcontentsline{toc}{chapter}{Introduzione}

    `
    Ciao,
    L.

    Go to top