Simplify setting org-latex-toc-command

This commit is contained in:
Gerard Vermeulen 2022-02-23 17:07:03 +01:00
parent 22129d12ce
commit 491e61720b

View File

@ -2048,14 +2048,12 @@ exporting from Org-mode to LaTeX.
(setq org-latex-title-command (concat title-page))
(make-variable-buffer-local 'org-latex-toc-command)
(setq org-latex-toc-command
(mapconcat 'identity '(""
"\\tableofcontents\\label{toc}"
"\\listoffigures"
"\\listoflistings"
"\\listoftables"
"\\newpage"
"") "\n"))
(setq org-latex-toc-command "
\\tableofcontents\\label{toc}
\\listoftables
\\listoffigures
\\newpage
")
(make-variable-buffer-local 'org-latex-subtitle-format)
(setq org-latex-subtitle-format ""))