summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2012-09-12 16:29:30 +0200
committerNicolas Goaziou <n.goaziou@gmail.com>2012-09-12 16:29:30 +0200
commite0da410066b90fd4fa23e495afd517e7319a6a69 (patch)
treeefdb48952d5b0438bc8b5361756c8a5c60891e0e
parent1f41f08777bbd1a297b007f76665d5c24c86d774 (diff)
downloadorg-mode-e0da410066b90fd4fa23e495afd517e7319a6a69.tar.gz
org-e-latex: Allow to customize table of contents command
* contrib/lisp/org-e-latex.el (org-e-latex-toc-command): New variable. (org-e-latex-template): Use new variable. Thanks to Thomas S. Dye for providing the patch.
-rw-r--r--contrib/lisp/org-e-latex.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/contrib/lisp/org-e-latex.el b/contrib/lisp/org-e-latex.el
index 6c666e8..090d22a 100644
--- a/contrib/lisp/org-e-latex.el
+++ b/contrib/lisp/org-e-latex.el
@@ -329,6 +329,12 @@ argument."
:group 'org-export-e-latex
:type 'string)
+(defcustom org-e-latex-toc-command "\\tableofcontents\n\\vspace*{1cm}\n\n"
+ "LaTeX command to set the table of contents, list of figures...
+This command only applies to the table of contents generated with
+toc:nil option, not to those generated with #+TOC keyword."
+ :group 'org-export-e-latex
+ :type 'string)
;;;; Headline
@@ -1080,7 +1086,7 @@ holding export options."
(when depth
(concat (when (wholenump depth)
(format "\\setcounter{tocdepth}{%d}\n" depth))
- "\\tableofcontents\n\\vspace*{1cm}\n\n")))
+ org-e-latex-toc-command)))
;; Document's body.
contents
;; Creator.