# Tag Info

## New answers tagged table-of-contents

### fancy header not quite working

Two things: Your asudis1.sty file is not doing right things to customize the document (a lot of definitions were just hack things). My suggestion is don't use it. Anyway if you don't have other ...
• 4,053
1 vote
Accepted

### How to create section titles with Icons but no Icons in Table of context

The reason is the LegrandOrangeBook.cls file use titlesec package to customize the section heading. You could simple replace the corresponding codes in LegrandOrangeBook.cls file from line 211 to 226 ...
• 4,053

### Wrong page number in TOC for endnote

Not sure, if this is what you are looking for: \documentclass[12pt]{book} \usepackage{lipsum} \usepackage{enotez} \setenotez{list-heading=\chapter*{#1},totoc=section} \begin{document} \frontmatter%...
• 1,733
1 vote
Accepted

### Reduce spacing in ToC

The ToC title is set using \chapter*. If you want to change the before and after spacing you need to redefine the \chapter* like this: % tocspaceprob.tex SE 648459 \documentclass{book} \usepackage[...
• 25.5k

### Capitalize List of Figures and Tables Headings

Since article has been identified as the document class in use, we know that the command names for the lists of figures and tables are \listfigurename and \listtablename. Not all classes use these ...
• 85.3k
Accepted

### listings Undefined control sequence \@dottedtocline #1#2#3->\scr@dottedtocline

I would say there is a typo in the KOMA code (\@dottedtoclilne). Try with this work-around. I will report it \documentclass[listof=entryprefix]{scrreprt} \usepackage{listings} \usepackage{amsmath} \...
• 294k

### Include PDFs and make a table of content

If you are happy with a TOC (i.e. you don't need a section heading on the inserted page) then you should try option addtotoc like this: \documentclass[a4paper]{article} \usepackage{mwe} \usepackage{...

### Remove subfigures from list of figures when using tabularray package

I seemed to have fixed this by just including \newcounter{lofdepth}\setcounter{lofdepth}{1} in the preamble, inspired by some code from the tocloft package. I'm not completely sure why this works, but ...
• 63
1 vote
Accepted

Memoir has most of the features from tocloft but often under slightly different macro names. Here you can just use \documentclass[a4paper]{memoir} \renewcommand\cftchapterafterpnum{\par\addvspace{0....
• 49.5k
1 vote
Accepted

### Include PDFs and make a table of content

This method could be a little complicate. You need specify the pagecommand for each \includepdf. Following example show only include single page of PDF. It should worked for multi-page PDF as well. ...
• 4,053
Accepted

### How to Cause a One-Time Pagebreak in the TOC

Are you really filling in data for the TOC manually? Before starting to find a solution, let's fix the really wrong parts you have: \protect{ is completely useless \par after \vskip is completely ...
• 992k

### How to Cause a One-Time Pagebreak in the TOC

Assuming that this is your manual simulation of the actual ToC. In order to prevent a page break between the PART xx and your title, you can add a \nopagebreak (sometimes several) when necessary, like ...
• 6,080
Accepted

### Right justification of numbering in ListOfFigures in tufte-book

Try this code. Also added a patch to increase the width of figure numbers from 2em to 3em. (when double digit chapter numbers are reached) \documentclass{tufte-book} %********************************...
• 25.8k
Accepted

### Roman pagenumbering on top with horizontal lines

Unfortunaly there is no MWE (minimal working example) in the question and I do not know which document class is used. Do not load both packages fancyhdr and scrlayer-scrpage in a document. If you ...
• 81.7k
Accepted

### Change level of appendix in toc

I'm assuming you are using memoir! When using memoir, parts and chapters look alike in the toc, so it is unclear for me what you really want! Still, you may try to add the following to the preamble of ...
1 vote

### Changing the TOC in the document class book so that it's not a chapter

One can use the answer from https://tex.stackexchange.com/a/245301/3929 to be able to have one design for numbered items and another for un-numbered. Here I adjusted the current numbered design for ...
• 49.5k
1 vote
Accepted

### Changing the TOC in the document class book so that it's not a chapter

Use \titleformat after \tableofcontents \documentclass{book} \usepackage{calc,xcolor} \usepackage{lmodern} \usepackage{titlesec} \begin{document} \tableofcontents \titleformat{\...
• 25.8k
Accepted

### Multi-paragraph abstract using memoir chapterprecis

memoir uses the environment quote (no inner indentation) to put together \prechapterprecis. You might add a \parindent to \authorabstract to indent the second paragraph. \documentclass{memoir} \...
• 25.8k

### I want ToC, LoF, LoT and bibligraphy to have default style while using fncychap

\documentclass{report} \usepackage{etoolbox} \makeatletter \newcommand\FncychapCopyCmds[2]{% \csletcs{appendix#1}{appendix#2}% \csletcs{@makechapterhead#1} {@makechapterhead#2}% \csletcs{@...
• 21.7k
1 vote
Accepted

### TOC spacing problem

Is it something like this you're after? (I removed irrelevant code from the example). BTW: I don't understand the purpose of the redefinition of \@makechapterhead and \@makesectionhead, use the build ...
• 49.5k
1 vote

### Eliminate Bold Font from ToC Only

You could use \AfterTOCHead[toc]{\setkomafont{disposition}{\normalcolor\normalfont}} If you want to do the same for LoF and LoT, remove the optional argument \AfterTOCHead{\setkomafont{disposition}{\...
• 81.7k

### Dot until page numbers in table of content

The first key is to use \addtocontents to change \@pnumwidth in the middle of the TOC. (This will need some more work to handle the \listoffigures, etc.) The second was to use \AddToHook{shipout/...
• 70.2k

### Dot until page numbers in table of content

Not a regular answer but too long for a comment. In the normal classes (book etc) there is a space between the end of the dotted line and the page number, irrespective of the length of the page number....
• 25.5k

### How to control the depth of toc and bookmark separately

Thanks for the answer provided by Ulrike Fischer in the comment. I have read the documentation of the package hyperref and found the answer to the question. My question can be solved using the ...
• 11

### Align equations separated by paragraphs

A small variation of OP answer (+1), which result (to my opinion) in better looking page. You may find the following suggestions useful: redefined is \myequations successive `intertext are merged in ...
• 255k
Accepted

### Adding appendices in toc using apa7 package

For mysterious reasons, the appendices are not added to the table of contents, but also apa7 doesn't expect appendices to have subsections. My advice is to avoid the class, unless one is required to ...
• 992k
1 vote

### How can I display a short chapter name in the header and a long chapter name in the ToC?

The URL for the top answer no longer works. You can find the content now at https://texfaq.org/FAQ-runheadtoobig
• 11

### Adding unnumbered sections to TOC

Easy to use: \section*{Preface} \addcontentsline{toc}{section}{Preface} got this answer here : https://latex.org/forum/viewtopic.php?t=335

### How to change spaces between items in Table of Contents

Here is an easy way to do it ! However, you need load this package \usepackage{setspace} \begin{spacing}{4} \tableofcontents \end{spacing} Found this technique here : https://latex.org/forum/...

### Add "Chapter" or "Appendix" before numbers in Contents without the tocloft package

You have still not clarified by what you mean by "line spread". You have not shown what your problem is with tocloft so all I can do is guess that this should work for you. % tocloftprob.tex ...
• 25.5k

### Two tables of contents one in Chinese and another in English

Here is another solution which is provided by @muzimuzhi Z and from the link. Note, the tocloft package is used in the solution. % ref: https://tex.stackexchange.com/a/170963/79060 \documentclass{...
• 3,019
Accepted

### Add "Chapter" or "Appendix" before numbers in new \entableofcontents without the tocloft package

Here is a solution: \documentclass[a4paper]{ctexbook} \ctexset{chapter/number=\arabic{chapter}}%change number format in Chinese \tableofcontents \usepackage{etoolbox}%\apptocmd \usepackage{calc}%\...
• 4,053

### Changing Font of all Numbers in Main Body, Headings and TOC

Compile this document with LuaLaTeX: \documentclass{scrreprt} \usepackage{fontspec} \setmainfont{Nunito-Regular.ttf} \begin{document} Have some numbers: 1234567890 \end{document}
• 5,328
Accepted

### Changing Font of all Numbers in Main Body, Headings and TOC

Unfortunately nunito doesn't have a documentation and in its README only the option scale is mentioned. However, if you take a look at nunito.sty, you will find the line \DeclareOptionX{lining}{\edef\...
• 6,080
1 vote
Accepted

### Add "Chapter" or "Appendix" before numbers in Contents without the tocloft package

You could patch the command \@chapter and the command \l@chapter: \documentclass{book} \usepackage{etoolbox} \newlength{\chapnwd} \settowidth{\chapnwd}{\textbf{Appendix\space00\space}} \makeatletter \...
• 4,053
Accepted

### Two tables of contents one in Chinese and another in English

The new solution (2022-05-28) The new solution which is improved by @Tom and me based on my old solution may be the best one so far as now. Note: The new solution gives a way to add more contents in ...
• 3,019
Accepted

### How to remove the text added by \addtocontents

I'm not sure this is the way you're "supposed" to do it, but you could use a custom command instead of literal "Page", and then redefine the command later on. You'll have to add a \...
• 36.6k