Make sure there is also a TOC in the HTML export
This commit is contained in:
parent
8681f9626b
commit
ef36710197
3 changed files with 6 additions and 11 deletions
|
@ -15,4 +15,5 @@
|
||||||
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))))
|
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))))
|
||||||
(org-latex-src-block-backend . 'listings)
|
(org-latex-src-block-backend . 'listings)
|
||||||
(org-latex-prefer-user-labels . t)
|
(org-latex-prefer-user-labels . t)
|
||||||
|
(org-latex-toc-command . "\\frontmatter\n\\addchap{Table of Contents}\n\\listoftoc*{toc}\n\n")
|
||||||
(fill-column . 200))))
|
(fill-column . 200))))
|
||||||
|
|
13
book.org
13
book.org
|
@ -18,21 +18,14 @@
|
||||||
#+LATEX_HEADER: Prof.\ Dr.\ Ir.\ Bart Mesuere\\
|
#+LATEX_HEADER: Prof.\ Dr.\ Ir.\ Bart Mesuere\\
|
||||||
#+LATEX_HEADER: Prof.\ Dr.\ Bram De Wever
|
#+LATEX_HEADER: Prof.\ Dr.\ Bram De Wever
|
||||||
#+LATEX_HEADER: }
|
#+LATEX_HEADER: }
|
||||||
#+OPTIONS: toc:nil
|
|
||||||
#+OPTIONS: ':t
|
#+OPTIONS: ':t
|
||||||
#+OPTIONS: H:4
|
#+OPTIONS: H:4
|
||||||
#+cite_export: csl citation-style.csl
|
#+cite_export: csl citation-style.csl
|
||||||
#+bibliography: bibliography.bib
|
#+bibliography: bibliography.bib
|
||||||
|
|
||||||
#+LATEX: \frontmatter
|
#+BEGIN_COMMENT
|
||||||
|
There should be a `#+LATEX: \frontmatter` here, but if I want to still be able to export to HTML, have the TOC show up in itself, change its heading and have the TOC be part of the front matter, the `\frontmatter` statement needs to be part of the `org-latex-toc-command`.
|
||||||
* Table of Contents
|
#+END_COMMENT
|
||||||
:PROPERTIES:
|
|
||||||
:CREATED: [2023-10-23 Mon 14:10]
|
|
||||||
:CUSTOM_ID: chap:toc
|
|
||||||
:UNNUMBERED: t
|
|
||||||
:END:
|
|
||||||
#+LATEX: \listoftoc*{toc}
|
|
||||||
|
|
||||||
* Acknowledgements
|
* Acknowledgements
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
|
|
3
build.el
3
build.el
|
@ -14,7 +14,8 @@
|
||||||
("\\subsection{%s}" . "\\subsection*{%s}")
|
("\\subsection{%s}" . "\\subsection*{%s}")
|
||||||
("\\subsubsection{%s}" . "\\subsubsection*{%s}")))
|
("\\subsubsection{%s}" . "\\subsubsection*{%s}")))
|
||||||
org-latex-src-block-backend 'listings
|
org-latex-src-block-backend 'listings
|
||||||
org-latex-prefer-user-labels t)
|
org-latex-prefer-user-labels t
|
||||||
|
org-latex-toc-command "\\frontmatter\n\\addchap{Table of Contents}\n\\listoftoc*{toc}\n\n")
|
||||||
|
|
||||||
(find-file "book.org")
|
(find-file "book.org")
|
||||||
(org-latex-export-to-latex)
|
(org-latex-export-to-latex)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue