Re: [Fancyhdr] Lunghezza intestazione

#24415
DMW
    Up
    0
    Down
    ::


    A me non succede. Prova dda capo questo esempio
    `\documentclass[11pt,a4paper]{article}
    \usepackage[italian]{babel}
    \usepackage[latin1]{inputenc}
    \usepackage{graphicx}
    \usepackage[rm, small]{caption}
    \usepackage{makeidx}
    \usepackage{wrapfig}
    \usepackage{pstricks}
    \usepackage{floatflt}
    \usepackage[margin=2cm]{geometry}
    \usepackage{fancyhdr,lipsum}
    \pagestyle{fancy}
    \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
    \fancyhf{}
    \fancyhead[LE,RO]{\bfseries\thepage}
    \fancyhead[LO]{\bfseries\rightmark}
    \renewcommand{\headrulewidth}{0.5pt}
    \renewcommand{\footrulewidth}{0pt}
    \setlength{\headheight}{13.6pt} % riserva spazio per la linea
    \fancypagestyle{plain}{%
    \fancyhead{} % ignora, nello stile plain, le intestazioni
    \renewcommand{\headrulewidth}{0pt} % e la linea
    }
    \begin{document}
    \section{sezione}
    \lipsum
    \section{sez2}
    \lipsum
    \end{document}`

    l’intestazione è larga quanto l’area del testo, cioè \textwidth.

    Ciao

    Andrea

    Go to top