Re: Header con fancyhdr

#14139
lorenzo.pantieri
Partecipante
    Up
    0
    Down
    ::


    Ciao, ho sempre usato nel preambolo questo incantesimo
    `\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}}
    \renewcommand{\headrulewidth}{0.5pt}
    \renewcommand{\footrulewidth}{0pt}
    \addtolength{\headheight}{1.6pt}`
    e non ho mai avuto problemi!

    Ciao,
    L.

    Go to top