Re: pacchetto fancyhdr…AIUTO!!!

#18613
DMW
    Up
    0
    Down
    ::

    niente da fare….rimane tutto com’è.
    Non è che ho sbagliato qualcosa nelle varie \fancyhead…..ho già controllato ma magari non vedo l’errore

    grazie ciao
    G.

    No, ho sbagliato io. l’opzione openright comincia i capitoli nelle pagine dispari e non destre. E l’opzione openleft non esiste nella classe book ma in quella memoir. Ho avuto un lapsus.
    Nel tuo caso le pagine dispari sono a sinistra mentre a me a volte sono a destra.

    Ti faccio due esempi compilabili. Nel primo le pagine dispari sono a sinistra
    `\documentclass[12pt,twoside,openright]{book}
    \usepackage[T1]{fontenc}
    \usepackage[italian]{babel}
    \usepackage{lipsum}

    \begin{document}
    \chapter{cap1}
    \lipsum
    \chapter{cap2}
    \lipsum
    \end{document}
    `

    In quest’altro sono a destra:
    `\documentclass[12pt,twoside,openright]{book}
    \usepackage[T1]{fontenc}
    \usepackage[italian]{babel}
    \usepackage{lipsum}

    \begin{document}
    \setcounter{page}{0}\thispagestyle{empty}
    \chapter{cap1}
    \lipsum
    \chapter{cap2}
    \lipsum
    \end{document}
    `

    Quindi nel tuo caso avrai una struttura tipo questa:
    `\documentclass[12pt,twoside,openright]{book}
    \usepackage[T1]{fontenc}
    \usepackage[italian]{babel}
    \usepackage{lipsum}

    \begin{document}
    \frontmatter
    \begin{titlepage}
    frontespizio
    \setcounter{page}{0}
    \end{titlepage}

    \thispagestyle{empty}
    \vspace{10cm}
    \begin{flushright}
    \null\vspace{\stretch{2} } \null
    \textit{A……}\\
    \vspace{\stretch{1} }
    \end{flushright}
    \thispagestyle{empty}

    \tableofcontents
    \mainmatter
    \chapter{cap1}
    \lipsum
    \backmatter
    \chapter{biblio}
    \lipsum
    \end{document}`

    con tutto che si apre a destra. Il pacchetto fancyhdr non c’entra nulla

    Ciao

    Andrea

    Go to top