Aloha Nicolas, The attached patch adds a new defcustom for the toc and listof commands that are inserted after \maketitle with the new latex exporter.
In the old exporter, the undesirable \vspace*{1cm} could be replaced with a user-defined function. The new exporter hard codes this. The patch puts this in a variable that uses the current string as a default. With the patch, the user can now do something like this: (setq org-e-latex-toc-and-lists-string "\\tableofcontents\n\\listoffigures\n\n") which I find an improvement. Thanks for your work on the exporters. All the best, Tom
>From 26eb71d6bd2d05d1a2603b32e49d18da2e58dc99 Mon Sep 17 00:00:00 2001 From: Thomas Dye <t...@tsdye.com> Date: Tue, 11 Sep 2012 15:59:35 -1000 Subject: [PATCH] * contrib/lisp/org-e-latex.el: Added a defcustom for the string inserted after \maketitle --- contrib/lisp/org-e-latex.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/contrib/lisp/org-e-latex.el b/contrib/lisp/org-e-latex.el index 17bdad9..0a60b56 100644 --- a/contrib/lisp/org-e-latex.el +++ b/contrib/lisp/org-e-latex.el @@ -329,6 +329,11 @@ argument." :group 'org-export-e-latex :type 'string) +(defcustom org-e-latex-toc-and-lists-string + "\\tableofcontents\n\\vspace*{1cm}\n\n" + "LaTeX commands to set the table of contents, list of figures, etc." + :group 'org-export-e-latex + :type 'string) ;;;; Headline @@ -1080,7 +1085,7 @@ holding export options." (when depth (concat (when (wholenump depth) (format "\\setcounter{tocdepth}{%d}\n" depth)) - "\\tableofcontents\n\\vspace*{1cm}\n\n"))) + (format "%s" org-e-latex-toc-and-lists-string)))) ;; Document's body. contents ;; Creator. -- 1.7.11.5
-- T.S. Dye & Colleagues, Archaeologists 735 Bishop St, Suite 315, Honolulu, HI 96813 Tel: 808-529-0866, Fax: 808-529-0884 http://www.tsdye.com