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

\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

\author{Shrek, the Ogre}

\prevdegreei{M.S. Far Far Away Univeristy, 2006}  %% first degree
\prevdegreeii{}  %% second degree (optional)
\prevdegreeiii{}   %% third degree (optional)

\thesisname{dissertation}  %% dissertation or thesis choose yours
\degreename{Doctor of Philosophy} 
\departmentsname{Department of Physics} 
\collegename{College of Sciences} 
\termname{Summer} 

\advisername{Sir Donkey}

\begin{document}

\thispagestyle{empty}
\maketitle

\doublespacing  

\include{abstract1}  %% abstract, dedication and acknowledgments goes to this file,  see "abstract.tex"

% \pdfbookmark[0]{TABLE OF CONTENTS}{tableofcontents}  %% manually ads a bookmark
\tableofcontents

\listoffigures

\listoftables

%\include{listofsymbols}

\newpage

 \pagenumbering{arabic} %% just to set page numbering to regula arabic
 \setcounter{page}{1}  %% and start from page number 1 on the first page of the first chapter
\include{chapter_1.1}  %% your chapters are in separate file -- much easier to navigate through the text
\include{chapter_2.1}  
\include{chapter_3.1.1}
\include{chapter_4.1.1}
\include{chapter_5.1.1}
\include{chapter_6.1.1}
\include{chapter_7.1}
\include{chapter_8.1}
\appendix  %% just makes "Chapter" to be called "Appendix"

\include{appendix_A}  
 \include{appendix_B}  %% you may have more than one appendix, use letters to distinguish among them
\include{appendix_C}

%\bibliographystyle{alpha} %% you can choose different bibliography style and the rest ia all automatic, is-alpha, alpha, unsrt, amsalpha
\bibliographystyle{plainnat}
\bibliography{bibitems} %% this is your database with literature

\end{document}

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.

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: 10319
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

\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{References}
\bibliography{...}
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: 10319
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: 10319
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

\clearpage % or \cleardoublepage
\addcontentsline{toc}{chapter}{Bibliography}
\blibliography...
Stefan
LaTeX.org admin
Post Reply