{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)

3
votes
1answer
27 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
55 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
193 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. ...
0
votes
1answer
42 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
39 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
134 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
69 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
34 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
26 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} ...
0
votes
0answers
18 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
36 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
38 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
88 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
67 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
46 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
20 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
47 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
39 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
51 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
78 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
45 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
41 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
49 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
83 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
23 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
56 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
34 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
72 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
45 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
74 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? ...
2
votes
1answer
37 views

Hide subsubsections from TOC, but keep PDF bookmarks with beamer

Yes, I realize that subsubsections are evil. The only reason I'm using them however, is for myself, to structure the presentation and be able to jump around efficiently if necessary. The beamer theme ...
2
votes
1answer
45 views

minitoc Errors (potential clashes with other packages?)

I want to insert chapter content for my thesis by using minitoc package. It seems working on its own. However, if I add other packages for other purposes, then it does not work and I keep getting the ...
0
votes
1answer
30 views

Wrong anchors in bookmarks and TOC

I am having some trouble with some anchors for sections, which automatically start at a new page. The TOC shows the right page numbers, where the PDF bookmarks show the page number of the previous ...
2
votes
3answers
79 views

List of equations, including equation contents and caption

I would like to automatically generate a list of equations present in the document, which includes the equation itself. Here is a MWE: \documentclass{article} \def\caption#1{} \begin{document} First ...
3
votes
2answers
46 views

Table of contents wrong when setcounter{page}{1}

I'm working on a document, and I don't want numbering on my front page, so I placed a \thispagestyle{empty}. Now at my ToC, I use \setcounter{page}{1}. But my document still counters the ToC page as ...
2
votes
1answer
50 views

page number, bookmark number, do not match

Good day people, Today, I was wondering how to correlate the bookmark numbering with the table of contents. As the attached picture shows, the Titulo and Declaracion share the same number page at the ...
1
vote
1answer
45 views

Appendix naming in TOC

At the moment the appendix is listed in my TOC as shown in the picture below. I now would like to erase the A and just have "Appendix" in the TOC but, at the same time, not lose the A.1, A.2, A.3, ...