How to remove the self-reference of the ToC in Latex book class












4















I want to remove the self-reference of the ToC in Latex book class as in the picture below



enter image description here



Can you help me?










share|improve this question























  • Please add a minimal working example (MWE) that illustrates your problem. You clearly are using hyperref package and that is not reflected in any way in your question.

    – zeroth
    May 19 '13 at 13:33
















4















I want to remove the self-reference of the ToC in Latex book class as in the picture below



enter image description here



Can you help me?










share|improve this question























  • Please add a minimal working example (MWE) that illustrates your problem. You clearly are using hyperref package and that is not reflected in any way in your question.

    – zeroth
    May 19 '13 at 13:33














4












4








4








I want to remove the self-reference of the ToC in Latex book class as in the picture below



enter image description here



Can you help me?










share|improve this question














I want to remove the self-reference of the ToC in Latex book class as in the picture below



enter image description here



Can you help me?







table-of-contents formatting






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked May 19 '13 at 8:18









Just lifeJust life

9516




9516













  • Please add a minimal working example (MWE) that illustrates your problem. You clearly are using hyperref package and that is not reflected in any way in your question.

    – zeroth
    May 19 '13 at 13:33



















  • Please add a minimal working example (MWE) that illustrates your problem. You clearly are using hyperref package and that is not reflected in any way in your question.

    – zeroth
    May 19 '13 at 13:33

















Please add a minimal working example (MWE) that illustrates your problem. You clearly are using hyperref package and that is not reflected in any way in your question.

– zeroth
May 19 '13 at 13:33





Please add a minimal working example (MWE) that illustrates your problem. You clearly are using hyperref package and that is not reflected in any way in your question.

– zeroth
May 19 '13 at 13:33










2 Answers
2






active

oldest

votes


















12














The class book does not include starred chapters into the table of contents. The tableofcontents and listoffigures use a starred chapter internally, therefore I guess that you are using package tocbibind that includes both tableofcontents and listoffigures in the table of contents. The first can be disabled by option nottoc:



documentclass{book}
usepackage[nottoc]{tocbibind}
begin{document}
frontmatter
tableofcontents
listoffigures
mainmatter
chapter{Introduction}
end{document}



Result




Class CUEDthesis



The class contains:



usepackage{tocbibind}


Thus my guess is quite correct. ☺



Since the option nottoc cannot be given after loading the class (except using an internal @dotoctocfalse), the option can be given before:



PassOptionsToPackage{nottoc}{tocbibind}
documentclass{CUEDthesisPSnPDF}





share|improve this answer


























  • It doestn't work. I use the standard Cambridge University PhD/MPhil thesis latex template here www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle/…

    – Just life
    May 19 '13 at 15:43






  • 1





    @Justlife Your question has stated class book. That's one of the reasons people request a MWE.

    – Heiko Oberdiek
    May 19 '13 at 15:52











  • It works well for me. Heiko Oberdiek, I love your solution. Thank you so much.

    – Just life
    May 19 '13 at 16:42



















4














I don't get a Contents line in the following MWE



documentclass{book}
usepackage{lipsum}
begin{document}
tableofcontents%
chapter{First}
lipsum%
chapter{Second}
lipsum%
end{document}


Do you have a line that is something like



addcontentsline{toc}{chapter}{Contents}


near to tableofcontents? The addcontentsline will add an entry to toc at the the chapter level called Contents.






share|improve this answer
























  • Dear Chris, I use the standard Cambridge University PhD/MPhil thesis latex template here www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle

    – Just life
    May 19 '13 at 15:44











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f115040%2fhow-to-remove-the-self-reference-of-the-toc-in-latex-book-class%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









12














The class book does not include starred chapters into the table of contents. The tableofcontents and listoffigures use a starred chapter internally, therefore I guess that you are using package tocbibind that includes both tableofcontents and listoffigures in the table of contents. The first can be disabled by option nottoc:



documentclass{book}
usepackage[nottoc]{tocbibind}
begin{document}
frontmatter
tableofcontents
listoffigures
mainmatter
chapter{Introduction}
end{document}



Result




Class CUEDthesis



The class contains:



