Re: testatine con la classe book

#19702
meg
    Up
    0
    Down
    ::

    Certo che è possibile.
    Dai un’occhiata al pacchetto “fancyhdr”, nel manuale trovi un esempio semplicissimo e se hai problemi non esitare a chiedere o … a fare una ricerca sul forum, penso ci siano moltissime discussioni su questo argomento.

    Ho riletto la documentazione del pacchetto, ma non ho trovato la parte che mi dicevi. Avevo già scritto questo codice:
    `
    \pagestyle{fancy}
    \lhead{\nouppercase{\rightmark}}
    \rhead{\nouppercase{\leftmark}}
    \renewcommand{\chaptermark}[1]{\markboth{\thechapter \ #1}{}}
    \renewcommand{\sectionmark}[1]{\markright{\thesection \ #1}}
    \fancyhf{}
    \fancyhead[LE]{\bfseries\rightmark}
    \fancyhead[RO]{\bfseries\leftmark}
    \fancyfoot[LE,RO]{\thepage}
    \setlength{\headheight}{15pt}
    \renewcommand{\headrulewidth}{0.4pt}
    \renewcommand{\footrulewidth}{0pt}
    \addtolength{\headheight}{0pt}
    %
    \fancypagestyle{plain}{%
    \fancyhf{}
    \fancyfoot[R]{\thepage}
    \renewcommand{\headrulewidth}{0pt}
    \renewcommand{\footrulewidth}{0pt}}
    `

    ma vorrei che, nella parte dove inserisco sectionmark, ci fosse invece il numero del capitolo (\chaptername)…

    meg

    Go to top