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 [etoc]

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

4
votes
1answer
75 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 "...
0
votes
0answers
26 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
77 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
16 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
43 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
48 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
43 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
31 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
55 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. ...
7
votes
1answer
365 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
42 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.
2
votes
1answer
104 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
46 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
80 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
89 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
350 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
91 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
191 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
355 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
157 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
151 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
58 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
75 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
141 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
51 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
236 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
328 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
284 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
98 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
334 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
163 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
380 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
498 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
1k 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
810 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
185 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
614 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
274 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
268 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
326 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
719 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
272 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
463 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
147 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
1answer
419 views

Customizing titlesec-etoc (further question)

Referring to this discussion: Further titlesec-etoc customization, I've a further question. Consider the fine working code furnished to me by Gonzalo Medina: \documentclass[a4paper,11pt]{report} \...
3
votes
1answer
281 views

Further titlesec/etoc customization

I've the following code: \documentclass[a4paper,11pt]{report} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{titlesec} \usepackage{etoc} \renewcommand{\thechapter}{\scshape\roman{...
4
votes
3answers
2k 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
1answer
174 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 ...