Page LayoutBibliography does not appear in TOC

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
singlebinary
Posts: 12
Joined: Fri Mar 12, 2010 5:43 pm

Bibliography does not appear in TOC

Post by singlebinary »

In my thesis I have all the chapters, tables, figures which appear as they should be in TOC. I also have the appendices that appear correctly in TOC, however "references" seem to be missing from the list.

Please note, I have removed personal information.

Below is the code of my thesis tex file:

Code: Select all

Code, edit and compile here:
\documentclass[letterpaper,12pt]{FFW_report}
\usepackage{amssymb} %% additional symbols and fonts
\usepackage{amsmath}
%\usepackage{eqnarray}
\usepackage{enumitem}
\usepackage{graphicx} %% for including graphics
\usepackage[hmargin={1in,1in},top=1.25in,bottom=1in]{geometry} %% Sets up margins
% \usepackage{subeqnarray} %% subsequations, numbered with letters, like (1.1a), (1.1b), etc
% \usepackage{subfig} %% enables multiple figures in a table-like form with separate captions
\usepackage{mathrsfs} %% additional scripted letters in math mode
\usepackage{aalongtable}
\usepackage{threeparttable}
\usepackage{natbib}
\bibpunct{(}{)}{;}{a}{,}{,}
\usepackage[pdftex,colorlinks=true,linkcolor=black,citecolor=black,bookmarksnumbered=true,urlcolor=blue]{hyperref} %% hyperlinks %% and bookmarks
% \makeatletter
% \@ifundefined{pdfoutput}\ % Definitely not using pdftex.
% {% Standard TeX
% \usepackage[dvips]{graphicx,color}
% }
% {\ % Running pdftex.
% \ifnum\pdfoutput=0\relax% Are we outputting pdf?
% \ % No it is dvi output
% \usepackage[dvips]{graphicx,color}
% \fi
% \ifnum\pdfoutput=1\relax% Are we outputting pdf?
% \ % Yes it is pdf output
% \usepackage[pdftex]{graphicx,color}
% \fi
% }
% \makeatother
% \usepackage{eps2pdf}
%\include{definitions} %% if you have any user defined functions place them in the file "definitions.tex"
% \captionsetup[table]{position=top} %% to make sure table captions are at the top
% \captionsetup[subtable]{position=top}
\title{Research on the Green Glowing Thing in my Swamp}
%% the space without \tilde (~) is the place where the line will be broken
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
So the table of Content looks like the following:
Abstract
Acknowledgment
List of Figures
List of Tables
Chapter 1
Chapter 2
Chapter 3
Chapter 4
Chapter 5
Chapter 6
Chapter 7
Chapter 8
Appendix A
Appendix B
Appendix C
References <---------- This should appear with appropriate page No. but is missing.

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

torbjorn t.
Posts: 162
Joined: Wed Jun 17, 2009 10:18 pm

Bibliography does not appear in TOC

Post by torbjorn t. »

The bibliography isn't added to the TOC by default, I think. A workaround can be found here:
http://en.wikibooks.org/wiki/LaTeX/Bibl ... f_contents

There is also a package that does this for you, tocbibind, but that may not work with your document class.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Bibliography does not appear in TOC

Post by Stefan Kottwitz »

singlebinary wrote:however "references" seem to be missing from the list
You could use \addcontentsline or \addtocontents:

Code: Select all

Code, edit and compile here:
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{References}
\bibliography{...}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Stefan
LaTeX.org admin
singlebinary
Posts: 12
Joined: Fri Mar 12, 2010 5:43 pm

Re: Bibliography does not appear in TOC

Post by singlebinary »

It worked!! Thank you!
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: Bibliography does not appear in TOC

Post by Stefan Kottwitz »

You're welcome.
By the way, in general if a problem is solved it would be nice to mark the topic as "solved". This can be done by editing the first post and choosing the checkmark as topic icon.

Stefan
LaTeX.org admin
ther
Posts: 19
Joined: Wed Mar 17, 2010 10:40 pm

Re: Bibliography does not appear in TOC

Post by ther »

I have noticed that the command:

\addcontentsline{toc}{chapter}{Bibliography}

creates an entry in the table of contents, but the page reference is wrong. How to solve this error?
latex@conference.jabber.org
pdftex 31415921403
jedit text editor
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Bibliography does not appear in TOC

Post by Stefan Kottwitz »

Ensure that it's used at the right position:

Code: Select all

Code, edit and compile here:
\clearpage % or \cleardoublepage
\addcontentsline{toc}{chapter}{Bibliography}
\blibliography...
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Stefan
LaTeX.org admin
Post Reply