Re: fancyhdr solo titolo capitolo

#8623
DMW
    Up
    0
    Down
    ::

    Grazie mille, ho utilizzato il codice

    `\usepackage{fancyhdr}

    \pagestyle{fancy}
    \fancyfoot{}
    \renewcommand{\chaptermark} [1]{\chaptername\ \thechapter.\ #1}{}
    \renewcommand{\chaptermark}[1]{\markboth{\thechapter.\ #1}{}}
    \fancyhead[LE,RO]{\bfseries\thepage}
    \fancyhead[L]{\bfseries\leftmark}

    \renewcommand{\headrulewidth}{0.3pt}`

    e tutto va come desideravo.

    Alla prossima, Delia.

    Devo ammettere che il tuo codice non è un gran che perché visualizza sia a destra che a sinistra il capitolo. Per rimediare metti \fancyhead{} al posto di \fancyfoot{} . Poi il primo \renewcommand è superfluo ed anche errato quindi lo puoi togliere. Io se fossi in te visto che usi solo fronte, proverei con
    `
    \pagestyle{fancy}
    \fancyhead{}
    \renewcommand{\chaptermark}[1]{\markboth{\thechapter.\ #1}{}}
    \fancyhead[LE,RO]{\bfseries\thepage}
    \fancyhead[CE]{\bfseries\leftmark}`

    Ti consiglio il manuale di fanchyhdr che è anche in italiano
    ftp://tug.ctan.org/pub/tex-archive/info/italian/fancyhdr/itfancyhdr.pdf

    Ciao

    Andrea

    Go to top