Hi Fabio,

On Thu, May 31, 2012 at 5:53 PM, Fabio Sobral <[email protected]> wrote:
> Hello,
>
> I'm new to LyX and TeX and while searching for resources about document
> styling I came across several tutorials. One of them explained how to use
> fancyhdr, which worked perfectly using the book document class.
> Later I came across these blog posts:
> http://hstuart.dk/2007/05/21/styling-the-chapter/
> http://hstuart.dk/2007/06/12/styling-the-page-footer-and-header/
>
> So I started using the document class to "book (Memoir)" to style the
> chapters as described in the fist blog spot, but for some reason I can't
> style the page header.
> Changing the page layout using Document > Settings > Page layout doesn't
> work either, it always end up using the "plain" header style.
>
> I tried using fancyhdr again, but it doesn't work. Apparently the memoir
> document class already includes an implementation of it or something like
> that.

Exactly, memoir implements its own version of the fancyhdr package, so
you should use memoir facilities (in the preamble, or in a separate
config file you would load in your preamble). You may want to take a
look at section 7.2 of the memoir manual for a detailed discussion of
"pagestyles."
A few pagestyle are predefined, and you can just load them with the
command \pagestyle. For instance, \pagestyle{headings} implements the
"headings" page style which does the following:

 The footer is empty. The header contains the folio at the outer side
of the page;
on verso pages the chapter name, number and title, in slanted
uppercase is set at the
spine margin and on recto pages the section number and uppercase title
is set by the
spine margin.

If none of the predefined style does what you want, you may define
your own (with the \makepagestyle command) and then load it with the
\pagestyle command. Section 7.3 of the manual provides a detailed
discussion of the \makepagestyle command.

Cheers,

Stefano


-- 
__________________________________________________
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

[email protected]
http://stefano.cleinias.org

Reply via email to