Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [table-of-contents]

{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}, {minitoc} and {etoc}.

2
votes
1answer
19 views

Table of contents numbering arent correct

I am trying to get a table of contents based on the page number (in the footer on the right side) but in some strange way it is counting from the wrong start. It says page 3 instead of 2 and page 4 ...
0
votes
0answers
14 views

Bibliography chapter does not appear into TOC

\documentclass[11pt,a4paper ,oneside,openany,french]{book} \usepackage[explicit]{titlesec} \usepackage{amsmath,amssymb,amsthm} \usepackage[dvips]{graphicx} \usepackage[utf8]{inputenc} \usepackage[...
0
votes
1answer
19 views

Unwanted space between page number and margin when using titletoc

When using the titletoc package, how does one get rid of the space between the page of the chapter, section, ecc and the right margin of the page? MWE: \documentclass{book} \usepackage{titletoc} \...
0
votes
0answers
23 views

List of Figures is empty

I put some figures in my project report but the list of figures is empty. THe code is as follows: \tableofcontents % Write out the Table of Contents \lhead{\emph{List of Figures}} % Set the left ...
0
votes
0answers
18 views

Customize chapters in table of contents from “1”, “2”, … to “Chapter 1:”, “Chapter 2:”, … using \@starttoc

I need to use this template for my thesis and having troubles modifying the labeling of chapters/sections in the table of contents. The way it is implemented right now is: "1 blah 1.1 blah-blah 1.2 ...
1
vote
0answers
24 views

Problems with TOC section depth

I have set my TOC depth to 4, but unfortunatelly when I do that, the sections which have less depth add one more line and so it repeats the number withouth any need. Can you please help with that? ...
0
votes
0answers
28 views

Final Year Thesis - TOC offset by 1

Like most final year reports, an acknowledgements and abstract section is required before the TOC. Adding these sections into the TOC with roman numerals as the page numbers worked fine. However, in ...
0
votes
1answer
26 views

Can't get my page number in TOC match the report?

I'm trying to create the table of contents for my report, I'm able to produce the table of contents(TOC) however I can't seem to get the page numbers in the TOC to match the page numbers in my report. ...
3
votes
2answers
20 views

Bibliography as chapter (in ToC, fancyhdr) in book document class

I want my bibliography to be treated as a chapter with class book, but right now it's being treated as a section of the previous chapter (the LE header is of the previous chapter, and it's not bolded /...
2
votes
2answers
37 views

Two-column table of contents, section runs into color bar

I am typesetting a summary of my chemistry semester (in German) and ran into the following problem using \begin{multicols}{2} \tableofcontents \end{multicols} with the package multicol: I made the ...
0
votes
0answers
24 views

Table of Figures loses format after 9th figure (see attached image) [duplicate]

How would I fix this issue to add a space in between the caption and figure number.
1
vote
1answer
19 views

Remove section numbering from specific sections in TOC

I want to remove the number only from the first two sections, i.e. Acknowledgement and abstract. The rest of the sections should retain their numbering. I also want the above two (acknowledgement ...
0
votes
0answers
8 views

Formatting like table of contents: dots between title and page number

I'm creating my personal cookbook with all my recipes inside. I have one main index at the end showing all the recipes by Category, and I'm trying to recreate another index showing the recipes by ...
1
vote
0answers
37 views

Reducing the spacing in TOC entries for front matter only

I am trying to get 1.5 spacing throughout the document using setspace package. However, the spacing in TOC entries for front matter appears more. How to reduce spacing for TOC entries in front matter ...
0
votes
1answer
29 views

Chapter name separate from chapter titles in table of contents

I want my chapter title names to be on separate line dotted as shown in the picture below observe that the chapter name is in Arabic dotted on its own line and the name of the chapter follows. I have ...
4
votes
2answers
75 views

Watermark combined with no page numbering in ToC

UPDATED 20190319 I am using the command \pagenumbering{gobble} in order to suppress the page numbering in the table of contents (I only want to show the titles). The problem is that it does indeed ...
1
vote
1answer
31 views

Problem with caption in \listoftables

I have a problem with \listoftables command. \listoftables gets data from \captions and displays it in the table list. Is it possible for \listoftables to retrieve text from another command? ...
0
votes
1answer
14 views

How to disable the header ToC of a beamer document while still maintain its bookmarks?

I would like to remove the ToC because it could occupy too much of space when number of sections become too large. However, I still want to use \section commands because they allow me to easily ...
3
votes
1answer
33 views

Part name between 2 hl in toc

How to add 2 lines to all part names in the toc as in this image. \documentclass[a4paper,11pt,openany,french]{book} \usepackage[french]{babel} \usepackage{geometry} \geometry{paperwidth=21cm,...
0
votes
0answers
22 views

How to get no numbering in table of contents, but still have dots to page numbers?

Using titletoc. I can get numbers in the table of contents (i.e. before section/subsection/etc. heading) with dots going across to the page number using \dottedcontents. I can get no numbers but ...
0
votes
0answers
29 views

Tutorial: Low-Level Basic Implementation of an Asynchronous Table of Contents?

Closely Related: - Mimicking LaTeX's "table of contents" functionality Using documentclass{minimal}, what is the shortest way to write a low-level asynchronous Table of Contents, (...
0
votes
2answers
31 views

Change font size of section title in document without messing table of contents and headers

I know this is technically wrong and I shouldn't even be attempting to do it... Nevertheless, I have a document which has section header sizes set up as Large and works fine everywhere except for one ...
0
votes
1answer
22 views

Missing page numbers while using the tocloft package

I need to use the tocloft package because I edited my list of figures and tables that it displays "Figure/Table 1..." in bold text before the name using \renewcommand{\cftfigpresnum}{\bfseries Figure/...
2
votes
1answer
47 views

I have to use this template for my thesis, but there is no dots in table of figures

I have to use this template for my thesis, but there are no dots in the list of figures and list of table, I tried to contact the author who creates the template, but no respose. Hopeful, someone ...
1
vote
1answer
18 views

tocloft appears to raise the table of contents of books. What gives?

I would like to use the tocloft package for customizing the table of contents in my "book" document. However, when I include this package, the table of contents shifts upward by the line width of a ...
0
votes
0answers
35 views

Two Table of Contents with shorttoc

I'm trying to write my master thesis, and trying to add two ToC. One simplified in the second page, with the global chapters as well the following pages (abstract, Acknowledgements, lof, lot, etc). ...
0
votes
0answers
37 views

Using scalerel and stackengine packages changes table of content

I am using \documentclass[11pt]{amsart}. When I added scalerel and stackengine packages in order to solve the \widehat problem (as described in the here) appearance of table of contents changed. Is ...
0
votes
0answers
12 views

Having fancy header on TOC pages

how can I make a fancyheader only for the list of tables?
1
vote
1answer
22 views

endfloat - order of appearance

I use the endfloat package to place tables at the end of the document. By default, the table list appears first and then the tables themselves. I would like to change the order so that we first have ...
0
votes
0answers
12 views

How to break the lines within the list of figures - endfloat package

I am using the package endfloat to provide the tables, the figures and the list of figures at the end of my document. Unfortunately, the figures' captions are longer that just one line, but the ...
0
votes
0answers
20 views

What's the difference between `listoftablesname` and `listtablename`?

I've found templates with listoftablesname and others with listtablename. Are they used by different packages? Or is one of them an old version of the same variable?
4
votes
1answer
45 views

prerex package changes toc color

I use the prerex package to draw a simple prerequisite diagram. It works well, but changes the table of contents color to red, what looks ugly. I tried to change it back with {\color{black}\...
0
votes
2answers
47 views

How do I center the table of contents title without using tocloft?

I would simply like to center the title of the table of contents in my "book" document. I just added dot leaders to the table of contents, and this appeared to be best accomplished by forgoing the ...
1
vote
1answer
35 views

Memoir: Part contents in TOC in two lines

I need something similar to this post, that is the second line of the part should start directly at the left margin. This is what I have tried: \documentclass{memoir} \setlength{\cftpartindent}{0em}...
1
vote
0answers
29 views

How to align the page number in the List of Figures [duplicate]

I have a long figure's caption thats span over multiple lines in the list of figure. How can I move the page number to the first line of the caption?
3
votes
1answer
36 views

add \addcontentsline command doesn't work

I am using TeXmaker for my editor and I am trying to add contents to my table of contents. For some chapters it does work, and for others just won't. I am familiar with command \addcontentsline{toc}{...
1
vote
2answers
18 views

Remove first word from section title in ToC

\documentclass{book} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \begin{document} \tableofcontents \chapter{MyChapter} \section{Term: Foo} \section{foobar} \section{Term: Bar} \end{...
4
votes
2answers
105 views

ToC header appears in next chapter

I am writing a document in which I would like to include table of contents, after which I will write a prologue. The issue is that the second page of the chapter, has the header of the ToC, as seen ...
0
votes
1answer
25 views

Fncychap with Conny option cannot produce table of contents

I am writing a thesis using the fncychap package with the option Conny. When trying to add a table of contents, I get the following error ! Undefined control sequence. \label@name {#1}\label@...
1
vote
1answer
75 views

How do I create a preface in LaTeX?

I am wondering on how I could insert a preface before the table of contents. The page would be roman enumerated but not put in the actual table of content. The initial part of my code is: \...
1
vote
3answers
59 views

Appendix name in Uppercase but in Appendix TOC lowercased

I'm writing a thesis in which there is an appendix. It's referenced in the TOC of appendixes. However, there is a requirement as to : have the appendix name in Uppercase where the appendix actually ...
0
votes
0answers
25 views

TexpadTex hyperref bookmarks in preview.app

I wonder if anyone knows how to enable bookmarks in pdf viewers using TexpadTex. When compiling a pdf with MacTex the following will work, but not with TexpadTex. \documentclass{report} \usepackage{...
1
vote
1answer
28 views

Beamer TOC: Right-align section numbers

I am trying to use capital roman numerals (I, II, ...) to present each section in my beamer TOC with its section number. The following MWE works overall, but it can be seen that the roman numbers, and ...
9
votes
4answers
1k views

How can I create a Table like this in Latex?

How can I create a table like this in Latex? I have tried but it didn't work. I need also that it is enumerated so that it appears in the List of Tables. It doesn't matter if it is not coloured, as ...
4
votes
1answer
69 views

Setting local toc depth < main toc depth OR limiting the scope of a local toc

I am trying to set the main \tableofcontents and several \localtableofcontents in a large document. The document consists of an introduction, several parts, a conclusion and a bibliography. As for ...
0
votes
0answers
25 views

Differentiate Chapter Headings in ToC and Body

Working on formatting a thesis (using the book class) and I need to format the TOC entries and the actually chapter headings in very different ways. For the ToC, entires are in all caps and use roman ...
0
votes
1answer
37 views

How to add Word CHAPTER # for each chapter name in toc (for .sty file) [duplicate]

How to add Word CHAPTER # for each chapter name in toc (for .sty file) This code from .sty file \renewcommand{\@makechapterhead}[1]{{ \setlength{\topmargin}{2in} % really 1.5in, added by bph ...
2
votes
1answer
24 views

Why is the last page of ToC treated as page 1 of the document?

I have pulled my hair on this one far too long, so now I'm asking for help as to where I've done things wrong. Minimal Working Example: \documentclass[12pt,a4paper,twoside]{report} \usepackage{...
0
votes
1answer
43 views

Chapter and numbering overlapping in the table of contents

I've a problem in my table of contents. Some overlap of the numbering of chapter and the corresponding title. Can someone please help me? Here is my code: \documentclass{amsart} \usepackage{xcolor} ...
2
votes
1answer
59 views

How to change the font type and size of chapter title?

Right now I am getting my chapter title in the following font that is big-sized and bold: However, I want to change it to the following format, which is regular size, normal text, with regular font ...