Page LayoutNumbered Bibliography in ToC

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
jimp
Posts: 9
Joined: Tue Aug 23, 2011 6:10 pm

Numbered Bibliography in ToC

Post by jimp »

Hi, I'm having a problem inserting my reference list to my table of contents. It is not that I can't add the text line and page number into the table but I am wondering if its possible having the bibliography follow the other chapter numbering. In the toc I want it to look lke:
...
8. Models
9. Final Remarks
10. Reference list

And when scrolling to the actual page I want the chapter title to say '10. Reference list', not 'Bibliography'. I tried using this line but nothing happens:

Code: Select all

\cleardoublepage
\renewcommand{\refname}{\section{Reference list}}
\begin{thebibliography}{99}
...
\end{thebibliography}
I have also tried

Code: Select all

\cleardoublepage
\renewcommand*{\refname}{}
\section{Bibliography} 
which doesn't work and

Code: Select all

\addcontentsline{toc}{chapter}{Reference list}
But this just adds the line in my toc and without numbering. I am new to Latex and having all my chapters, including my reference list in a several .tex-files. Above stated lines are added in the reference .tex-file. Could that matter? Should I put it somewhere else?

Best regards
Last edited by jimp on Sun Aug 28, 2011 12:25 pm, edited 1 time in total.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10334
Joined: Mon Mar 10, 2008 9:44 pm

Re: Numbered Bibliography in ToC

Post by Stefan Kottwitz »

Hi,

it depends on the document class you are using. Which one is it?

Stefan
LaTeX.org admin
jimp
Posts: 9
Joined: Tue Aug 23, 2011 6:10 pm

Numbered Bibliography in ToC

Post by jimp »

Code: Select all

\documentclass[b5paper,twoside,10pt]{book}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10334
Joined: Mon Mar 10, 2008 9:44 pm

Numbered Bibliography in ToC

Post by Stefan Kottwitz »

You could try this workaround:

Code: Select all

\let\stdchapter\chapter
\def\chapter*#1{\stdchapter{#1}}
\begin{thebibliography}{99}
...
\end{thebibliography}
\let\chapter\stdchapter
Stefan
LaTeX.org admin
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Numbered Bibliography in ToC

Post by localghost »

You can alternatively use the tocbibind package.

Code: Select all

\documentclass[10pt,b5paper]{book}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\usepackage[nottoc,numbib]{tocbibind}

\renewcommand{\bibname}{Reference List}

\begin{document}
  \tableofcontents

  \nocite{*}
  \begin{thebibliography}{9}
    \bibitem{key} Bibliography Item
  \end{thebibliography}
\end{document}
But this would let the bibliography heading also appear as a normal chapter.


Thorsten
jimp
Posts: 9
Joined: Tue Aug 23, 2011 6:10 pm

Numbered Bibliography in ToC

Post by jimp »

localghost wrote:You can alternatively use the tocbibind package.

Code: Select all

\documentclass[10pt,b5paper]{book}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\usepackage[nottoc,numbib]{tocbibind}

\renewcommand{\bibname}{Reference List}

\begin{document}
  \tableofcontents

  \nocite{*}
  \begin{thebibliography}{9}
    \bibitem{key} Bibliography Item
  \end{thebibliography}
\end{document}
But this would let the bibliography heading also appear as a normal chapter.


Thorsten
That dit the job, thank you both alot!
Post Reply