8

I do not want page number to be displayed in my bibliography. So I tried gobble like this:

\bibliography{MyLibrary}{}
\bibliographystyle{plainnat}
\pagenumbering{gobble}

It is fine as long as my bibliography is 1 page long. But now my references spread to two pages, only the second page doesn't show page number. The first page (that has the Bibliography heading) still shows page number. How do I remove page number on both pages?
My preamble is as follows:

\documentclass[11pt]{report}
\usepackage[numbers]{natbib}
\usepackage{titlesec}
\titleformat{\chapter}[display]{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge

}

2
  • just use fancyhdr and create a custom pagestyle, or use the empty pagestyle, for the bibliography. Commented Jan 10, 2014 at 7:54
  • I already tried the empty pagestyle without luck. It seems that the bibliography overwrites it somewhere
    – Tu Bui
    Commented Jan 10, 2014 at 14:21

3 Answers 3

13

This works for me. Add the line before your bibliography starts:

\renewcommand{\thepage}{}
3
  • 1
    +1. It does remove page number on both pages of my bibliography, but it also remove page number of one page right before the bibliography (my conclusion page). Any idea?
    – Tu Bui
    Commented May 11, 2014 at 23:01
  • @TuBui In my document, I have the commands in this order: \FloatBarrier % \clearpage % \renewcommand{\thepage}{} % \bibliographystyle{plainnat} % \bibliography{library} %
    – repurposer
    Commented May 13, 2014 at 16:22
  • Use \break before the posted command to ensure you retain the last page number
    – Phani
    Commented Nov 6, 2018 at 20:28
2

Just managed to work around with it thanks to this post. It used preto command in the etoolbox package to set the pagestyle of the first page in the bibliography.
Add the etoolbox package to my header:

\usepackage{etoolbox}

Then add the 3 commands before the bibliography:

\newbool{firstbib}
\booltrue{firstbib}
\preto{\bibitem}{\ifbool{firstbib}{\thispagestyle{empty}\setbool{firstbib}{false}}{}}
\bibliography{MyLibrary}{}
\bibliographystyle{plainnat}
\pagenumbering{gobble}

It works for now. But I still like to hear about the true solution for this

1
  • with this approach I got first and last pages without numbers. Is there a way to get only the first without number? Thanks...
    – viniciuslb
    Commented May 5, 2016 at 3:32
1

To ensure, that the page before the bibliography still has the page number use \newpage before \renewcommand{\thepage}{}

\chapter{xxx}
\newpage
\renewcommand{\thepage}{}
\bibliography{bib/xxx}
1
  • Does this really work?
    – user31729
    Commented Jun 26, 2014 at 13:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .