LaTeX: using fancyhdr with the memoir class

The fancyhdr LaTeX package allows you to put a fancy header or footer on your book, like this:

One of the nicest things about this package is that you can easily set the header to show the chapter name on odd pages, section title on even pages, and page numbers everywhere (or anything else you want to display). If you use this with the memoir class however, you can get compilation errors because both the memoir class and fancyhdr attempt to define the \footruleskip command when loading. So if you want to use fancyhdr with memoir, make sure to undefine the \footruleskip command before fancyhdr is loaded, but after memoir is loaded, ie:

\documentclass[11pt,twoside]{memoir}
\let\footruleskip\undefined %undefine footruleskip
\usepackage{fancyhdr}
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s