I'm using TeXShop with BibTeX and apacite for the style to write a dissertation, and for some strange reason, "References" is appearing twice in my Table of Contents (with the same page number for each entry).
At the end of my main .tex document, I have
Code: Select all
\bibliographystyle{apacite}
\bibliography{dissrefs,dissrefsfixes}
Code: Select all
\bibliography{dissrefs}
This is a .tex file and related .sty and .cls files that have been handed down in my department, so I didn't create it. I've just added a few bits here and there to make it suit my needs. But I _think_ I understand what everything does, and I've searched all over for anything that might be generating the second References entry in the ToC.
Here is the header of my document:
Code: Select all
\documentclass{myschooldiss}
\usepackage{url} %this allows us to cite URLs in the text
\usepackage{graphicx} %allows for graphic to float when doing jou or doc style
\usepackage{amssymb} %use formatting tools for math symbols
\raggedright
\parindent=2.2em
\usepackage{booktabs} %% Nicely formatted tables
\heavyrulewidth=.05em %% Set some rule widths for booktabs
\lightrulewidth=.02em
\cmidrulewidth=.01em
\usepackage{tabularx}
\newcolumntype{Y}{>{\raggedright\arraybackslash}X}
\usepackage{topcapt} %% Be able to put captions above tables
\usepackage{chngpage} %% Be able to change margins on the fly for big tables
\usepackage{longtable} %% For tables that go over sereral pages
\usepackage{apacite} % Cite APA style
\usepackage[toc,page]{appendix} % Better appendix
\renewcommand{\appendixpagename}{Appendix}
\renewcommand{\appendixtocname}{Appendix}
\usepackage{enumitem}
\setenumerate{itemsep=0ex,parsep=0ex}
\setitemize{itemsep=0ex,parsep=0ex}
\usepackage{engord} % For ordinals 1st 2nd etc, use {\engordnumber{1}}
\newcommand{\bibnodot}[1]{} % Now you can include \bibnodot in an
%% entry in the .bib file to prevent a period,
%% for example after the string ?''
\setcounter{secnumdepth}{0} % Don't print section numbers
\title{My Title}
% Fill in here as appropriate. Separate multiple names with \and
\author{My Name}
\supervisor{My Advisor}
\gradchair{My Grad Chair}
%\committee{One Professor \and Another Professor}
% Change to \copyrightfalse if you DON'T want to generate a copyright page.
\copyrighttrue
\copyrightyear{2010} % Defaults to the current year if undefined.
\department{My Department}
%%%%%%%%%%%%%%%%%%% Now for the front matter %%%%%%%%%%%%%%%%%%%%%%%%%
% Front matter elements are required to appear in a specific order. In this
% section you define the parts of your front matter, and the style will
% automatically put them in the proper order.
% Declare the sections that you use. Only Abstract is obligatory.
%
\abstractfile{Abstract}
\acknowledgementsfile{Acknow}
% \dedicationfile{dedication}
% ALTERNATELY, if you have a really short Dedication (no more than one
% paragraph) you can place it in the main file, with the command
% \dedication{...}, INSTEAD of using \dedicationfile.
\dedication{\center
This is where \\
the dedication goes.
}
% \prefacefile{preface}
\begin{document}
% The following command now generates all your starting pages:
\FrontMatter
Thanks!