Risposte nei forum create
-
AutoreRisposte
-
6 Dicembre 2011 alle 15:22 in risposta a: Aggiung. una linea nella testatina anche in pagine di figure #673366 Dicembre 2011 alle 13:23 in risposta a: Aggiung. una linea nella testatina anche in pagine di figure #67334::
Ho 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.
-
AutoreRisposte