# remove page number in bibliography

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
``````

}

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

``````\renewcommand{\thepage}{}
``````
• +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? May 11 '14 at 23:01
• @TuBui In my document, I have the commands in this order: `\FloatBarrier % \clearpage % \renewcommand{\thepage}{} % \bibliographystyle{plainnat} % \bibliography{library} %` May 13 '14 at 16:22
• Use \break before the posted command to ensure you retain the last page number Nov 6 '18 at 20:28

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.

``````\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

• with this approach I got first and last pages without numbers. Is there a way to get only the first without number? Thanks... May 5 '16 at 3:32

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}
``````
• Does this really work?
– user31729
Jun 26 '14 at 13:47