0

How can I get the title 'Bibliography' to be centered on the page using biblatex.

I'm using the report class. And I'm required to only have bibliography centered, not other sections.

I've tried a few things, all to no avail:

   \printbibliography[tile={\centering Title}]

or

\addto\captionsenglish{
   \renewcommand{\bibname}{\centering Title}
}

I should note that last one I've used before to center Table of Contents and other sections, but doesn't work here for bibliography.

I've tried a bunch of other things, none work.

Is there a way to center only the bibliography heading?

2

One possibility is to use \defbibheading:

\documentclass{report}

\usepackage{biblatex}

\addbibresource{biblatex-examples.bib}

\defbibheading{bibliography}[\bibname]{%
  \chapter*{\centering #1}%
  \markboth{#1}{#1}}

\begin{document}

\chapter{A chapter}

\nocite{*}

\printbibliography

\end{document}

enter image description here

  • 1
    Now, please consider adding a minimal working example (MWE)/minimal working example with bibliography (MWEB) to future questions. It not only spares those answering having to set up a working code for your problem, but it also supplies details you might not know are relevant. For example, for the above code I had to assume you are not using any \printbibliography options such as bibintoc, bibnumbered, subbibliography, subbibintoc etc. If any of those are used, the code would have to be adapted. – gusbrs Mar 2 '18 at 21:59
  • Thank, that works perfect. I will try to be sure to include MWE in the future. Thanks! – Nertskull Mar 2 '18 at 23:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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