From 4145ee53d73fc42e44aeaa5618d94bb09a70e035 Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Thu, 26 Oct 2023 11:57:33 +0200 Subject: [PATCH] Build tweaks --- .dir-locals.el | 3 ++- build.el | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.dir-locals.el b/.dir-locals.el index 358e6ac..e995a93 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -15,5 +15,6 @@ ("\\subsubsection{%s}" . "\\subsubsection*{%s}")))) (org-latex-src-block-backend . 'listings) (org-latex-prefer-user-labels . t) - (org-latex-toc-command . "\\frontmatter\n\\addchap{Table of Contents}\n\\listoftoc*{toc}\n\n") + (org-html-prefer-user-labels . t) + (org-latex-toc-command . "\\frontmatter\n\\addchap{Table of Contents}\n\label{chap:toc}\n\\listoftoc*{toc}\n\n") (fill-column . 200)))) diff --git a/build.el b/build.el index 953ea58..845f71a 100644 --- a/build.el +++ b/build.el @@ -15,7 +15,7 @@ ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))) org-latex-src-block-backend 'listings org-latex-prefer-user-labels t - org-latex-toc-command "\\frontmatter\n\\addchap{Table of Contents}\n\\listoftoc*{toc}\n\n") + org-latex-toc-command "\\frontmatter\n\\addchap{Table of Contents}\n\label{chap:toc}\n\\listoftoc*{toc}\n\n") (find-file "book.org") (org-latex-export-to-latex)