[Tex/LaTex] Remove page number from the first page of bibliography

biblatexheader-footer

I'm writing a thesis and I want to remove the page number of the first page of bibliography.
I tried

\thispagestyle{empty}  
\pagestyle{plain}

but it seems not work. I am using

\usepackage[style=ieee, sorting=none]{biblatex}
\addbibresource{ref}

Furthermore, I want to remove the page number corresponding to Bibliography in Table of Contents but I can't.

Can anyone help me?
Thank you.

Best Answer

The command \bibsetup is available for inserting code that is to be run at the start of the bibliography. So in this case, you can write

\renewcommand{\bibsetup}{\thispagestyle{empty}}

to clear that the page number for that page, or

\renewcommand{\bibsetup}{\thispagestyle{empty}\pagestyle{plain}}

to also set the pagestyle for the subsequent pages.