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)