{table-of-contents} is about the creation or modification of the Table of Contents or similar listings like List of Figures and List of Tables as well as custom lists. Popular packages are {tocloft}, {titletoc}, and {minitoc}.

learn more… | top users | synonyms (4)

0
votes
0answers
22 views

list of tables, figures and table of content is not updated

I use \section and \subsection for Table Of Content, and \caption for table and figures but just chapter 1 sections appear in the list, no figure and table updates in the list, what should I do?
3
votes
1answer
27 views

Meanings of some macros in beamer source

In the source file beamerbasetoc.sty of beamer package there are these lines: \def\tableofcontents{\@ifnextchar[{\beamer@tableofcontents}{\beamer@tableofcontents[]}} \def\beamer@tableofcontents[#1]{% ...
7
votes
1answer
162 views

Understanding how a TOC is generated

I'm trying to understand, in some detail, how a toc is generated. But now I'm thoroughly confused and perplexed after examining the .toc file before and after making a ``slight'' modification. I hope ...
2
votes
1answer
27 views

Table of Contents labels not directing hyperlinks to correct page

Being only a LaTeX novice I may have introduced a bit of customizing code renewing part formats and adjusting numberings which may have messed up the ability for hyper-references accuracy in heading ...
1
vote
1answer
28 views

Change number after chapter in table of contents

From Chapter Roman in tableofcontents , it has an effect on Theorem, Definition etc. I would like to change number of chapter into Roman number in tableofcontents like CHAPTER I in picture. ...
4
votes
2answers
49 views

Edit contents title and running header separately

I'm typesetting a book using XeLaTeX. In creating the table of contents, I want to have control over: The title at the top of the toc The running header throughout the toc I want the contents ...
5
votes
1answer
36 views

Beamer: Highlighting subsubsections in TOC

I borrowed the following code from this answer (provided by @Gonzalo) to my earlier question and now I want to show highlighted subsubsections as sections and subsections. Any help will be highly ...
3
votes
1answer
31 views

Table of Contents in Elsevier Class with two columns

How can I show a table of contents in one column and below of abstract in Elsevier Class, considering twocolumn and preprint as selected options? My minimal example is below. ...
4
votes
2answers
103 views

List of theorem dots overlapping with theorem name

Here is my MWE: \documentclass[a4paper]{report} \usepackage{amsmath,amsfonts,amssymb,amsthm,thmtools,tikz,xparse,lipsum} \usepackage{newtxtext,newtxmath} \usepackage{hyperref} \makeatletter ...
4
votes
2answers
194 views

Removing the zero in the chapter numbering

I have a line of code to hide "Chapter" and just head every chapter in the format "ChapterNumber" + "." + "ChapterTitle". However, the Table of Contents is assumed to be "Chapter 0", so it shows "0. ...
1
vote
1answer
49 views

How does one create a counted command (e.g. TODO) for use in a list?

Pretext: I am aware of packages such as todonotes, todo, and fixme, but this is more of a task for learning LaTeX programming. Therefore, the use of additional packages downloaded from CTAN is ...
6
votes
1answer
42 views

roman numbers too wide in table of contents

Consider the Code below: \documentclass[% paper=A4, twoside=true, fontsize=12pt, titlepage=true, listof=totoc, bibliography=totoc, listof=flat, open=right, ...
3
votes
1answer
32 views

Deeper TOC only in one section

I have a deep title structure (until subsubsubsection) and want to show for the whole document only sections and subsections – this is easy so far. But for one section only, I want to have also ...
5
votes
2answers
138 views

Token allowed in PDF string in \section but not in a customized (with \addcontentsline) section command

babel's frenchb option makes active e.g. ! character by making it automatically preceded by a \thinspace. Such active characters are properly supported in sections by hyperref's bookmarks. But, when I ...
3
votes
1answer
83 views

Is there a way to limit the scope of the Table of Contents (\tableofcontents command)?

Question If I have a document with multiple tables of contents, can I limit the scope of a toc sections are added and reset the toc? Situation I have a document made up of 10 languages. (using ...
0
votes
0answers
15 views

Two ToCs in a document? [duplicate]

I want to have a first level ToC in the beginning of the document, and full ToC at the end. I'm using titletoc. There's a similar question but it is actually about printing ToC by parts. I expected ...
2
votes
1answer
38 views

Setting Entries of List of Listings in LaTeX. Package Listings

I'm trying to put an hyphen after the entries of the "List of Listings" as follows: List of Codes Code 1 -- First Code ................................ 7 Code 2 -- Second Code ...
0
votes
0answers
19 views

Table of contents inside an included PDF [duplicate]

I've got some problem with LaTeX right now, well to be honest it's not really a problem and I'm not even sure that it is possible but I would like to be able to do it. Basically, here is my LaTeX : ...
0
votes
0answers
28 views

Conditionally prepend text to chapter title in TOC

I want to prepend some text to chapter titles on the TOC according to certain conditions. For example (this doesn't work): \documentclass[letterpaper,openany,oneside]{book} ...
1
vote
1answer
25 views

Exclude section numbers from links in ToC: non-numbered sections bug

I use etoc to exclude section numbers from links in ToC. However, when I insert a non-numbered appexdix section — etoc adds a period: I played with the code, and found that the problem is with ...
1
vote
3answers
41 views

How to hide chapter numbering in table of contents?

I know \setcounter{secnumdepth}{1} lets you set the depth of numberings, but I have to number sections and subsections only, not chapters. Is there a one-liner to do this? I have seen some answers to ...
1
vote
1answer
46 views

Creating a very custom ToC for moderncv

My university has a platform for job search which allows uploading only one curriculum vitae. However, I want to upload several curricula, each in a different language (I live in Europe and I speak ...
6
votes
2answers
89 views

Modify ToC Backmatter Entry Distance

I created a simple document using memoir class as follows: \documentclass[12pt,a5paper]{memoir} \renewcommand\thepart{\arabic{part}} % modify ToC part \renewcommand{\cftpartaftersnum}{.} ...
4
votes
0answers
68 views

LoF, LoT, Abstract, Acronyms non-numbered in ToC - why?

The solution of LOF+LOT+BIB in TOC with numbered chapter does not work in my case. Admittedly I used a template of some other person - when I produce a Pdf with his code all above mentioned sections ...
1
vote
1answer
31 views

ToC formatting - numbers too close to section headers [duplicate]

I am putting together a report as part of a group project for part of physics degree, and I have been having fun trying to format the table of contents correctly. Here is a MWE: ...
1
vote
1answer
33 views

Cross-referencing label and table of contents

I am using a label for referencing. I just added my table of contents and saw the label is used as chaptertitle. How could I fix this? My MWE: \documentclass[a4paper,dutch]{report} ...
2
votes
2answers
58 views

How to create a tabular of contents?

Given some latex code like \section{the first section} some text \section{the second section} some text \section{the third section} some text \section{the fourth ...
1
vote
1answer
48 views

Add word 'Chapter' before chapter number in toc (memoir class)

i want to have the word 'ΚΕΦΑΛΑΙΟ' which means Chapter in greek, before the chapter number in the table of contents and the 'ΠΑΡΑΡΤΗΜΑ' before appendices, i am using memoir class and the command ...
3
votes
1answer
21 views

Table of contents: Correct hyperllinks to two different “section 1”s

I have a document divided in parts, sections and subsections and each part starts with "section 1". I totally dislike this, but I cannot change that. So sadly, I have to cope with the arising ...
2
votes
1answer
51 views

A table of contents for each section. Including only the entries of that section

I am preparing a presentation on Beamer and I will have different sections. I would like to put a title page and a table of contents for each of the section. In particular, for each section a toc ...
3
votes
0answers
26 views

Error with \tableofcontents when using “\(…\)” in section [duplicate]

I want to type math equation in section headers, but I had some error with \tableofcontents command. When I compile this file \documentclass{book} \usepackage[utf8]{inputenc} \begin{document} ...
0
votes
0answers
51 views

Table of Contents (Continued) heading [duplicate]

The solution here Changing the table of contents for getting a "Table of Contents (Continued)" heading in the text of the second page of the table of contents works very well and is the best solution ...
2
votes
1answer
40 views

hiding section name and include it in toc

I tried to find a solution, but I cant. I'm writing my thesis, and all my sections are numerated arabic. I have no problem displaying them in TOC. Before those section i have several pages numerated ...
1
vote
1answer
54 views

How can I get page numbers to link to the table of contents in latex?

Just gonna ask a question from 4 years ago: "I've seen a pdf LaTeX document where the page numbers at the bottom of the page are hyperref links, and clicking them causes you to jump to the contents ...
2
votes
0answers
84 views

Remove section titles from text, but not table of contents — interaction with columns

Update: a previous version of this question wrongly attributed the problem to use of minitoc to get section-level tables of contents (\secttoc). I've got a complicated document with a tables of ...
4
votes
1answer
48 views

Making chapters bold in table of contents

Problem: How do I make chapter titles bold in the below MWE? Minimal working example: \documentclass{book} \usepackage[utf8]{inputenc} \usepackage[titles]{tocloft} \begin{document} %: ...
3
votes
2answers
43 views

How can I modify the page number for abstract in ToC?

I am very new in LaTeX. I am writing a thesis and I need to have two abstracts one in English and one in Portuguese. However, when I try to include them in this way: \selectlanguage{portuguese} ...
1
vote
1answer
50 views

Start TOC from chapter 1 and also page numbering

Problem: Start page numbers from chapter one and also reflect this in the TOC. Currently the code for TOC is: \renewcommand{\contentsname}{Table of contents} \setcounter{secnumdepth}{2} ...
4
votes
1answer
87 views

Table of content: how to remove the page number of subsection in LaTex?

Could anybody help me to remove the subsection of page number? Just want to be like this Thank you very much. Here is my code \documentclass[a4paper,12pt]{article} \date{} % Leave date ...
0
votes
0answers
34 views

Chapter in frontmatter

need some help. I want to create some specific chapters in frontmatter so that it will be displayed in toc with roman numbered page number; moreover I want its page in toc is not in bold fonts (if ...
0
votes
1answer
24 views

Why is pdfpages' addtotoc option giving me «Illegal parameter number in definition of \AM@temp» error message?

I am trying to add a few pdf pages in my LaTeX file and have them shown in the table of contents. My file is as follows: \documentclass[a4paper,12pt]{scrartcl} \usepackage[utf8]{inputenc} ...
2
votes
1answer
57 views

How can I exclude a custom sectioning command from the table of contents?

Question How can I exclude a custom titling command (sectioning command) from the table of contents? Note that I do not want to simply inherit the \paragraph, because it is reserved for and extra ...
2
votes
1answer
38 views

Dynamic date in section and TOC

I am trying to dynamically insert a custom date within a section title like so: (somewhere in preamble): \newdate{prevdate}{14}{01}{2015} \date{\displaydate{prevdate}} (somewhere in document): ...
1
vote
1answer
36 views

Using titletoc's \contentspush{} to non-rigidly align titles in ToC

The document uses the book class. Currently I'm working on the ToC using the titletoc package. Attached here are Screenshot-1 and Screenshot-2. The screenshots were taken at 80% zoom. Screenshot-1: ...
1
vote
1answer
32 views

Theorem List Template for Course Modules

I'd like to create a template in latex that will list the theorems and definitions that I have entered. For example, in my Analysis 1 module, I have learnt Theorem 2.21 $ \lim_{x \to +\infty}(a_n + ...
1
vote
2answers
26 views

Include class numbering in TOC with a subclass entry when using titlesec and titletoc

I am trying to use titleclass to define two new classes : savoir and subsavoir. In the TOC, I would like to get something like this : Savoir 1 -- First knowkledge title Savoir 1.a -- First ...
1
vote
0answers
21 views

Eledmac: hyperlink to table of contents generates additional pages [closed]

I'm writing a critical edition that includes a link to the table of contents on each page. When I do this in eledmac, additional pages appear in the vicinity of the table: \documentclass{book} ...
2
votes
1answer
74 views

No page numbering on ToC, LoT, LoF

I'm trying to supress page numbering in the table of contents, list of figures and list of tables. If they have more than one page, subsequent pages should have no page numbering also, but they must ...
0
votes
1answer
47 views

How to create a custom Table of Contents

I need to write a document which will contain a preliminary table of contents for a report that I need to write couple of months later. For that, I need to provide the preliminary outline, the ...
3
votes
2answers
76 views

Defining a new version of \addcontentsline fails with hyperref

The example below defines a new version of \addcontentsline which does not show \thepage. Unfortunately, the compilation fails when hyperref is introduced. I have no clue why? ...