fancyhdr to place the page number, section title, date, or document title where you want it.
Quick answer:Use built-in page styles for simple cases and
fancyhdr when you need custom header and footer content.Related topics: Page numbering | Multiple columns | Document classesWhen To Use Page Numbering vs Headers and Footers
Use Page numbering when your main question is:- how to switch between roman and arabic numbers
- how to restart numbering
- how to hide numbers on selected pages
- how to show
Page X of Y
- how to put the page number in a specific place
- how to show chapter or section titles in the header
- how to create different header/footer styles for different pages
- how to control header and footer rules with
fancyhdr
Understanding Page Styles
Default Page Styles
LaTeX provides four built-in page styles:The fancyhdr Package
Thefancyhdr package provides complete control over headers and footers.
Basic Setup
Position Specifiers
Advanced Header Customization
Dynamic Content
Conditional Headers
Multi-line Headers
Graphics in Headers
Chapter and Section Information
Automatic Section Headers
Custom Section Marking
Special Page Styles
Title Page Style
Bibliography Style
Headers with Boxes and Borders
Troubleshooting Common Issues
Header Height Problems
Page Break Issues
Best Practices
Professional Formatting
Quick Reference
Essential fancyhdr Commands
Position Codes
Common Variables
Next: Learn about Page numbering for advanced numbering schemes, or explore Multiple columns for overall layout principles.
