From 491e61720b66318d477186736accf1297ab4f9e6 Mon Sep 17 00:00:00 2001 From: Gerard Vermeulen Date: Wed, 23 Feb 2022 17:07:03 +0100 Subject: [PATCH] Simplify setting org-latex-toc-command --- README.org | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/README.org b/README.org index ed38f10..8a1d5ae 100644 --- a/README.org +++ b/README.org @@ -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 ""))