usepackage{tocbibind}


Thus my guess is quite correct. ☺



Since the option nottoc cannot be given after loading the class (except using an internal @dotoctocfalse), the option can be given before:



PassOptionsToPackage{nottoc}{tocbibind}
documentclass{CUEDthesisPSnPDF}





share|improve this answer


























  • It doestn't work. I use the standard Cambridge University PhD/MPhil thesis latex template here www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle/…

    – Just life
    May 19 '13 at 15:43






  • 1





    @Justlife Your question has stated class book. That's one of the reasons people request a MWE.

    – Heiko Oberdiek
    May 19 '13 at 15:52











  • It works well for me. Heiko Oberdiek, I love your solution. Thank you so much.

    – Just life
    May 19 '13 at 16:42
















12














The class book does not include starred chapters into the table of contents. The tableofcontents and listoffigures use a starred chapter internally, therefore I guess that you are using package tocbibind that includes both tableofcontents and listoffigures in the table of contents. The first can be disabled by option nottoc:



documentclass{book}
usepackage[nottoc]{tocbibind}
begin{document}
frontmatter
tableofcontents
listoffigures
mainmatter
chapter{Introduction}
end{document}



Result




Class CUEDthesis



The class contains:



usepackage{tocbibind}


Thus my guess is quite correct. ☺



Since the option nottoc cannot be given after loading the class (except using an internal @dotoctocfalse), the option can be given before:



PassOptionsToPackage{nottoc}{tocbibind}
documentclass{CUEDthesisPSnPDF}





share|improve this answer


























  • It doestn't work. I use the standard Cambridge University PhD/MPhil thesis latex template here www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle/…

    – Just life
    May 19 '13 at 15:43






  • 1





    @Justlife Your question has stated class book. That's one of the reasons people request a MWE.

    – Heiko Oberdiek
    May 19 '13 at 15:52











  • It works well for me. Heiko Oberdiek, I love your solution. Thank you so much.

    – Just life
    May 19 '13 at 16:42














12












12








12







The class book does not include starred chapters into the table of contents. The tableofcontents and listoffigures use a starred chapter internally, therefore I guess that you are using package tocbibind that includes both tableofcontents and listoffigures in the table of contents. The first can be disabled by option nottoc:



documentclass{book}
usepackage[nottoc]{tocbibind}
begin{document}
frontmatter
tableofcontents
listoffigures
mainmatter
chapter{Introduction}
end{document}



Result




Class CUEDthesis



The class contains:



usepackage{tocbibind}


Thus my guess is quite correct. ☺



Since the option nottoc cannot be given after loading the class (except using an internal @dotoctocfalse), the option can be given before:



PassOptionsToPackage{nottoc}{tocbibind}
documentclass{CUEDthesisPSnPDF}





share|improve this answer















The class book does not include starred chapters into the table of contents. The tableofcontents and listoffigures use a starred chapter internally, therefore I guess that you are using package tocbibind that includes both tableofcontents and listoffigures in the table of contents. The first can be disabled by option nottoc:



documentclass{book}
usepackage[nottoc]{tocbibind}
begin{document}
frontmatter
tableofcontents
listoffigures
mainmatter
chapter{Introduction}
end{document}



Result




Class CUEDthesis



The class contains:



usepackage{tocbibind}


Thus my guess is quite correct. ☺



Since the option nottoc cannot be given after loading the class (except using an internal @dotoctocfalse), the option can be given before:



PassOptionsToPackage{nottoc}{tocbibind}
documentclass{CUEDthesisPSnPDF}






share|improve this answer














share|improve this answer



share|improve this answer








edited May 19 '13 at 15:52

























answered May 19 '13 at 10:58









Heiko OberdiekHeiko Oberdiek

229k17557907




