Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

"Bibliography" Appears Twice in ToC

1,177 views
Skip to first unread message

Paladin

unread,
Jul 26, 2010, 11:56:03 AM7/26/10
to
The Bibliography appears twice in my Table of Contents, but only once
in the actual book.
Can someone tell me why? I thought I was supposed to create file
twice to get the index
and biblio correct, so that is why I run pdflatex twice. Any other
comments/recommendations
will be appreciated. Things are working pretty well, but I know I
have a lot to learn. I am running
in Unix on a Mac. Thank you.

The little script I run to create my book is listed here:

pdflatex shaw
pdflatex shaw
makeindex shaw


My base file is listed here:

\documentclass[english,10pt,a4paper]{memoir}

\usepackage{graphics} % Packages to allow inclusion of graphics
\usepackage{color} % For creating colored text and
background
\usepackage{multirow}
% \usepackage{array}
\usepackage{fancybox}

\parskip 0.1in
\pagenumbering{arabic}

\setlength{\unitlength}{1cm} % for the picture environment
\setlength\fboxsep{0.1in}

\settrimmedsize{297mm}{210mm}{*} % a4 dimensions
\setlength{\trimtop}{0pt}
\setlength{\trimedge}{\stockwidth}
\addtolength{\trimedge}{-\paperwidth}
\settypeblocksize{634pt}{448.13pt}{*}
\setulmargins{*}{4cm}{*}
\setlrmargins{*}{*}{1.5}
\setmarginnotes{17pt}{51pt}{\onelineskip}
\setheadfoot{\onelineskip}{2\onelineskip}
\setheaderspaces{*}{2\onelineskip}{*}
\checkandfixthelayout


\usepackage{babel,blindtext}
\let\footruleskip\relax % for compatibility of memoir and
fancyhdr
\let\rm\rmfamily % for compatibility of memoir and
blindtext (demo only)

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[LE,RO]{\thepage}
\fancyhead[LO]{\leftmark}
\fancyhead[RE]{\thetitle}
\fancyfoot{}

\sloppy

\usepackage{makeidx}
\makeindex

\title{The Descendents of Herman Shaw}

\author{My Name}
\date{July 11, 2010}

%-----------------------------------------------------------
\begin{document}
\setcounter{chapter}{-1}
\setcounter{tocdepth}{4}
\maketitle
\cleardoublepage

\pagenumbering{arabic}
\tableofcontents*

\raggedright

\chapter*{Preface}\normalsize
[text deleted]

\chapter*{Introduction}\normalsize
[text deleted]

%-----------------------------------------------------------
\setcounter{secnumdepth}{5}
\include{chap0}
\include{chap1}
\include{chap2}
\include{chap3}

%-----------------------------------------------------------
\include{biblio}

%-----------------------------------------------------------
\printindex

\end{document}


Uwe Ziegenhagen

unread,
Jul 26, 2010, 4:53:16 PM7/26/10
to
No, we can't. :-)

Please post the first lines of biblio.tex, maybe something gets mixed up
there.

Uwe

Lars Madsen

unread,
Jul 26, 2010, 6:23:19 PM7/26/10
to
>
> \usepackage{fancyhdr}
> \pagestyle{fancy}
> \fancyhead[LE,RO]{\thepage}
> \fancyhead[LO]{\leftmark}
> \fancyhead[RE]{\thetitle}
> \fancyfoot{}
>

what Uwe said

... and there is no reason to use fancyhdr with memoir

check biblio for any \addcontentsline's, memoir adds the bibliography to
the toc by default whereas the standard classes does not.


/daleif

Paladin

unread,
Jul 26, 2010, 10:03:40 PM7/26/10
to

Thank you, Uwe and Lars. As soon as I saw the biblio.tex file, I saw
what was
happening. I had

\begin{thebibliography}{99}
\addcontentsline{toc}{chapter}{Bibliography}

in there. So, I commented the second line out and all is well. Thank
you both.

As for fancyhdr, I like how my book looks with it. I have a few
problems to
clear up, but the headers look great (I would like to get the chapter
names to
be title case, rather than upper case, but overall it looks good to
me. I would
try other suggestions though, especially from you guys.

Roy

Lars Madsen

unread,
Jul 27, 2010, 4:20:47 AM7/27/10
to

as far as I can see what you do is similar to the default headings page
style in memoir

so it would be as simple as

\copypagestyle{paladin}{headings}
\makeevenhead{paladin}{\thetitle}{}{\thepage}
\nouppercaseheads % remove the uppercasing
\pagestyle{paladin}


--

/daleif (remove RTFSIGNATURE from email address)

LaTeX FAQ: http://www.tex.ac.uk/faq
LaTeX book: http://www.imf.au.dk/system/latex/bog/ (in Danish)
Remember to post minimal examples, see URL below
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl
http://www.minimalbeispiel.de/mini-en.html

Paladin

unread,
Aug 2, 2010, 2:32:50 PM8/2/10
to
On Jul 27, 2:20 am, Lars Madsen <dal...@RTFMSIGNATUREimf.au.dk> wrote:
> Paladin wrote:
> > On Jul 26, 6:23 pm, Lars Madsen <dal...@imf.au.dk> wrote:
> >>> \usepackage{fancyhdr}
> >>> \pagestyle{fancy}
> >>> \fancyhead[LE,RO]{\thepage}
> >>> \fancyhead[LO]{\leftmark}
> >>> \fancyhead[RE]{\thetitle}
> >>> \fancyfoot{}
> >> what Uwe said
>
> >> ... and there is no reason to use fancyhdr with memoir
>
> >> check biblio for any \addcontentsline's, memoir adds thebibliographyto
> >> thetocby default whereas the standard classes does not.
> Remember to post minimal examples, see URL belowhttp://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxamplhttp://www.minimalbeispiel.de/mini-en.html- Hide quoted text -
>
> - Show quoted text -

It worked perfectly. I got rid of fancyhdr and still have fancy
headers! Thank you.

0 new messages