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

Including \lstlistoflistings and reference it in the table of contents

I have a question about including a directory for listings in my table of content. I'm using \lstlistoflistings and \tableofcontents and the \usepackage{listings}. Now my question: When I generate the list of listings, it is filled with the…
Pyrmon55
  • 183
  • 1
  • 3
  • 14
3
votes
0 answers

pandoc 2.1 YAML metadata and table-of-contents in docx

I'm wondering if there is ant way to have the title page, author details, and , that is set in the document YAML metadata block. Ideally, I would want the title page and author details on the first page, the on the second page, with a level 2…
Atanas Janackovski
  • 348
  • 1
  • 2
  • 12
3
votes
1 answer

Rmarkdown TOC links (internal to document) don't work

When I create an html Rmarkdown that includes a TOC, the links only work as long as the html file is on my drive. As soon as I publish or share it, the links break because they are hardcoded to the document on my drive. Is there a way around this?…
val
  • 1,629
  • 1
  • 30
  • 56
3
votes
1 answer

Formatting unnumbered chapters in TOC

I have a document with both numbered and unnumbered chapters. To distinguish them from each other in the TOC I would like the unnumbered chapters to be in italic. My MWE works on the chapter title - how can I format the corresponding page number in…
user2568648
  • 3,001
  • 8
  • 35
  • 52
3
votes
2 answers

Parsing restructured text in django (and python)

I'm going to manage some documentation using Django (I come from Sphinx) in order to have more control on the output. The docs are in rst (restructured text) in a git archive, and it's trivial to display them in HTML using a filter. My problem is…
eaman
  • 1,129
  • 1
  • 8
  • 10
3
votes
1 answer

Listing local sections first, linked pages last in TOC

Let's say I have the following index.rst: Some global topic ===================== .. toctree:: :glob: nested/index Global topic introduction ------------------------ And nested/index.rst: Some sub-topic ============== I want TOC to be…
EugZol
  • 6,476
  • 22
  • 41
3
votes
1 answer

How can I remove x-webdoc from emails using Drupal table of contents links?

I am creating newsletters using the Drupal simplenews module. I am using the tableofcontents module. However, on some clients (mostly Mac) the links don't work because they use x-webdoc. Can anyone suggest how I can get standard links?
PatriciaW
  • 893
  • 1
  • 12
  • 30
3
votes
1 answer

How to target a TOC after generating via inDesign's createTOC function

I'm trying to target a table of contents object that is generated by inDesign's createTOC function. I am successfully generating the object, but I can not set any kind of identifier properties like tocTF.name = "myToc" When I examine it in the Data…
Uncle Slug
  • 853
  • 1
  • 13
  • 26
3
votes
0 answers

How to display a sidebar TOC for all parts in Sphinx

Maybe it is just me, but I often have a hard time to understand and navigate Sphinx based documentation, because the Table Of Contents only shows the structure of the current page (in the standard themes at least). There is also a previous and…
mar10
  • 14,320
  • 5
  • 39
  • 64
3
votes
1 answer

Latex: tableof contents only for a section

As it is a looong appendix, I would like to add a "tableofSECTION" on the first page of the section. However, tableofcontents always lists everything and the level is - as far as I can see - only defined as a "to" variable, but not "from". What I…
jorgusch
  • 2,151
  • 2
  • 15
  • 13
3
votes
2 answers

Summary or toc for autoflask Sphinx

We use Sphinx to document our Flask API. It does a pretty good job, but we are having a problem navigating the documentation it generates. We document each blueprint separately. Our blueprints are pretty big. Each is about 1000 lines long, and our…
melchoir55
  • 6,842
  • 7
  • 60
  • 106
3
votes
2 answers

Hide an entry from the TOC (table of contents) in Jekyll

I have a site that has a lot of markdown files sorted into appropriate folders. Jekyll creates their HTML versions and the TOC (table of contents) automatically. In the _config.yml file I can rename some folders, rearrange them (e.g., if I don't…
rdmptn
  • 5,413
  • 1
  • 16
  • 29
3
votes
1 answer

Customizing the table of contents with two colors in Latex

In my document I want to use two colours in table of contents to differentiate the work between two authors. For instance, The chapters, sections and subsections coloured in blue are written by author X and in red colour are written by author…
Dheeraj
  • 43
  • 1
  • 1
  • 3
3
votes
5 answers

Using table-of-contents in code?

Do you use table-of-contents for listing all the functions (and maybe variables) of a class in the beginning of big source code file? I know that alternative to that kind of listing would be to split up big files into smaller classes/files, so that…
AareP
  • 2,355
  • 3
  • 21
  • 28
3
votes
3 answers

Ghostscript Merge pdf and create table of content page from merged files

I would like to generate a PDF file with a table of content based on the merged files. Let's say that I have these files: 1.pdf, 2.pdf and 3.pdf. I would love to create a fourth PDF file containing the list with internal links to the different…
Ariel
  • 151
  • 2
  • 4