From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: [PATCH] New variable for the new latex exporter Date: Tue, 11 Sep 2012 16:19:22 -1000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBcY5-0005iq-Gq for emacs-orgmode@gnu.org; Tue, 11 Sep 2012 22:19:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TBcY4-0003vh-BM for emacs-orgmode@gnu.org; Tue, 11 Sep 2012 22:19:29 -0400 Received: from oproxy9.bluehost.com ([69.89.24.6]:44209) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1TBcY4-0003vZ-1K for emacs-orgmode@gnu.org; Tue, 11 Sep 2012 22:19:28 -0400 Received: from [72.253.144.27] (port=59739 helo=poto.myhome.westell.com) by box472.bluehost.com with esmtpa (Exim 4.76) (envelope-from ) id 1TBcY0-0008B9-D2 for emacs-orgmode@gnu.org; Tue, 11 Sep 2012 20:19:25 -0600 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org-mode --=-=-= Content-Type: text/plain 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 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-contrib-lisp-org-e-latex.el-Added-a-defcustom-for-th.patch Content-Description: Patch for org-e-latex.el >From 26eb71d6bd2d05d1a2603b32e49d18da2e58dc99 Mon Sep 17 00:00:00 2001 From: Thomas Dye 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 --=-=-= Content-Type: text/plain -- 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 --=-=-=--