diego

Risposte nei forum create

Stai visualizzando 2 risposte – dal 1 al 2 (di 2 totali)
  • Autore
    Risposte
  • in risposta a: Aggiung. una linea nella testatina anche in pagine di figure #67336
    Up
    0
    Down
    ::


    Grazie.
    Molto gentile.

    in risposta a: Aggiung. una linea nella testatina anche in pagine di figure #67334
    Up
    0
    Down
    ::


    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.

Stai visualizzando 2 risposte – dal 1 al 2 (di 2 totali)

Go to top