New answers tagged table-of-contents
0
votes
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 ...
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 ...
0
votes
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
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[...
0
votes
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 ...
4
votes
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}
\...
0
votes
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{...
2
votes
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 ...
1
vote
Accepted
memoir : adding vertical space below chapter entries in table of contents
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....
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. ...
3
votes
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 ...
2
votes
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 ...
2
votes
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}
%********************************...
0
votes
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 ...
0
votes
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 ...
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{\...
2
votes
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}
\...
2
votes
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{@...
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 ...
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}{\...
2
votes
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/...
0
votes
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....
0
votes
How to change font size in table of contents?
\usepackage{titlesec}
\usepackage[titletoc]{appendix}
% TABLE OF CONTENTS
\pagebreak
\renewcommand{\contentsname}{TABLE OF CONTENTS} % Rename ToC title
\renewcommand{\baselinestretch}{0.5}\...
0
votes
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 ...
0
votes
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 ...
0
votes
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 ...
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
2
votes
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
0
votes
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/...
0
votes
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 ...
0
votes
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{...
0
votes
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}%\...
0
votes
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}
2
votes
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\...
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
\...
2
votes
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 ...
2
votes
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 \...
0
votes
Eliminate Bold Font from ToC Only
\addtokomafont{partentry}{\mdseries} and \addtokomafont{chapterentry}{\mdseries} in the preamble of your example will take care of the bold formatting.
Edit:
\addtokomafont{disposition}{\mdseries} ...
Top 50 recent answers are included
Related Tags
table-of-contents × 6596sectioning × 654
tocloft × 495
hyperref × 383
chapters × 367
beamer × 348
memoir × 314
koma-script × 303
appendices × 284
numbering × 278
spacing × 264
page-numbering × 258
formatting × 232
titletoc × 232
header-footer × 226
tables × 171
captions × 167
floats × 163
titlesec × 143
minitoc × 131
bibliographies × 130
horizontal-alignment × 118
indentation × 117
bookmarks × 114
listings × 102