Capoccia” post=66320Ho estrapolato la parte della classe contenente il comando che mi hai indicato.
% — define headers ————————————————-
\RequirePackage{lastpage} % provides a \pageref{LastPage} command
\RequirePackage{fancyhdr} % fancy headers\pagestyle{fancy}
%\fancyheadoffset[LE,RO]{\marginparsep+\marginparwidth}
%\renewcommand{\chaptermark}[1]{\markboth{\thechapter \ #1}{}} % print chapter numeber with chapter name
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
%\renewcommand{\subsectionmark}[1]{\markright{\thesection\ #1}}
\fancyhf{} %clears all header and footer fields
\fancyhead[LE,RO]{\bfseries\thepage}
\fancyhead[LO]{\bfseries\rightmark}
\fancyhead[RE]{\bfseries\leftmark}
% redefine plain style for pagestyle
\fancypagestyle{plain}{%
\fancyhead{} % get rid of headers
\renewcommand{\headrulewidth}{0pt} % and the line
}
% redefine headings style for pagestyle
\fancypagestyle{headings}{%
\fancyhead{} % get rid of headers
\fancyhead[LE,RO]{\bfseries\thepage}
\fancyhead[LO]{\bfseries\rightmark}
\fancyhead[RE]{\bfseries\leftmark}
}
% on float pages do not print the heading line
\renewcommand{\headrulewidth}{\iffloatpage{0pt}{0.4pt}}
%Ho commentato la riga:
%\renewcommand{\headrulewidth}{\iffloatpage{0pt}{0.4pt}}
e sembra funzionare.
Ho fatto nel modo corretto?
Grazie.
Certo. È proprio la riga responsabile di quel comportamento.
Se non vuoi modificare la classe (non si potrebbe, ma non conosco né la classe né la licenza), scrivi questo nel preambolo:
\renewcommand{\headrulewidth}{0.4pt}
Ciao
Ivan