-
| DescriptionHi, I export in PDF but when the chapter title is long, the header is wrong, it exceeds the margin. How do I adjust it? Thank you. | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            Steinthal
          
      
      
        Feb 1, 2025 
      
    
    Replies: 1 comment 1 reply
-
| If you change  the PDF format definition in    pdf:
    documentclass: scrbook
    papersize: a4
    toc: true
    number-sections: false
    latex-engine: lualatex
    include-in-header:
      text: |
        \usepackage[automark]{scrlayer-scrpage}
        \pagestyle{scrheadings} | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
      Answer selected by
        Ppantaleo
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    

If you change the PDF format definition in
_quarto.ymlthen the text is wrapped inside a\parbox: