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
3
votes
1 answer

LibreOffice Automation - Update All

Is there a way to automate these steps? open a LibreOffice ODT update the TOC and other fields (e.g. via menu Tools|Update|Update All) save and close the document
Yimin Rong
  • 1,890
  • 4
  • 31
  • 48
3
votes
4 answers

Creating a table of contents in php

I am looking to create a very simple, very basic nested table of contents in php which gets all the h1-6 and indents things appropriately. This means that if I have something like:

content

more content

I should get: content …
TheWebs
  • 12,470
  • 30
  • 107
  • 211
3
votes
1 answer

Sphinx change table of contents HTML

I'm working on theming my documentation, and I'm trying to get sphinx to add a class to the
    elements of the Table of Contents. Unfortunately, it looks like the HTML is generated just the same as any other list. Is there a way to add a class to…
Jared Forsyth
  • 12,808
  • 7
  • 45
  • 54
3
votes
3 answers

Generate table of contents like on Wikipedia, without JavaScript

I have a page that is formatted like so:

Header

Subheader

Subsubheader

Another header

Is it possible to server-side generate a table of contents / outline at the start of the page, like Wikipedia does in its…
Maarten
  • 6,894
  • 7
  • 55
  • 90
3
votes
1 answer

Customize globaltoc & localtoc html rendering

I'm setting up a documentation using Sphinx. I precise I'm really new on this lib. My documentation can be build with one of the default theme. All works fine :) Now, I would like to customize the theme. I have updated the layout.html to follow my…
egeloen
  • 5,844
  • 1
  • 27
  • 38
3
votes
1 answer

Display (include) MediaWiki table of contents (TOC) on another page

In MediaWiki, we would like to display tables of contents (from multiple pages) on one other page. We know that this can be done automatically, e.g. if we include pages 1, 2 & 3 like this: {{:Page 1}} {{:Page 2}} {{:Page 3}} on page X, then page X…
2
votes
1 answer

How do I add a Table of Contents to every page in my Sphinx Documentation?

I'm trying to replicate how the ToC shows up in the sidebar on this page: http://matplotlib.sourceforge.net/sampledoc/extensions.html ...but I can't find any doc explaining how to or "Show Source" on the template itself. Here is the template source…
Cory
  • 604
  • 1
  • 6
  • 16
2
votes
2 answers

jQuery plugin for a JavaScript garden style table of contents?

I love the jQuery Garden table of contents. The are lots of jQuery plugins that generate an automated table of contents but are there any that provide active section highlighting and respond to the screen height like this one does?
firefusion
  • 1,087
  • 2
  • 14
  • 26
2
votes
1 answer

Using javascript instead of Sphinx's default toctree

I'm using sphinx to auto-generate html pages. The Table of Contents is really long so I'm trying to add a new html class (among other things) to the toctree's div so I can use a javascript library. Basically wanting to change how the toctree…
max
  • 2,346
  • 4
  • 26
  • 34
2
votes
5 answers

Annotated Table of Contents in LaTeX

I'd like to use LaTeX's \tableofcontents command (or some equivalent) to automatically generate a table of contents, but I'd also like to add a sentence or two to each line in the table of contents that describes what the referenced section is…
Andreas
  • 51
  • 6
2
votes
1 answer

Table of contents in PowerPoint

I need you: I should insert a dynamic index (which also updates the page number associated with the title) in my PowerPoint presentation. I have searched online but have not found any solution; the only one approaching uses a VBA macro (the code…
Daniele
  • 21
  • 1
2
votes
1 answer

How could I list the subsections in beamer (table of contens)?

Hello I trying to list the subsections in table of contents (beamer), but I can't get the result ? Anyone knows how to do it ? My code (I am using the…
Miguel
  • 55
  • 6
2
votes
0 answers

Python FPDF Internal Links Not Working on TOC Page - Generating PDF Document

Simply, I am using The FPDF library in Python to generate a PDF document including a Table of Contents. In the table of contents I want to link from the page number cell to the corresponding page in the PDF document. This is called an internal link.…
NBessmer
  • 87
  • 2
  • 9
2
votes
1 answer

How to open toc automatically when open a .ipynb file in jupyterlab?

When I open a file in jupyterlab. The left sidebar will disappear the file browser. file browser But I want to open the toc. I try to write a javascript to simulate click the toc button in sidebar, but it doesn't work. There are any configuration or…
2
votes
1 answer

Linking TOC in Google Docs, with appropriate header

I've a word document which I convert to Google Docs, but after the conversion as expected table of content break down in google docs, with no links to headers. So I am trying to build the script to loop through the TOC and search the appropriate…
vector
  • 1,032
  • 1
  • 4
  • 16