I want to make chapters in my appendix but I dont want them to be in the report itself. I only want them to be in the toc. I also want the "Appendices" to give no page number. Is this possible somehow?

\documentclass[11 pt, twoside, openright, tikz]{report}
\chapter{appendix 1}
\chapter{appendix 2}

Thanks in advance.

PS: The reason behind this is, I have some attachments. But I dont have them in my LaTeX file. So I want to print them individual but still see them in my TOC.

  • 1
    did you try \addcontentsline{toc}{chapter}{appendix 1} \addcontentsline{toc}{chapter}{appendix 2} – touhami Oct 1 '16 at 21:39
  • Isn't the point of a ToC to itemise the contents of the document? Is it for some kind of practical joke? – cfr Oct 1 '16 at 22:25
  • @touhami this did the job – user3201911 Oct 2 '16 at 10:57
  • Check out \includeonly. It will only show the selectected \includes, but will retain the original chapter and page numbers. – John Kormylo Oct 2 '16 at 16:52

You need to run the followinjg once to create the needed aux files. After uncommenting \includeonly{chapter2} it will only show the toc and second chapter, but chapter 2 will start on page 5 as before.

Note: i only used filecontents to simplify creating 3 files in one MWE.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.