229k17557907













  • It doestn't work. I use the standard Cambridge University PhD/MPhil thesis latex template here www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle/…

    – Just life
    May 19 '13 at 15:43






  • 1





    @Justlife Your question has stated class book. That's one of the reasons people request a MWE.

    – Heiko Oberdiek
    May 19 '13 at 15:52











  • It works well for me. Heiko Oberdiek, I love your solution. Thank you so much.

    – Just life
    May 19 '13 at 16:42



















  • It doestn't work. I use the standard Cambridge University PhD/MPhil thesis latex template here www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle/…

    – Just life
    May 19 '13 at 15:43






  • 1





    @Justlife Your question has stated class book. That's one of the reasons people request a MWE.

    – Heiko Oberdiek
    May 19 '13 at 15:52











  • It works well for me. Heiko Oberdiek, I love your solution. Thank you so much.

    – Just life
    May 19 '13 at 16:42

















It doestn't work. I use the standard Cambridge University PhD/MPhil thesis latex template here www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle/…

– Just life
May 19 '13 at 15:43





It doestn't work. I use the standard Cambridge University PhD/MPhil thesis latex template here www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle/…

– Just life
May 19 '13 at 15:43




1




1





@Justlife Your question has stated class book. That's one of the reasons people request a MWE.

– Heiko Oberdiek
May 19 '13 at 15:52





@Justlife Your question has stated class book. That's one of the reasons people request a MWE.

– Heiko Oberdiek
May 19 '13 at 15:52













It works well for me. Heiko Oberdiek, I love your solution. Thank you so much.

– Just life
May 19 '13 at 16:42





It works well for me. Heiko Oberdiek, I love your solution. Thank you so much.

– Just life
May 19 '13 at 16:42











4














I don't get a Contents line in the following MWE



documentclass{book}
usepackage{lipsum}
begin{document}
tableofcontents%
chapter{First}
lipsum%
chapter{Second}
lipsum%
end{document}


Do you have a line that is something like



addcontentsline{toc}{chapter}{Contents}


near to tableofcontents? The addcontentsline will add an entry to toc at the the chapter level called Contents.






share|improve this answer
























  • Dear Chris, I use the standard Cambridge University PhD/MPhil thesis latex template here www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle

    – Just life
    May 19 '13 at 15:44
















4














I don't get a Contents line in the following MWE



documentclass{book}
usepackage{lipsum}
begin{document}
tableofcontents%
chapter{First}
lipsum%
chapter{Second}
lipsum%
end{document}


Do you have a line that is something like



addcontentsline{toc}{chapter}{Contents}


near to tableofcontents? The addcontentsline will add an entry to toc at the the chapter level called Contents.






share|improve this answer
























  • Dear Chris, I use the standard Cambridge University PhD/MPhil thesis latex template here www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle

    – Just life
    May 19 '13 at 15:44














4












4








4







I don't get a Contents line in the following MWE



documentclass{book}
usepackage{lipsum}
begin{document}
tableofcontents%
chapter{First}
lipsum%
chapter{Second}
lipsum%
end{document}


Do you have a line that is something like



addcontentsline{toc}{chapter}{Contents}


near to tableofcontents? The addcontentsline will add an entry to toc at the the chapter level called Contents.






share|improve this answer













I don't get a Contents line in the following MWE



documentclass{book}
usepackage{lipsum}
begin{document}
tableofcontents%
chapter{First}
lipsum%
chapter{Second}
lipsum%
end{document}


Do you have a line that is something like



addcontentsline{toc}{chapter}{Contents}


near to tableofcontents? The addcontentsline will add an entry to toc at the the chapter level called Contents.







share|improve this answer












share|improve this answer



share|improve this answer










answered May 19 '13 at 10:04









ChrisChris

895169




895169













  • Dear Chris, I use the standard Cambridge University PhD/MPhil thesis latex template here www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle

    – Just life
    May 19 '13 at 15:44



















  • Dear Chris, I use the standard Cambridge University PhD/MPhil thesis latex template here www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle

    – Just life
    May 19 '13 at 15:44

















Dear Chris, I use the standard Cambridge University PhD/MPhil thesis latex template here www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle

– Just life
May 19 '13 at 15:44





Dear Chris, I use the standard Cambridge University PhD/MPhil thesis latex template here www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle

– Just life
May 19 '13 at 15:44


















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f115040%2fhow-to-remove-the-self-reference-of-the-toc-in-latex-book-class%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to send String Array data to Server using php in android

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Is anime1.com a legal site for watching anime?