• About
    • Cookie Policy
  • Code Snippets
    • Beamer (presentation)
    • Figures
    • Lists
    • Standard classes
    • Tables
  • Consulting
  • LaTeX Installation
  • Posting Questions
  • TeX/LaTeX Resources

texblog

because LaTeX matters

fancyhdr

Multiple page styles with fancyhdr

16. September 2013 by tom 9 Comments

The fancyhdr package provides an easy and flexible way to customize the page style. Furthermore, the package makes it easy to define new page styles. In this post, I will briefly show how to define an alternative page style in general and illustrate two possible applications including complete code examples: Different page style in the … [Read more…]

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to email a link to a friend (Opens in new window) Email
Posted in: LaTeX, Package, Tips & tricks Tagged: chapter, fancyhdr, fancypagestyle, LaTeX, pagestyle, thispagestyle, usepackage

Changing the font size in fancyhdr

9. October 2012 by tom 4 Comments

The default header with fancyhdr for a book (two-sided by default) displays the chapter at the inner side (left odd, right even) and the section title at the outer side (left even, right odd). For long chapter and/or section titles, the two may overlap. There are several possible workarounds to solve this issue. One may … [Read more…]

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to email a link to a friend (Opens in new window) Email
Posted in: LaTeX, Package, Tips & tricks Tagged: book, fancyhdr, fancyhdr font size, font size, LaTeX, long header, overlapping header, report, usepackage

Add your logo to the title page using thispagestyle

27. January 2011 by tom 4 Comments

Adding your company’s logo or brand to the title page of an product description, general terms and conditions or news announcement makes it look more professional. This quick post shows an easy way how to do this using Latex. We define a simple fancy header for the title page, adding the logo to the right-hand … [Read more…]

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to email a link to a friend (Opens in new window) Email
Posted in: Figure & table, LaTeX, Package, Tips & tricks Tagged: article, fancy, fancyhdr, fancyhead, figure, LaTeX, pagestyle, plain, thispagestyle, usepackage

Page number with total number of pages: Page 4 of 65

15. October 2008 by tom 3 Comments

Showing the total number of pages in addition to the actual page number is straight forward using the lastpage package. Now you can simply access the number of pages using: Note: You will have to typeset the DVI/PDF twice in order to get the number right. Example: Note: See this recent comment on how to … [Read more…]

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to email a link to a friend (Opens in new window) Email
Posted in: LaTeX, Package, Tips & tricks Tagged: fancyhdr, lastpage, LaTeX, page, page number, pageref, total, total number of pages

Header/Footer in LaTeX with Fancyhdr

7. November 2007 by tom 174 Comments

Creating headers and footers in Latex can be done by using the package “fancyhdr”. This is a short introduction, showing the most important features of the package. If you know “fancyhdr” and are looking for something particular, refer to the fancyhdr-documentation. First of all, you need to tell Latex to use the package: and change … [Read more…]

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to email a link to a friend (Opens in new window) Email
Posted in: Introduction, LaTeX, Package Tagged: article, book, fancy, fancyfoot, fancyhdr, fancyhead, LaTeX, pagestyle, renewcommand, report, usepackage




Consulting

Need help with your thesis or book project? Let’s discuss.

Join 6,570 other subscribers
doi2bib




Top Posts & Pages

  • Control the width of table columns (tabular) in LaTeX
  • Multi-column and multi-row cells in LaTeX tables
  • Changing the font size in LaTeX
  • Greek letters in text without changing to math mode
  • LaTeX documentclass options illustrated

Tags

addcontentsline array article bibliography Bibtex & biblatex book caption chapter citation cite code color definecolor description documentclass draft enumerate equation fancyhdr figure graphicx hyperref includegraphics item itemize label landscape LaTeX letter listoffigures listoftables math minipage reference renewcommand report section subfigure table tableofcontent tabular text TikZ usepackage xcolor

Copyright © 2025 texblog.

Omega Child WordPress Theme by ThemeHall