Bibliography header style with memoir.

904 views
Skip to first unread message

Caboose

unread,
Jul 29, 2009, 11:32:52 AM7/29/09
to LaTeX Users Group
Hi.

I have two questions relating to headers and section headings in
LaTeX. I'm using the memoir document class, calling the "article"
option. Perverse, I know, but I like memoir and try to use it even
when I don't need to. So the problem is the following: I want the
section heading for my bibliography to say "References" rather than
"Bibliography". Reverting the document class to article does this for
me, but that is unsatisfactory. I want to learn how to change these
things in memoir.

I also want to specify headers and footers for pages in my
bibliography, ideally without having to specify all the headers and so
on from scratch...

How do I do these things?

Thanks

jon

unread,
Jul 29, 2009, 1:18:43 PM7/29/09
to LaTeX Users Group
On Jul 29, 11:32 am, Caboose <ccaabboooos...@gmail.com> wrote:
>
> I have two questions relating to headers and section headings in
> LaTeX. I'm using the memoir document class, calling the "article"
> option. Perverse, I know, but I like memoir and try to use it even
> when I don't need to. So the problem is the following: I want the
> section heading for my bibliography to say "References" rather than
> "Bibliography". Reverting the document class to article does this for
> me, but that is unsatisfactory. I want to learn how to change these
> things in memoir.

\renewcommand\bibname{References}

> I also want to specify headers and footers for pages in my
> bibliography, ideally without having to specify all the headers and so
> on from scratch...

i'm not sure what you mean. in memoir you declare your pagestyles,
right?

\makepagestyle{mystyle}
\makeevenhead{mystyle}{ left }{ center }{ right }
\makeoddhead{mystyle}{ left }{ center }{ right }
\makeevenfoot{mystyle}{ left }{ center }{ right }
\makeoddfoot{mystyle}{ left }{ center }{ right }

and then declare it when you want to use it:

\pagestyle{mystyle}

there are also

\aliaspagestyle{ alias }{ original }
\copypagestyle{ copy }{ original }

the difference here is that if you modify the original later on, the
aliased style will follow the modified original, but the copied style
will follow the original original.

you can do a ton of other stuff to them too, if you look at the memoir
manual.

if you're thinking of using \markleft, \markright, \markboth and all
of that stuff, i highly recommend that you look at the manual.

cheers,
jon.

Caboose

unread,
Aug 3, 2009, 10:25:23 AM8/3/09
to LaTeX Users Group

> \renewcommand\bibname{References}

Thanks that works

> > I also want to specify headers and footers for pages in my
> > bibliography, ideally without having to specify all the headers and so
> > on from scratch...
>
> i'm not sure what you mean.  in memoir you declare your pagestyles,
> right?
>
> \makepagestyle{mystyle}
> \makeevenhead{mystyle}{ left }{ center }{ right }
> \makeoddhead{mystyle}{ left }{ center }{ right }
> \makeevenfoot{mystyle}{ left }{ center }{ right }
> \makeoddfoot{mystyle}{ left }{ center }{ right }
>
> and then declare it when you want to use it:


The question was what is the default pagestyle for the bibliography?
Memoir automatically calls different pagestyles at various points,
like the first page of a new chapter is "plain" by default and so on.
The question was what pagestyle do I want to modify in order to have
the headers and footers change for the pages of my bibliography.

jon

unread,
Aug 3, 2009, 1:04:25 PM8/3/09
to LaTeX Users Group
On Aug 3, 10:25 am, Caboose <ccaabboooos...@gmail.com> wrote:
> > \renewcommand\bibname{References}
>
> > \makepagestyle{mystyle}
> > \makeevenhead{mystyle}{ left }{ center }{ right }
> > \makeoddhead{mystyle}{ left }{ center }{ right }
> > \makeevenfoot{mystyle}{ left }{ center }{ right }
> > \makeoddfoot{mystyle}{ left }{ center }{ right }
>
> > and then declare it when you want to use it:
>
> The question was what is the default pagestyle for the bibliography?
> Memoir automatically calls different pagestyles at various points,
> like the first page of a new chapter is "plain" by default and so on.
> The question was what pagestyle do I want to modify in order to have
> the headers and footers change for the pages of my bibliography.

it hardly matters if you plan on changing it, does it? say you want a
page number on the top, outer margin and the word References centered
at the top of the page (and nothing else anywhere else); then you
would do this (in the preamble or right at your bibliography command):

\makepagestyle{mybibstyle}
\makeevenhead{mybibstyle}{\thepage}{References}{}
\makeoddhead{mystyle}{}{References}{\thepage}

and with natbib:

\pagestyle{mybibstyle}
\bibliographystyle{alpha}
\bibliography{bibliography}

or with biblatex:

\pagestyle{mybibstyle}
\printbibliography

you can use \thispagestyle{plain} or whatever too, if you want the
first page to avoid the default header/footer setup.

cheers,
jon.

Caboose

unread,
Aug 5, 2009, 10:58:53 AM8/5/09
to LaTeX Users Group
> it hardly matters if you plan on changing it, does it?

True, but renewing the one that already gets used automatically rather
than defining my own one would save me a whole one \pagestyle command!
I'm more just curious about what it is now...

Thanks for the help though. everything is working wonderfully now. (At
least as far as headers and bibliography goes...)

jon

unread,
Aug 5, 2009, 3:17:30 PM8/5/09
to LaTeX Users Group
On Aug 5, 10:58 am, Caboose <ccaabboooos...@gmail.com> wrote:
> > it hardly matters if you plan on changing it, does it?
>
> True, but renewing the one that already gets used automatically rather
> than defining my own one would save me a whole one \pagestyle command!
> I'm more just curious about what it is now...

that's what the \aliaspagestyle is for. if you want your bibliography
headers to look like the rest of your document (which, say, you
defined as 'mystyle'), then you use:

\aliaspagestyle{references}{mystyle}
% makes sense to keep this near the mystyle definition


and down at your bibliography, you'd put:

\pagestyle{references}

i think this is easier than renewing the command, since memoir
actually uses the high-level \pagestyle commands itself: you'd have to
renew \pagestyle to do what it's already designed to do.

cheers,
jon.
Reply all
Reply to author
Forward
0 new messages