{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
84 views

Beamer: Subsections in table of contents in one line

I created a presentation with beamer, but the presentation is too long for the table of contents to fit in one frame. So I wanted to ask if it is possible to remove the line break after each ...
1
vote
1answer
42 views

Glossaries table of contents showing acronyms where only long forms were used

In a document where some acronyms are defined, and only long versions are used throughout the document, is it possible to have these long forms not show in the list of acronyms? MWE ...
0
votes
1answer
40 views

Parts in TOC with background color

How can I modify the part style, so that instead of a rule I get a gray background? I'm using tocloft package. \addtocontents{toc}{\protect\mbox{}\protect\hrulefill\par} \documentclass{book} ...
1
vote
1answer
41 views

List of numbered pieces of text

To number short pieces of text throughout my report I used: \newtheorem{SampleEnv}{}[section] How do I generate a list of all the numbered pieces of text?
3
votes
1answer
71 views

Editing the section's ToC entry with the titlesec package

I want to know how can I change the ToC entry of sections when using the titlesec package? I am using the command \section[short title]{long title}, but the short title does not appear in the Table ...
2
votes
0answers
43 views

manual generated toc page with wraps an tab stops [closed]

My last deeper contact with TeX was many years ago. Since then I use it only from time to time to assemble PDF pages with bookmarks etc. Now I need to manually create TOC pages for a collection of ...
2
votes
1answer
66 views

Show lists on 2 levels in the table of contents

I have a file as follows: \documentclass[12pt]{article} \begin{document} \setcounter{tocdepth}{2} \tableofcontents \newpage \section{A Section} body \begin{figure} abc \caption{a figure} ...
1
vote
1answer
52 views

How to get ConTeXt “title” section into table of contents?

I'm trying the following code: \setuphead[subject][incrementnumber=yes, number=no] \setuphead[title][incrementnumber=yes, number=no] \setupcombinedlist[content][list={title,subject}] \starttext ...
1
vote
2answers
68 views

Add custom entry to \lstlistoflistings

I am using the listings package for code listings. I am using \lstlistoflistings to generate a list of code listings. I have one code 'pretend' listing which is actually plain latex code, however, ...
1
vote
0answers
38 views

Listing caption numbers are reverse in the list of listings [closed]

Consider the following code: \documentclass[a4paper,10pt]{book} \usepackage{listings} \usepackage{xepersian} \settextfont{FreeFarsi}% http://sourceforge.net/projects/fpf/ \DefaultMathsDigits ...
1
vote
1answer
92 views

Duplicate entry on toc when using lstlistoflistings [closed]

Hi i am making my thesis on latex and i have write some code examples using the lstlisting package. Then i have used the command \lstlistoflistings to add all the example at the beginning of my ...
7
votes
2answers
39 views

Adding the preface to contents

I'm trying to add the preface to the contents along with the page on the far right. I had written it as following: \chapter*{Preface} but it does not appear on the contents. If I write it as ...
2
votes
0answers
42 views

How do I style the TOC in a beamer template?

I'm making a beamer template, and I have most of the things the CD requires done, but I can't seem to be able to influence how the TOC looks like. This is how it is supposed to look like: (But the ...
4
votes
1answer
81 views

Automatically adjust colour of current part when displaying local table of contents

I produce course books on a photocopier. However, the photocopier can staple no more than 50 sheets in a booklet, and I don't always write later parts of the books in advance of the start date of the ...
11
votes
2answers
289 views

Surtitle for section?

I'm writing a book in which I would like certain sections to have a "surtitle" like this: I would probably like the table of contents entry to look like "Science and Society: The Galileo Affair," ...
4
votes
1answer
99 views

Chapters without dots in ToC

I've used this code \addtocontents{toc}{\cftpagenumbersoff{chapter}} to remove the dots and page numbers after the entries in my ToC for all chapters. Is there a way to do this just for an ...
0
votes
0answers
49 views

Toc, Bibliography, Indexes and dots

I have to add to the ToC the Bibliography and the Indexes (e. g., the Author index) in such a way that they have the same style of a Chapter without the Chapter number. In particular, I need to add ...
4
votes
2answers
118 views

Error when writing the chapter number fifteen of the appendices (the letter ñ in the Spanish alphabet), when using the babel package spanish

I am currently doing a very long document in LaTeX (my thesis), and the structure of the document I'm writing the number Appendix fifteen, but as we know in Spanish the number letter fifteen is the ñ, ...
1
vote
2answers
73 views

Override page number in TOC because link goes to wrong page

I have an issue where my TOC declares my document's glossary on page xiv when the actual list of abbreviations starts on page xiii and ends on page xiv. The relevant part of the TOC is as follows: ...
2
votes
1answer
46 views

Adding headings in contents causes links to wrong page

I have a document with a standard TOC generated automatically by pdflatex but by default this TOC does not include lists of figures, tables and the bibliography. So I am trying to force these ...
3
votes
1answer
153 views

Typesetting scenes in a novel

I am typesetting a novel in ConTeXt and I need a way to correctly typeset scenes. A scene in my novel is just a sequence of paragraphs separated from the previous one by two blank lines (though in the ...
4
votes
2answers
107 views

Explanation of the usage of a particular new command to personalize it

A guy had a problem personalizing his ToC, and you helped him suggesting to use this lines: \newcommand{\mychapter}[2]{ \setcounter{chapter}{#1} \setcounter{section}{0} \chapter*{#2} ...
2
votes
0answers
106 views

LOF and LOT customization in memoir

I am attempting to add LOF and LOT to my current document using the memoir class. When I try to remove the spacing above the LOF and LOT titles, I get the "Undefined control sequence. ...
2
votes
1answer
61 views

How can I fix the following formatting problem with the table of contents?

I have a few unnumbered chapters that I would like to add to the table of contents. This is not a problem at the moment, because of someone graciously providing the following macro, which adds the ...
0
votes
0answers
59 views

Chapters with and without numbering together in the same table of contents

I am typesetting a novel in ConTeXt and though I have read as much documentation as possible, I still have doubts about how to do things in a clean and correct way. I typeset my chapters by using a ...
11
votes
2answers
254 views

How to make a local TOC that only shows levels below where it is inserted?

I simply want to make a local Table of Contents (TOC) which shows in its content what is below the level the TOC is inserted in and not outside. For example, if I do \minitoc inside \section{}, the ...
5
votes
1answer
79 views

Generate automatically a list of definitions (user-defined theorem environment) in appendix

In the following code, I define a theorem environment definition and write a figure and a definition: \documentclass[12pt]{book} \usepackage[francais, english]{babel} \usepackage{amsthm} ...
2
votes
0answers
115 views

thesis document class - \chapters stopped numbering randomly [closed]

I'm writing my thesis using a documentclass{thesis}. It is a template I downloaded (http://www.latextemplates.com/template/masters-doctoral-thesis) and the chapters are compiled using macros. ...
4
votes
1answer
81 views

Why doesn't nomenclature show up in TOC using this custom class?

Background: I'm trying to use a LaTeX class found HERE to create a thesis. The class has a scheme for enabling/disabling the creation of a "List of Symbols" using LaTeX's nomenclature package. When I ...
5
votes
1answer
87 views

Changing the default name of chapters and appendixes in table of contents

I want to add the part before number of chapters and add attachment before number of appendixes in my table of contents. I use this code \documentclass{report} \usepackage[titles]{tocloft} ...
5
votes
1answer
165 views

Customize part in TOC by titletoc

I want to represent the \part in the TOC as on the figure below: The problem is the \part could be represented so simple as other headers. As you see in the MWE below, the \part design has been ...
1
vote
1answer
66 views

List of figure modified style

How can I change the style of list of figure to make it equal to table of contents as shown in the picture below ? I'm using \documentclass{article} and creating list of figure with code \listoffigure ...
2
votes
2answers
144 views

How to change locally titletoc

Please, consider this code \begin{filecontents*}{\jobname.bib} @book{ hoyningen:1993, author = "Hoyningen-Huene, Paul", title = "Recontructing Scientific Revolutions", ...
3
votes
1answer
64 views

How to specify bookmark and TOC title separately

I customize a dash symbol \newcommand{\shortdash}{\rule[.7ex]{0.5em}{0.5pt}} to minimize the space around when typesetting in non-english situation. When I used it in \section, it works in text and ...
6
votes
1answer
296 views

Beautiful table of contents with hyperref

I really don't like the red box which indicates a link. I would like to have some filled rectangle rendered which shows up when someone hovers. Obviously before the text gets rendered as you cannot ...
1
vote
1answer
63 views

Issue with page breaks before section and toc hyperlinks

I need page breaks before each \section{...} of my document. According to this thread: Start new page with each section I am supposed to add following command: \newcommand{\sectionbreak}{\clearpage} ...
5
votes
1answer
83 views

How to apply Memoir manual's fix to allow \MakeTextUppercase in toc with hyperref

There is a known conflict between the memoir class and the hyperref package. hyperref cannot process Table of Contents headings that include the \MakeTextUppercase macro. The memoir manual (texdoc ...
2
votes
1answer
62 views

Combined list of tables and figures with separate numbering?

I would like to have a list of figures and tables, together, as in this question, except that figures and tables should still have separate numbering systems. For instance, to end up with List of ...
3
votes
1answer
72 views

How to add a TOC for each section and subsection before of each section in beamer? [duplicate]

At the beginning of each section I want to add a table of content without the subsections and a table of content with the subsections. What can I do?
0
votes
1answer
75 views

Change page number of manually added TOC entry without adding blank pages

I have a main LaTeX document and an external PDF that I used to include with pdfpages (and it looks great!). But, now I want to insert TOC entries to reference sections and subsections inside external ...
5
votes
1answer
57 views

Etoc starts on a new page

I have implemented the following code. \documentclass[12pt]{book} \usepackage{etoc} \begin{document} \chapter{First Chapter} \renewcommand{\contentsname}{} \setcounter{tocdepth}{2} ...
2
votes
1answer
41 views

How to remove numbering in TOC from pdfpages

How can I remove the numbering of section of an icluded pdf on the table of contents. The picture shows what I have on the top and what I want on the bottom. I want it to appear the included pdf on te ...
2
votes
2answers
75 views

Remove section number from Table of Contents

How can I remove section numbers from the Table of Contents? My document class is article: \documentclass[a4paper]{article} \begin {document} \tableofcontents \section{one} test text number one ...
1
vote
1answer
142 views

Minitoc conflict creating aux error defcounter refsection

While compiling my book, I encountered the following error: (./Book.aux ./Book.aux:94: Undefined control sequence. l.94 ...\defcounter {refsection}{0}\relax }\@write The thing is that a simple ...
3
votes
1answer
102 views

Solved - Table of Contents: Editing Appendix Prefix

I have been struggling to fix this for a while now. I hope one of you could help me fix this tiny issue with table of contents. I want the regular chapters to have a Chapter prefix I want the ...
3
votes
0answers
119 views

Table of contents in a separate file with correct hyperlinks to many files

It's my first question here. Sorry if it doesn't follow the rules. I have: I'm writing a manual in the book class with pdflatex (MiKTeX under Linux). Each chapter is stored in a separate tex-file ...
1
vote
1answer
34 views

tableofcontents depth in revtex4-1

The revtex style files override the usual tocdepth command, so it has no effect. From a previous post I learned how to DECREASE the tocdepth: For instance, \makeatletter \def\l@subsubsection#1#2{} ...
3
votes
1answer
72 views

TOC section symbol/numbering

So I've come to the following problems while writing something in LaTeX, first, I want to have the numbering of a section of the output to be just a number not depending of the chapter. (not like ...
4
votes
2answers
80 views

Header in fancyhdr

Alright, so I'm using fancyhdr with the default options. I have some sections, where I'd like it to appear different in the TOC. This is accomplished like so: \section[test (in the TOC)]{test} In ...
1
vote
1answer
119 views

table of contents in two column different layout

I would like to get the below output in my table of contents. How do achieve this. My MWE is: \documentclass{book} \usepackage{tocloft} \makeatletter \renewcommand*{\l@section}[2]{% \ifnum ...