Questions tagged [etoc]

The {etoc} package allows to customize the table of contents.

Filter by
Sorted by
Tagged with
2
votes
1answer
27 views

How to correctly indent a local table of contents with etoc?

I'm using etoc to create local Table Of Contents of each chapter, but it doesn't indent it correctly. In the general TOC, it works all right, but in the local TOC, sections, subsections and paragraphs ...
2
votes
2answers
53 views

Typesetting mind map table of contents spanning over two pages, displayed on both even and odd page

in my book project, I was inspired by fantastic table of contents display as a mindmap, posted as answer in this question: Visual table of contents using tikz mindmap or similar but in my case, the ...
0
votes
0answers
42 views

Complex table of contents with 3 columns and backgroundcolor — realizable with etoc package?

I am currently working on the conversion of the production workflow from Indesign to LaTeX for a scientific open access magazine. This journal has a rather complex table of contents with 3 columns (...
1
vote
0answers
22 views

How to add entries only to specific table of contents?

In my thesis I have two table of contents. One for the main document and one for the appendices. I made both TOC with the etoc package. I added sections from my preamble to my main document's TOC. ...
4
votes
1answer
113 views

How do I recreate this two-column TOC layout with chapter goals on the left and TOC on the right

Recently I have been looking through Till Tantau's (the creator of TikZ) script on logic (see here). He uses a beautiful layout at each beginning of a chapter. So I want to recreate the little "...
2
votes
1answer
68 views

Incompatibility between etoc and mwbk

When I use the etoc package with the mwbk class, \localtableofcontents works (with errors), but \tableofcontents does not: \documentclass{mwbk} \usepackage{graphicx,xcolor} \usepackage{hyperref} \...
4
votes
1answer
85 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
20 views

Unwanted innner vertical spacing in etoc

The following setup by \etocmulticolstyle comes from example of package etoc document. What puzzles me is why by default there is so much vertical spacing(please see the attached figure) that is ...
0
votes
0answers
62 views

LaTeX Pretty TOC Issue

I tried using some code from this question: Pretty Table of Contents I've come up with a restructured code which should produce the result as shown in the image: I can get it to compile but with ...
0
votes
1answer
76 views

Local table of contents (etoc) in part title (titlesec)

I have a problem with combining titlesec and etoc, are they compatible? I want to use formating from titlesec and then after part title, on the same page, I want to add local table of contents. ...
0
votes
1answer
30 views

Titles alignements with titlesec /etoc [duplicate]

PLease, consider the following code: \documentclass[a4paper,twoside,11pt]{report} \usepackage{fontspec} \usepackage{polyglossia} \setmainlanguage[babelshorthands=true]{italian} \PolyglossiaSetup{...
2
votes
1answer
60 views

Write section-wise page range (i.e. including last page of section) to TOC (using etoc)

This question might be a bit exotic: I am writing a script for students where I reset the page count for every section and add \thesection to the page mark, e.g. page number 1.1-2. All pages are hence ...
1
vote
1answer
41 views

Separate items in local TOC by a command in the section body

In a previous question, I asked how could I get an automatically produced local TOC from an enumeration, with the TOC picking just the titles of the enumeration (this has been solved with the etoc ...
0
votes
1answer
71 views

etoc: sections as individual multicol mdframed blocks

I'm working on a two-column TOC. It's rather detailed with subsections, subsubsections, and even named paragraphs included. Of course the columns run for the whole page and restart from the next page. ...
9
votes
2answers
540 views

use Minitoc with KOMA-Script (scrbook)

I'm using the KOMAscript scrbook class together with the minitoc package. When I compile, I get the message Usage of package minitoc together (scrbook) with a KOMA-Script class is not ...
4
votes
1answer
44 views

Can one use etoc with amsart?

A question was suddenly deleted which had led me investigate if etoc was compatible with amsart. The answer is that it needs a little of tuning up.
3
votes
1answer
136 views

Remove hyperlink from table (figure) number in LOT (LOF)

Is it possible to remove the hyperlink from the table number (or the figure number) in the list of tables (or list of figures) in a way similar to that for chapters, sections and subsections using the ...
1
vote
1answer
49 views

How would I use \etocsettocsetyle to remove the header of my local TOC?

I am very new to Latex so I would appreciate if you'd explain it in simple steps. I don't want it to say "contents", I just want it to list the contents. I tried setting the font size using code like ...
3
votes
0answers
95 views

Not splitting the TOC into two columns with etoc [closed]

I've come across the strange problem that including the package etoc causes my table of contents to split into two columns. Here is a minimal working example: \documentclass{report} \usepackage{etoc} ...
1
vote
1answer
96 views

Mixing Tufte-and ETOC

For a book I would like to make use of the Tufte Layout/Template to acoomplish a look and feel as in the book 'Principles Of Biochemistry' (see image POB1). The documentclass 'tufte-book' seems to ...
3
votes
1answer
438 views

Vertical spacing and migration from minitoc to etoc

I've taken over editing a somewhat outdated internal handbook and decided to give etoc a try instead of the previously used minitoc. I'm using the standard LaTeX book class and a regular ToC with only ...
1
vote
1answer
114 views

Table of contents after parts

I use etoc package to make separate ToC for each part. I now need to put ToC at the end of each part instead of begining. Is there a way to do this? Here is my MWE: \documentclass[twoside]{scrbook} \...
1
vote
1answer
220 views

Table of Contents major restyle

I'm implementing a design created by someone who's never used LaTeX :) Most of the fancy design I've managed using some Tikz picture wizardry, but I'm now in the last few percent and just can't get ...
3
votes
1answer
463 views

Make subsection visible in local TOC only, not in Main TOC

I am writing a large article type document with a series of complex appendices in it. I have included a local table of contents with each appendix that lists the sections and subsections within that ...
1
vote
1answer
196 views

Level Specific Spacing in Table of Contents

I am trying to control the vertical spacing between entries in the table of contents. Specifically, I need Double space between major section headings and whenever changing levels and single space ...
1
vote
1answer
176 views

tocbibind package fails to add TOC to Contents, possible conflict with minitoc

I have the following LaTeX code for my thesis: \documentclass[12pt,a4paper,oneside]{book} \usepackage{verbatim} \usepackage[pdftex]{graphicx} \usepackage{fancyhdr,multirow} \usepackage{setspace} \...
1
vote
1answer
61 views

Currentsection list of theorems in scrartcl

Is there a handy way to include an etoc-like \localtableofcontents for theorems? I have multiple environments defined with thmtools in a scrartcl document and would like to have a list of theorems of ...
1
vote
1answer
83 views

Compare \etocname with string

How can I compare the content of \etocname to a string? For example to choose the color based on the section name. \documentclass{article} \usepackage{xcolor} \usepackage{xstring} \usepackage{etoc} \...
3
votes
1answer
164 views

Can I limit the scope of a ToC depth change for a local ToC? (\etocsettocdepth)

I'd like to create local table of contents that list the subsections within a section as an itemized list. To do this, I used etoc and defined a style \etocsetstyle accordingly. The problem is that ...
0
votes
0answers
55 views

Memoir, etoc, Image in Main TOC but not in Local

I would like to be able to add images to the main toc to seperate the frontmatter, mainmatter and back matter. In the following example, I have substituted these for a rule{...}, but it is my ...
2
votes
2answers
314 views

How to get table(s) of contents listed in itself (themselves) with etoc package?

Update: question precised and contextualized . Context My real use case: relies on many etoc features, among others multiple tables of contents, needs table(s) of contents listed in themselves: I ...
4
votes
1answer
345 views

Listing the Contents of a Section and Page Numbers Underneath the Section Title

I am currently using the following code to produce a document with a specific style of section title. \documentclass[11pt, a4paper]{report} \usepackage[margin=1in]{geometry} \...
0
votes
1answer
351 views

shorttoc and contents appear in headers

I have a long and complex book class document, split in frontmatter mainmatter and backmatter, and using both shorttoc for a summary in the beggining and etoc for a local TOC of th appendix. With \...
1
vote
1answer
134 views

Why does this use of etoc overwrite margins and how to get the contents correctly aligned?

I am trying to simulate default TOC using package etoc(I am happy with default TOC but I want some customizations) I came up with the following setup (see MWE 1 and screenshot 1), but it has some ...
1
vote
1answer
376 views

Multiline entries in custom toc

This is a follow up question to https://tex.stackexchange.com/a/307507/36296. The linked answer works perfectly fine, as long as each chapter title fit into a single line. For two line entries, the ...
4
votes
1answer
175 views

What to renew to change LOF/LOT links?

Consider the MWE below. I use TIKZ-customization for nice link underlines. (using renewcommand for ref), which I for this MWE replace by \textcolor{red} (so textcolor is not the goal) As you can see: ...
5
votes
1answer
432 views

Resetting chapter counter to 0 for each new part in the book document class

For reasons that may look misguided to some, there are cases where I would like to structure a documentclass{book} into parts and number the chapters of each part starting with 1. This works fine as ...
5
votes
1answer
563 views

How to control the depth of \localtablecontents in etoc

Is there a way to control the depth of what is shown by \localtablecontents, similarly to how \setcounter{parttocdepth}{.} and \setcounter{minitocdepth}{.} control the depth in the minitoc package. ...
4
votes
2answers
2k views

Positioning etoc's \localtableofcontents

I am writing a long document and want to include local tables of contests after each chapter. This is easily achieved with the package etoc and the command \localtableofcontents being introduced just ...
4
votes
2answers
967 views

etoc: How to remove the title of local table of contents and add top/bottom horizontal rules?

I would like to use package etoc for getting local toc at the start of each chapter. However, I struggle to: hide the title "Contents" add horizontal rules above and under this local toc entries ...
3
votes
2answers
195 views

Change images in custom ToC

This works: Based on the answer https://tex.stackexchange.com/a/14964/36296, I put together a MWE which might look ugly, but works fine. At any place during the document I can change the picture to ...
3
votes
1answer
689 views

Custom table of contents

I think Sakurai's Modern Quantum Mechanics table of contents is really beautiful. How can I create it in LaTeX? I tried to use etoc and tocloft but I'm new to this stuff and couldn't make any real ...
4
votes
1answer
317 views

Localtableofcontents creates empty table of contents

I found that etoc module has \localtableofcontents that creates tableofcontents only in separate section. I've tried it but it makes section for table of contents which is empty. (in result I see only ...
3
votes
1answer
300 views

Why does my custom sectioning command crash on second run when using etoc?

Finally I have narrowed down the problem to a custom definition of a sectioning command using titlesec in explicit mode. I suspect it has something to do with me not providing an adequate counter for ...
3
votes
1answer
341 views

Fix “CONTENTS” in header using etoc

I use etoc package for local TOCs to be inserted after each chaper title via \localtableofcontents command. It works fine, but it changes all chapter titles in headers into "CONTENTS" title. However ...
4
votes
1answer
810 views

Creating a List of Theorems divided into Subsections with amsthm

I want to modify the listoftheorems command so that at the end of each chapter, I can give a list of the theorems or definitions within the last chapter, and I want these divided by section (it should ...
2
votes
1answer
285 views

combine, etoc and memoir

I'm trying to get the combine class to work together with etoc. Particularly I have an article/chapter which has its own local toc. See the following chapter1.tex: \documentclass{memoir} \usepackage{...
5
votes
1answer
3k views

Insert Table of Contents in chapter

Any idea of how to create a mini table of contents (TOC) in the beginning of a chapter? Not the ordinary TOC in the beginning of the report, but a mini TOC in the beginning of a chapter (like, ...
9
votes
2answers
477 views

How to get the name of first and last section of a chapter?

I want to get the name of the first and the last section of a chapter to be printed into the table of contents for each chapter individually. Therefore I want to use the etoc-package. In the etoc-...
2
votes
1answer
161 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 \...