Ciao. Scrivo in questo topic perché ho un problema del tutto analogo con l’intestazione.
Attualmente ho la scritta CAPITOLO (con il numero e il nome) a sinistra e il numero della pagina a destra (vedi foto)
http://https://www.dropbox.com/s/654q60nroafu25r/capitolo.png
Vorrei inserire una linea orizzontale sotto. Ho provato varie soluzioni ma con scarso risultato:
1) Ho inserito `\usepackage{fancyhdr}
\pagestyle{fancy}`
ma il risultato è stato che adesso ho, oltre al nome del capitolo, anche il nome della sezione (si veda foto) https://www.dropbox.com/s/xvvzgj2t0iot2kf/capitolo2.png
2)Ho inserito `\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\fancyhf{} \fancyhead[LE,RO]{\bfseries\thepage}
\fancyhead[LO]{\bfseries\rightmark}
\fancyhead[RE]{\bfseries\leftmark}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0pt}
\addtolength{\headheight}{0.5pt} \fancypagestyle{plain}{
\fancyhead{}
\renewcommand{\headrulewidth}{0pt}}
`
però ho otteuto questo risultato https://www.dropbox.com/s/tje38ys5diqckqx/capitolo3.png (si veda foto).
Come posso fare? Grazie, ciao.