Page LayoutRemove headers in Bibliography section

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
daviddoji
Posts: 13
Joined: Wed Sep 19, 2012 12:18 pm

Remove headers in Bibliography section

Post by daviddoji »

How to get rid of the headers in the bibliography section?
I'm writing my PhD manuscript and each chapter has its bibliography section. But I don't want headers to appear in the bibliography section.

This is my MWE

Main.tex

Code: Select all

\documentclass[12pt,a4paper,twoside]{report}
\usepackage[T1]{fontenc}
\usepackage[utf8x]{inputenc} 

\usepackage{lipsum}

\usepackage[square, comma, sort&compress, numbers, sectionbib]{natbib}
\usepackage{chapterbib}

\usepackage{fancyhdr}
\pagestyle{fancy}{
\fancyhf{} 
\fancyhead[LE,RO]{\slshape \nouppercase \rightmark} 
\fancyhead[LO,RE]{\slshape \nouppercase \leftmark} 
\fancyfoot[LO,RE]{\thepage} 
}
\fancypagestyle{plain}{
\renewcommand\headrulewidth{0pt}
\fancyhf{}
\fancyfoot[LO,RE]{\thepage}
}

\begin{document}

\include{ch1}
\include{ch2}

\end{document}[/latex]

ch1.tex
[latex]\chapter{ch1}
\lipsum[1-12]

\cite{piazzon2010characterization}

\clearpage
\bibliographystyle{unsrtnat}
\bibliography{biblio}[/latex]

ch1.tex
[latex]\chapter{ch1}
\lipsum[1-12]

\cite{piazzon2010characterization}

\clearpage
\bibliographystyle{unsrtnat}
\bibliography{biblio}
biblio.bib

Code: Select all

@article{piazzon2010characterization,
	author = {Piazzon, N and Rosenthal, M and Bondar, A and Spitzer, D and Ivanov, DA},
	journal = {Journal of Physics and Chemistry of Solids},
	localfile = {/media/Seagate Expansion Drive/Papers & thesis/Papers/[piazzon2010characterization] Characterization of explosives traces by Nanocalorimetry.pdf},
	number = {2},
	pages = {114–118},
	publisher = {Elsevier},
	title = {{Characterization of explosives traces by the Nanocalorimetry}},
	volume = {71},
	year = {2010}
}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Remove headers in Bibliography section

Post by Johannes_B »

As already suggested in http://latex-community.org/forum/viewto ... 342#p87342:

Code: Select all

\begin{filecontents}{\jobname.bib}
    @article{piazzon2010characterization,
            author = {Piazzon, N and Rosenthal, M and Bondar, A and Spitzer, D and Ivanov, DA},
            journal = {Journal of Physics and Chemistry of Solids},
            number = {2},
            pages = {114–118},
            publisher = {Elsevier},
            title = {Characterization of explosives traces by the Nanocalorimetry},
            volume = {71},
            year = {2010}
    }
\end{filecontents}
\documentclass[12pt,a4paper,twoside]{report}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage{lipsum}

\usepackage[natbib=true,refsection=chapter]{biblatex}
\defbibheading{bibliography}{\section*{The Cites of this chapter}}
\addbibresource{\jobname.bib}

\usepackage[automark]{scrlayer-scrpage}
\setlength{\headheight}{14.5pt}

\begin{document}

\chapter{dancing ducks}
\lipsum[1-12]
\cite{piazzon2010characterization}

\clearpage
\printbibliography

\chapter{planking penguins}
\lipsum[1-13]
\cite{piazzon2010characterization}

\clearpage
\printbibliography
\end{document}
Hint: You can click on open in writelatex to see the output.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
daviddoji
Posts: 13
Joined: Wed Sep 19, 2012 12:18 pm

Remove headers in Bibliography section

Post by daviddoji »

Thanks for the reply Johannes_B.
In writelatex, it still appears headers on the bibliography section.

Tested with this MWE:

Code: Select all

\begin{filecontents}{\jobname.bib}
    @article{piazzon2010characterization,
            author = {Piazzon, N and Rosenthal, M and Bondar, A and Spitzer, D and Ivanov, DA},
            journal = {Journal of Physics and Chemistry of Solids},
            number = {2},
            pages = {114–118},
            publisher = {Elsevier},
            title = {Characterization of explosives traces by the Nanocalorimetry},
            volume = {71},
            year = {2010}
    }
\end{filecontents}
\documentclass[12pt,a4paper,twoside]{report}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage{lipsum}

\usepackage[backend=biber,natbib=true,refsection=chapter]{biblatex}
\defbibheading{bibliography}{\section*{The Cites of this chapter}}
\addbibresource{\jobname.bib}

\usepackage[automark]{scrlayer-scrpage}
\setlength{\headheight}{14.5pt}

\begin{document}

\chapter{dancing ducks}
\lipsum[1-10]
\cite{piazzon2010characterization}

\clearpage
\printbibliography

\chapter{planking penguins}
\lipsum[1-10]
\cite{piazzon2010characterization}

\clearpage
\printbibliography
\end{document}
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Remove headers in Bibliography section

Post by Johannes_B »

I thought you don't want the bib-stuff to appear in the headers, but apparently you want everything gone. Missunderstood that.

Code: Select all

\defbibheading{bibliography}{\section*{The Cites of this chapter}\markboth{}{}}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
daviddoji
Posts: 13
Joined: Wed Sep 19, 2012 12:18 pm

Re: Remove headers in Bibliography section

Post by daviddoji »

It's getting better each time thanks to you!
Just a few remarks:
- How to add a line underneath the headings (as with the fancyhdr package)?

EDIT: adding the option "headsepline" to the scrlayer-scrpage package

- How to put the page number in the bottom of the page??

EDIT: using \cfoot[\pagemark]{\pagemark} command (if the number should be centered)

I'm getting warnings like: \headheight too low and \footheight too low. How can I get rid of these warnings.
Last edited by daviddoji on Tue Feb 17, 2015 11:14 pm, edited 1 time in total.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Remove headers in Bibliography section

Post by Johannes_B »

scrlayer-scrpage uses quite an intuitive interface to control what to print where, it doesn't differ from fancyhdr actually.
You can use cfoot to set the center field of a foot, or cefoot, if you want to set the center field of even page footers. You can read more about it in the KOMA-documentation scrguien

The line can be toggled by \headsepline=true as a global option (for example).

Code: Select all

\begin{filecontents}{\jobname.bib}
    @article{piazzon2010characterization,
            author = {Piazzon, N and Rosenthal, M and Bondar, A and Spitzer, D and Ivanov, DA},
            journal = {Journal of Physics and Chemistry of Solids},
            number = {2},
            pages = {114–118},
            publisher = {Elsevier},
            title = {Characterization of explosives traces by the Nanocalorimetry},
            volume = {71},
            year = {2010}
    }
\end{filecontents}
\documentclass[12pt,a4paper,twoside,headsepline=true]{report}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage{lipsum}

\usepackage[natbib=true,refsection=chapter]{biblatex}
\defbibheading{bibliography}{\section*{The Cites of this
chapter}\markboth{}{}}
\addbibresource{\jobname.bib}

\usepackage[automark]{scrlayer-scrpage}
\ohead*{}%empty the field
\cfoot*{\pagemark}%pagenumber in the center foot
\setlength{\headheight}{14.5pt}

\begin{document}

\chapter{dancing ducks}
\lipsum[1-12]
\cite{piazzon2010characterization}

\clearpage
\printbibliography

\chapter{planking penguins}
\lipsum[1-13]
\cite{piazzon2010characterization}

\clearpage
\printbibliography
\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply