Devo aumentare l’altezza di una testatina composta con fancyhdr
per non ricevere il messaggio:
`Package Fancyhdr Warning: \headheight is too small (14.0pt):
Make it at least 17.0pt.`
Se però inserisco
`\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\chaptermark}[1]{\markboth{\textbf{\thechapter. #1}}{}}
\renewcommand{\sectionmark}[1]{\markright{\textbf{\thesection. #1}}}
\renewcommand{\headheight}{18.0pt}
\renewcommand{\headrulewidth}{0.5pt}`
ottengo tuttavia l’errore:
`! You can't use `the character 1' after \the.
\headheight ->1
8.0pt
l.12 \begin{document}`
Tutto invece funziona adottando, in luogo di
`\renewcommand{\headheight}{18.0pt}`
il codice
`\setlength{\headheight}{18.0pt}`
Ora, perché il primo non funziona?
Sono quasi certo che sul manuale di fancyhdr ci sia:
`\setlength{\headheight}{17pt}`
Viceversa \headrulewidth va trattata con \renewcommand; ma lasciala al default oppure annullala, 0.5pt non ha senso.
Ciao
Enrico