Graphics, Figures & Tablestocloft | Appendix Chapters typeset as Sections in ToC

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
user7091
Posts: 3
Joined: Mon Aug 08, 2011 10:40 am

tocloft | Appendix Chapters typeset as Sections in ToC

Post by user7091 »

I am very new to LaTeX and still more in a try and error phase than on a real understanding level.

My goal is to have all appendices - which are chapters and I would like to keep it that way - to appear in the TOC as sections, under a 'chapter' appendices.

Here is what I tried, using the tocloft package

Code: Select all

\newpage\phantomsection
\addcontentsline{toc}{chapter}{Appendices}
\appendix

\setlength{\cftchapindent}{\cftsecindent}
\renewcommand{\cftchapfont}{\cftsecfont}
\renewcommand{\cftchapleader}{\cftsecleader}

\chapter{chapter title}
So my idea was to just tell LaTeX to write chapters to the TOC as though they were sections. My code has no effect whatsoever. Any ideas/solutions are very appreciated

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

tocloft | Appendix Chapters typeset as Sections in ToC

Post by localghost »

I'm not sure if the tocloft package is the right tool in this case. The appendix package might be the better choice.


Best regards and welcome to the board
Thorsten
user7091
Posts: 3
Joined: Mon Aug 08, 2011 10:40 am

Re: tocloft | Appendix Chapters typeset as Sections in ToC

Post by user7091 »

I looked at that package as well, but I don't see how one can change the appearance of the appendix in the TOC, other than adding sth in front. What did you have in mind?
Last edited by user7091 on Mon Aug 08, 2011 5:24 pm, edited 1 time in total.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

tocloft | Appendix Chapters typeset as Sections in ToC

Post by localghost »

I simply had a mistaken idea of what this package can do. In the meantime I have worked out a solution but I must see that is not needed anymore.

It would be very kind if you mention when doing a crossposting [1]*. This is only fair because it prevents others from double efforts and waste of time.


* According to the rules you are obliged to do so.

[1] {TeX} SE — tocloft | Appendix Chapters typeset as Sections in ToC


Best regards and welcome to the board
Thorsten
user7091
Posts: 3
Joined: Mon Aug 08, 2011 10:40 am

Re: tocloft | Appendix Chapters typeset as Sections in ToC

Post by user7091 »

My excuses, I am new to this and will in future do so. I honestly tried to tag my code, but am clearly having start-up problems. Thanks for your efforts though!
Post Reply