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
5
votes
4 answers

Jekyll automatic table of contents

I have built a website based on the Jekyll code for the website for Apache Buildr. The Buildr website automatically generates a table of contents for each page based on the headers in the textile format files. For example, you write a page using…
learnvst
  • 15,455
  • 16
  • 74
  • 121
4
votes
1 answer

mkdocs - How can I specify toc_depth for a single document?

I want to change the depth of the number of headers the table of contents present on the TOC. I can see toc_depth option exists as a configuration option but this is global. Is there a way to specify a single document? Cheers
Ariel
  • 529
  • 2
  • 13
4
votes
2 answers

How to keep TOC visible on side when scrolling down?

I am attempting to use the built-in theme 'sphinxdoc' for my reStructuredText documentation that's being built with Sphinx for deployment on readthedocs.io. This works as I was hoping except for the behavior of the table of contents, which stays at…
4
votes
0 answers

How to add Python Module Index to Sphinx TOC?

I have a python project that I am attempting to document using Sphinx. I am using. extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.viewcode', 'sphinx.ext.napoleon', 'sphinx.ext.intersphinx', ] html_theme = 'alabaster' I would like…
Andrew Hoos
  • 1,510
  • 2
  • 15
  • 23
4
votes
2 answers

RMarkdown with knitr to HTML: How to hide bullets in TOC (table of contents)?

How can I suppress the bullet points in front of the TOC items in the created HTML file? I want to see only the headline numbers... Example Test.Rmd file: --- title: "Untitled" author: "Author" date: "01/25/2015" output: html_document: …
R Yoda
  • 8,358
  • 2
  • 50
  • 87
4
votes
2 answers

Update existing table of contents - Apache-POI | Word SDK | Other api

Is it possible to update an existing toc with apache poi/Word SDK/ other api's? Or is there a workaround for it? E.g. removing the old toc then grabbing all headlines and adding them to the new toc or inserting them into the right place without…
codewing
  • 674
  • 8
  • 25
4
votes
1 answer

LaTeX adjusting space in toc items

I am struggling with custom toc items added via: \addcontentsline{toc}{section}{Some text here} Actually my problem is that I need to add some items which contain chronological date periods like: 12/1/2005 - 3/3/2006 Some…
ovanes
  • 5,483
  • 2
  • 34
  • 60
4
votes
3 answers

Table of Contents with dotted underline in html

I'm trying to create a table of contents in html in the form of Introduction.................................1 Heading 1....................................1 Heading 2....................................2 Now I'd like the ... to go from the last…
Daniel Powell
  • 8,143
  • 11
  • 61
  • 108
4
votes
2 answers

How to post Stata program via Dropbox or private website?

Here is a sample program .do file, sampleprog.do: program sampleprog egen newVar = group (`1' `2') end How can I post it on my website (or dropbox), so that other people could install it to their Stata like this? net from…
Buras
  • 3,069
  • 28
  • 79
  • 126
4
votes
1 answer

Merge existing PDF files into a single file, and add a clickable TOC [Reportlab, Python]

I'm trying to merge several existing PDF files into a single one. The tricky part comes when trying to add a table of contents that link to the first page of every merged pdf file. I tried to generate a separate pdf with a ToC and then merging with…
stackex
  • 643
  • 10
  • 11
4
votes
2 answers

List functions in table of contents in Sphinx

How can I list functions, classes, etc... to show up in the table of contents in Sphinx? Or, more generally, how can I add arbitrary entries within a page (not subtitles) to the table of contents? BTW: I'm not documenting Python code, so I can't use…
ramcdougal
  • 2,307
  • 1
  • 13
  • 24
4
votes
3 answers

Add table of contents to RTF document

I am trying to generate a RTF document by hand and eventually will do it programtically. I plan to improve pyRTF so that it can generate "Table of contents", which I think it can't. I am not able to use RTF controls words (\tc, \tcf and \tcl.) to…
Anurag Uniyal
  • 85,954
  • 40
  • 175
  • 219
4
votes
2 answers

How to start new line after paragraph title in Lyx?

I am using the Lyx document processor for LaTeX. I need to use the Paragraph environment (because I have Subsubsubsections), and I want the paragraphs to appear in the Table of Contents. I managed to get the Paragraph to appear in the TOC by…
Rachel
  • 1,722
  • 8
  • 29
  • 34
3
votes
2 answers

Update TOC in .docx document using DocumentFormat.OpenXml (C#)

I create new word document using DocumentFormat.OpenXml. I load template document in which located the table of content and the table with picture logo. I append other content using c# code for this template. I send this document to user. When user…
Aishi
  • 51
  • 2
  • 6
3
votes
1 answer

how to create table of contents with quill js

Is there any way to automatically list header tags as a table of content (TOC) in quilljs? I searched it but couldn't find anything useful. One can add id to header tags with the folloing code but how to create links to them? let Header =…
Mahdi
  • 664
  • 3
  • 15
  • 35