Browse Source

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.
Nicolas Goaziou 12 years ago
parent
commit
e0da410066
1 changed files with 7 additions and 1 deletions
  1. 7 1
      contrib/lisp/org-e-latex.el

+ 7 - 1
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.