Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm using apa.cls in conjunction with biblatex. When printing the reference list, "REFERENCES" gets printed in the header, flushed to the left. However, I would like the text to be centered and to say something else. How would I go about fixing this?

Minimal (non)working example:

\documentclass[noapacite]{apa}

\usepackage{biblatex}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@thesis{A01,
  author = {Megalomanius, M.},
  year = {1900},
  title = {Why I am so great}},
}
\end{filecontents}

\addbibresource{\jobname.bib}

\nocite{*}

\begin{document}

\printbibliography

\end{document}
share|improve this question
add comment

1 Answer

up vote 6 down vote accepted

If you want to customize the tile of the references section, you can use \defbibheading:

\defbibheading{bibliography}{\centering The New Name}

With the help og the fancyhdr package you can define a new page style (with customized headers and footers) to be applied to the references section:

\documentclass[noapacite]{apa}
\usepackage[backend=biber]{biblatex}
\usepackage{fancyhdr}
\usepackage{filecontents}

\fancypagestyle{myrefstyle}{
\fancyhf{}
\fancyhead[C]{The New Header}
\fancyhead[R]{\thepage}
\renewcommand\headrulewidth{0pt}
}

\begin{filecontents}{\jobname.bib}
@thesis{A01,
  author = {Megalomanius, M.},
  year = {1900},
  title = {Why I am so great}},
}
\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}

\nocite{*}

\clearpage
\pagestyle{myrefstyle}
\printbibliography

\end{document}

enter image description here

If the twoside option is in use, you'll have to replace

\fancyhead[R]{\thepage}

with

\fancyhead[RO,LE]{\thepage}

in my example code.

The apa document class uses upper case italics to format the headers, so you can use something like

\fancypagestyle{myrefstyle}{
\fancyhf{}
\fancyhead[C]{\MakeUppercase{\itshape The New Header}}
\fancyhead[RO,LE]{\thepage}\renewcommand\headrulewidth{0pt}
}

to get the same style as the one used by apa.cls.

share|improve this answer
    
Thanks. This officially solves my question so I've marked it as accepted. However, when I compile everything I notice that the font of the text is a little bit thinner than the original header. Also, now, I've noticed that the original header isn't exactly centered. It alternates between being a little bit nudged to the right and a little bit nudged to the left. Can I extract the exact style from apa.cls somehow and use it within fancyhdr? –  Speldosa Nov 2 '11 at 9:11
    
Notice that the thickness and size of the text gets right when I do nothing and just compile the file, getting the "REFERENCES" header. –  Speldosa Nov 2 '11 at 9:15
1  
@Speldosa: right now I have to leave, but as soon as I can I'll update my answer. –  Gonzalo Medina Nov 2 '11 at 13:35
    
@Speldosa: I've updated my answer. –  Gonzalo Medina Nov 3 '11 at 3:18
1  
Thank you very much! However, the text still has some discrepancies between the two headers. For example, when I write "ARE" the R and E of the original header touches at the bottom. Not so with the new header. I'll just start a new thread to try to sort this out. Thanks for your help! –  Speldosa Nov 3 '11 at 9:52
show 5 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.