Addcontentsline Toc Bibliography Page

Bibliography does not appear in TOC

Postby singlebinary » Wed Jul 14, 2010 12:10 pm

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:



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.
  1. \documentclass[letterpaper,12pt]{FFW_report}
  2. \usepackage{amssymb}%% additional symbols and fonts
  3. \usepackage{graphicx}%% for including graphics
  4. \usepackage[hmargin={1in,1in},top=1.25in,bottom=1in]{geometry}%% Sets up margins
  5. % \usepackage{subeqnarray} %% subsequations, numbered with letters, like (1.1a), (1.1b), etc
  6. % \usepackage{subfig} %% enables multiple figures in a table-like form with separate captions
  7. \usepackage{mathrsfs}%% additional scripted letters in math mode
  8. \usepackage{threeparttable}
  9. \bibpunct{(}{)}{;}{a}{,}{,}
  10. \usepackage[pdftex,colorlinks=true,linkcolor=black,citecolor=black,bookmarksnumbered=true,urlcolor=blue]{hyperref}%% hyperlinks %% and bookmarks
  11. % \@ifundefined{pdfoutput}\ % Definitely not using pdftex.
  12. % \usepackage[dvips]{graphicx,color}
  13. % \ifnum\pdfoutput=0\relax% Are we outputting pdf?
  14. % \ % No it is dvi output
  15. % \usepackage[dvips]{graphicx,color}
  16. % \ifnum\pdfoutput=1\relax% Are we outputting pdf?
  17. % \ % Yes it is pdf output
  18. % \usepackage[pdftex]{graphicx,color}
  19. %\include{definitions} %% if you have any user defined functions place them in the file "definitions.tex"
  20. % \captionsetup[table]{position=top} %% to make sure table captions are at the top
  21. % \captionsetup[subtable]{position=top}
  22. \title{Research on the Green Glowing Thing in my Swamp}
  23. %% the space without \tilde (~) is the place where the line will be broken
  24. \prevdegreei{M.S. Far Far Away Univeristy, 2006}%% first degree
  25. \prevdegreeii{}%% second degree (optional)
  26. \prevdegreeiii{}%% third degree (optional)
  27. \thesisname{dissertation}%% dissertation or thesis choose yours
  28. \degreename{Doctor of Philosophy}
  29. \departmentsname{Department of Physics}
  30. \collegename{College of Sciences}
  31. \include{abstract1}%% abstract, dedication and acknowledgments goes to this file, see "abstract.tex"
  32. % \pdfbookmark[0]{TABLE OF CONTENTS}{tableofcontents} %% manually ads a bookmark
  33. \pagenumbering{arabic}%% just to set page numbering to regula arabic
  34. \setcounter{page}{1}%% and start from page number 1 on the first page of the first chapter
  35. \include{chapter_1.1}%% your chapters are in separate file -- much easier to navigate through the text
  36. \appendix%% just makes "Chapter" to be called "Appendix"
  37. \include{appendix_B}%% you may have more than one appendix, use letters to distinguish among them
  38. %\bibliographystyle{alpha} %% you can choose different bibliography style and the rest ia all automatic, is-alpha, alpha, unsrt, amsalpha
  39. \bibliographystyle{plainnat}
  40. \bibliography{bibitems}%% this is your database with literature

In a LaTeX document the table of contents can be automatically generated, and modified to fit a specific style, this article explain how

[edit]Introduction

To create the table of contents is straightforward, the command does the job:

\documentclass{article}\usepackage[utf8]{inputenc}   \title{Sections and Chapters}\author{Gubert Farnsworth}\date{}   \begin{document}   \maketitle   \tableofcontents   \section{Introduction}   This is the first section.   Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortisfacilisis sem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdietmi nec ante. Donec ullamcorper, felis non sodales...   \addcontentsline{toc}{section}{Unnumbered Section}\section*{Unnumbered Section}   Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis facilisissem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdiet mi necante...   \section{Second Section}   Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis facilisissem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdiet mi necante...   \end{document}

Sections, subsections and chapters are included in the table of contents. To manually add entries, for example when you want an unnumbered section, use the command as shown in the example.

Note: For the table of contents to work properly you must compile the document twice or use

  Open an example in ShareLaTeX

[edit]Change the title of the table of contents

The default title for the table of contents is "Contents", this can be changed into whatever you need.

\documentclass{article}\usepackage[utf8]{inputenc}   \title{Sections and Chapters}\author{Gubert Farnsworth}\date{}   \renewcommand*\contentsname{Summary}   \begin{document}   \maketitle   \tableofcontents   \section{Introduction}   This is the first section.   Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortisfacilisis sem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdietmi nec ante. Donec ullamcorper, felis non sodales...   \addcontentsline{toc}{section}{Unnumbered Section}\section*{Unnumbered Section}   Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis facilisissem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdiet mi necante...   \section{Second Section}   Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis facilisissem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdiet mi necante...   \end{document}

the line will write "Summary" instead of the default value. If you are using the package babel for international language support, the aforementioned command must be placed inside the braces of


Instead of english in \captionenglish write the name of the language you set in babel.

  Open an example in ShareLaTeX

[edit]Further reading

For more information see:

\addto\captionsenglish{}

0 comments

Leave a Reply

Your email address will not be published. Required fields are marked *