Questions tagged [tableofcontents]

Use tableofcontents for questions related to the programmatic creation or editing of a table of contents via an API or formatting system

References

481 questions
12
votes
1 answer

Remove specific subsection from TOC in LaTeX

Possible Duplicate: hide an entry from Toc in latex Appendix A Section 1 A.1 Subsection 1 A.2 Subsection 2 B Section 2 Is there a way to get rid of Subsection n, but still have the subsection numbered in the document (i.e. not using…
HTTPeter
  • 247
  • 1
  • 4
  • 13
11
votes
2 answers

Numbered headings and table of contents in Google Colab

Is there a way to enable numbered headings and table of contents in Google Colab? Similar question: markdown - Numbered headers in jupyter notebooks - Stack Overflow for Jupyter Notebook (which requires an nbextension). Need solution for Google…
10
votes
6 answers

Using Sphinx, how can I remove the title appearing in the side-bar's table of context?

Say my some.rst file looks like this: ============ My Title ============ 1. Section ================ 2. Section ================= After compiling, in the resulting some.html there will be a table of contents in the side bar that appears as: My…
b_dev
  • 2,568
  • 6
  • 34
  • 43
9
votes
1 answer

How to set Sphinx and latexpdf toc depth?

I have a vanilla sphinx project (Sphinx 1.2b3.) created with "sphinx-quickstart" I add a basic page.rst with 4 header levels. I can control the depth of the html toc in index.rst: .. toctree:: :maxdepth: 1 :numbered: page Based upon the…
pellekrogholt
  • 1,895
  • 2
  • 16
  • 18
8
votes
6 answers

Latex: Citations in section headings put into table of contents first

I have some citations for sections of my document that I have put in the section heading: \section{The title \cite{abc}, \cite{def}} Text I am also using the table of contents function, but Latex must look at the citations in the headings (for the…
Mark Ainslie
8
votes
1 answer

How to solve error with downloading Jupyter Notebook as HTML with toc?

When I try to download jupyter notebook as HTML with ToC, it gives a 500 Internal Server Error: nbconvert failed: toc2 I have tried to reinstall nbextensions, upgrade notebook, and tried to download notebook with the File>>Download As method and…
Elle
  • 203
  • 2
  • 8
8
votes
1 answer

How to use tocify with asciidoctor for a dynamic toc?

By default, asciidoctor creates a static toc. This is very cool but for long documents, it would be nice to if the toc could be somewhat more compact and would highlight where in the document the reader currently is. At this point, tocify comes in.…
rec
  • 10,340
  • 3
  • 29
  • 43
7
votes
3 answers

Turning an unordered list into a table of contents

Reference this fiddle: http://jsfiddle.net/exGnZ/ Hi, I'm trying to reproduce a table of contents with an unordered list and leader dots. Unfortunately, when there's a long line of content, the formatting breaks down. Does anyone know how to get…
Fred
  • 222
  • 1
  • 6
  • 11
7
votes
1 answer

How can I add a foreword or a preface before the TOC in a (pdflatex) sphinx document?

How can I use Sphinx to generate a pdflatex document in which there is some text before the table of contents? The generated LaTeX file always seems to have \tableofcontents before any document-body text. I have been unable to find any information /…
Mark
  • 3,357
  • 30
  • 31
7
votes
3 answers

Jekyll: Place the kramdown table of contents in an _include for hash navigation

I want to introduce hash links to the headings of a page into the menu of a web page. The web page is generated with Jekyll and it's default layout looks as follows: {% include head.html %} {% include…
Rovanion
  • 4,382
  • 3
  • 29
  • 49
7
votes
1 answer

Using self to create a sitemap with toctree in sphinx seem broken?

I'm updating a FAQ for a fairly big project and I would like to add an index of the questions at the top of the page, so it becomes easier for users to find what they're looking for. The Sphinx documentation toctree article states "The special entry…
Damgaard
  • 922
  • 1
  • 9
  • 17
7
votes
1 answer

How to remove the Table of Contents from the Table of Contents in WKHTMLTOPDF?

I am generating a pdf using WKHTMLTOPDF with the table of content option, but it is adding itself to the table of contents, showing that it is on page 2. Thoughts on removing this?
Adam D
  • 414
  • 4
  • 9
6
votes
2 answers

Multiple tables of contents in LaTeX

I would like to make a LaTeX document with two tables of contents, like: Contents overview 1 - Introduction 2 - Solution Detailed contents 1 - Introduction 1.1 - The problem 1.2 - Why? 2 - Solution 2.1 - Phase A 2.2 - Phase B I…
Ole Lynge
  • 4,457
  • 8
  • 43
  • 57
6
votes
1 answer

How can I specify at which level the toc will be expanded in an Rmd report?

When generating an Rmarkdown .html document, is it possible to selectivey choose the default section of the table of contents at which it will be displayed? I have an ongoing Rmd report which is updated regularly, and I would like the previous toc…
AJMA
  • 1,134
  • 2
  • 13
  • 28
6
votes
1 answer

Adding a Table Of Content to a Jasper Report?

How do I go about adding a Table Of Contents to a Jasper Report?
James McMahon
  • 48,506
  • 64
  • 207
  • 283
1
2
3
32 33