pacchetto fancyhdr

  • Creatore
    Topic
  • #8435
    Up
    0
    Down
    ::


    Ho un problema con il pacchetto fancyhdr che non sono riuscita a risolvere leggendo le varie guide al riguardo…forse mi sfugge qualcosa:
    il codice e’ il seguente:

    \documentclass[12pt,a4paper,twoside,openright]{report}
    \usepackage{fancyhdr}
    \pagestyle {fancy}
    \renewcommand{\chaptermark}[1]{\markboth{#1}{}}
    \renewcommand{\sectionmark}[1]{\markright{\thesesection\ #1}}
    %\nouppercase{}
    \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}%
    }

    quando compilo per la prima volta mi da’ questo messaggio:

    Package Fancyhdr Warning: \headheight is too small (12.5pt):
    Make it at least 14.49998pt.
    We now make it that large for the rest of the document.
    This may cause the page layout to be inconsistent, however.

    le volte seguenti invece si blocca ad ogni \section{titolo} che incontra, ad esempio…:

    ! Undefined control sequence.
    … \bbl@restore@actives \thesesection
    \ Definizione di sistemi a…
    l.97 …ione di sistemi a bassa dimensionalit\`a}

    dopo vari tentativi, non so cosa devo modificare.
    grazie

Visualizzazione 1 filone di risposte
  • Autore
    Risposte
    • #8436
      Up
      0
      Down
      ::


      E’ sbagliato dove ridefinisci \sectionmark
      `\renewcommand{\sectionmark}[1]{\markright{\thesesection\ #1}}
      ^^ `

      Credo che sia corretta la forma `\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}} ` ma non ho provato… fammi sapere 😉

      Luca

    • #8437
      Up
      0
      Down
      ::


      grazieeeeeeeeeeeeeee!!!!!! 😀
      non sai quanto tempo mi ha fatto perdere…e le avro’ rilette mille volte quelle righe….

Visualizzazione 1 filone di risposte
  • Devi essere connesso per rispondere a questo topic.

Go to top