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

LaTeX hyperref link goes to wrong page when i clicked at the content there

i would like to ask how to use the \hyperref because i've googled loads of loads of answers but i can't find. i've created my own TOC. then i included \hyperref package. Then the contents are automatically hyperlinks which is good. but then it went…
Michimcchicken
  • 543
  • 1
  • 6
  • 21
6
votes
4 answers

Generate a table of contents from HTML with Python

I'm trying to generate a table of contents from a block of HTML (not a complete file - just content) based on its

and

tags. My plan so far was to: Extract a list of headers using beautifulsoup Use a regex on the content to place anchor…

Oli
  • 235,628
  • 64
  • 220
  • 299
6
votes
3 answers

Modifying LaTeX Table of Contents to add a period after chapter/table/figure number

I need to add a period after the chapter/table/figure number in each line in Table of Contents/LoT/LoF. ie, right now it shows: TABLES 1 first 2 second but I need it to show: TABLES 1. first 2. second I know this can be done with the tocloft…
Reverend Gonzo
  • 39,701
  • 6
  • 59
  • 77
6
votes
3 answers

Non-TOC headings within a reStructuredText page

I'm writing some documentation using Sphinx. Is there a way to format headings within a page which do not become part of the TOC? Ideally with some hierarchy that is reflected in formatting? E.g. I want to do My page TOC…
gzost
  • 2,375
  • 1
  • 18
  • 25
6
votes
1 answer

doxygen @tableofcontents don not work

I am trying to use the doxygen to generate a user help, when I use the command \tableofcontents in the mainpage, nothing shows in the html output.I just don't know why, does anyone know how to use the command of tableofcontents? Some examples will…
user1416414
  • 61
  • 1
  • 2
5
votes
0 answers

How to embed images in html using nbconvert export with 'toc' and 'hide input'?

My question is an extension of this one (Combine 'toc' and 'hide input' when using nbconvert html export). The suggested solution works on Win 10 (Anaconda, Jupyter notebook) but the images are saved in a separate directory. I would like to embed…
5
votes
0 answers

Export Table of Contents from Jupyter Lab to a Cell

I work on a Jupyter Lab Notebook with the TOC (Table of Contents) extension installed (https://github.com/jupyterlab/jupyterlab-toc), which works great! However I want to export this notebook on various formats (html, pdf...) so I need the TOC to be…
virgilus
  • 141
  • 1
  • 11
5
votes
3 answers

Properly add page numbers and total number of pages to PDF using ReportLab

I am trying to create a document that has page numbering of the format "Page x of y". I have tried the NumberedCanvas approach (http://code.activestate.com/recipes/576832/ and also from the forums…
Yotam Alon
  • 138
  • 1
  • 11
5
votes
1 answer

Changing styles of TOC of Bookdown, Gitbook style

I like to tweak the styles (e.g. background-color, font) of the TOC of the Bookdown, Gitbook style HTML document. Is this possible? If so, can someone be kind enough to point me to where I can start to do this? Thank you.
5
votes
1 answer

Display TOC title as a heading (or hide it altogether) in reStructuredText

I needed a table of contents for a reStructuredText (.rst) document I was editing, so I added .. contents:: Table of Contents in the appropriate place and it works fine. Problem is, at least in GitHub's RST parser/renderer/whatever, the "Table of…
Sumit
  • 2,242
  • 1
  • 24
  • 37
5
votes
0 answers

Add an image/figure to the table of contents

I'm using the alabaster sphinx theme, and have local table of contents (TOC) on each page which automatically include my section headers. Is there a way to also include figures/images in the TOC? I'm including figures like: .. image::…
DilithiumMatrix
  • 17,795
  • 22
  • 77
  • 119
5
votes
1 answer

How to change table of content header in knitr?

I am using the following options to produce a pdf document with knitr: --- title: "Test" author: "Paulo Miramor" date: "13-07-2015" output: pdf_document toc: yes --- I would like to change the header of the table of contents (which is "Contents"),…
Paulo MiraMor
  • 1,582
  • 12
  • 30
5
votes
2 answers

How split a /tableofcontents in two or more columns?

I have a long index (outline) for a presentation. Obviosly my index exceeds the size of a presentation page. Is there a way to split a /tableofcontents in two columns?. This my code to generate the index. \begin{frame}{Índice} …
user3416588
  • 163
  • 3
  • 9
5
votes
1 answer

CSS styling a table of contents

I'm trying to replicate the following table of contents: I've gotten pretty close with the following code: http://jsfiddle.net/33Kgn/2/ .list li { position:relative; overflow:hidden; width:330px; } .list li:after { font-family:…
76987
  • 383
  • 1
  • 4
  • 14
5
votes
1 answer

Is there a way to generate document navigation using the HTML5 outline algorithm and CSS (and possibly JS)?

Is there a way to generate document navigation using the HTML5 outline algorithm and CSS (and possibly JS) like TeX can generate a table of contents? EDIT: Is there a way to display a linked outline of an HTML document without explicitly writing it?…
1 2
3
32 33