Problema con il nome dell’appendice (e fancyhdr)

  • Creatore
    Topic
  • #3617
    Up
    0
    Down
    ::


    Il problema di cui parlo si è presentato nelle testatine. Mi sono definito uno stile per con il pacchetto fancyhdr
    `
    \usepackage{fancyhdr}
    \pagestyle{fancy}
    \fancyhf{}
    \renewcommand{\chaptermark}[1]{\markboth{\chaptername \space \thechapter.\ \textit{#1}}{}}
    \fancyfoot[C]{\thepage}
    \fancyhead[LO,RE]{\footnotesize{\nouppercase{\leftmark}}}
    `

    Il semplice problema che ho è che i capitoli dell’appendice prendono, nella testatina, il \chaptername e dunque ottengo ad esempio

    Capitolo B

    anziché

    Appendice B

    .

    Qualcuno ha qualche suggerimento?

Visualizzazione 0 filoni di risposte
  • Autore
    Risposte
    • #3618
      Up
      0
      Down
      ::

      Il problema di cui parlo si è presentato nelle testatine. Mi sono definito uno stile per con il pacchetto fancyhdr`\usepackage{fancyhdr}
      \pagestyle{fancy}
      \fancyhf{}
      \renewcommand{\chaptermark}[1]{\markboth{\chaptername \space \thechapter.\ \textit{#1}}{}}
      \fancyfoot[C]{\thepage}
      \fancyhead[LO,RE]{\footnotesize{\nouppercase{\leftmark}}}`Il semplice problema che ho è che i capitoli dell’appendice prendono, nella testatina, il \chaptername e dunque ottengo ad esempio

      Capitolo B

      anziché

      Appendice B

      .Qualcuno ha qualche suggerimento?

      Naturalmente. Devi usare il comando \@chapapp invece di \chaptername. Il comando \appendix nella classe book ridefinisce \@chapapp come \appendixname, mentre normalmente esso vale \chaptername.`\usepackage{fancyhdr}
      \pagestyle{fancy}
      \fancyhf{}
      \makeatletter
      \renewcommand{\chaptermark}[1]{\markboth{\@chapapp \space \thechapter.\ \textit{#1}}{}}
      \makeatother
      \fancyfoot[C]{\thepage}
      \fancyhead[LO,RE]{\footnotesize{\nouppercase{\leftmark}}}`Ciao
      Enrico

Visualizzazione 0 filoni di risposte
  • Devi essere connesso per rispondere a questo topic.

Go to top