12.07.2015 Views

The memoir class - The UK TeX Archive

The memoir class - The UK TeX Archive

The memoir class - The UK TeX Archive

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Contents\cftinsertcode{start-\thetocmarker}{\normalchangetocdepth{3}}% when the block is done, disable the remaining\cftinsertcode{end-\thetocmarker}{\normalchangetocdepth{-10}}% remove the spacing above the toc title\let\tocheadstart\relax% remove the toc title itself\let\printtoctitle\@gobble% remove space below title\let\aftertoctitle\relax% reformat TOC entries:\setlength{\cftsectionindent}{0pt}\setlength{\cftsubsectionindent}{\cftsectionnumwidth}\setlength{\cftsubsubsectionindent}{\cftsubsectionindent}\addtolength{\cftsubsubsectionindent}{\cftsubsectionnumwidth}\renewcommand\cftsectionfont{\small}\renewcommand\cftsectionpagefont{\small}\renewcommand\cftsubsectionfont{\small}\renewcommand\cftsubsectionpagefont{\small}\renewcommand\cftsubsubsectionfont{\small}\renewcommand\cftsubsubsectionpagefont{\small}% include the actual ToC data\tableofcontents*\endgroup% restore tocdepth\setcounter{tocdepth}{\value{@memmarkcntra}}% to indent or not after the chapter toc\m@mindentafterchapter% space between chapter toc and text\par\bigskip% handles indentation after the macro\@afterheading}\makeatotherNote that if the \chapterprecistoc or \chapterprecis has been used then thatdata is also added to the ToC data, and we will need to locally disable it in the chapterToC. This can be done by adding\let\precistoctext\@gobbleto the \chaptertoc definition above, just make sure it is added before calling before\tableofcontents*.SNIPLET C.8 (AN APPENDIX TOC)Here we assume a structure like\tableofcontents*\chapter407

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!