From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Mitchell Subject: [PATCH] org-latex: Fix export of table.el tables with captions Date: Wed, 06 Apr 2011 10:18:58 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=47407 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7OuH-00058o-AE for emacs-orgmode@gnu.org; Wed, 06 Apr 2011 05:20:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q7OuF-0004LT-HE for emacs-orgmode@gnu.org; Wed, 06 Apr 2011 05:20:08 -0400 Received: from lo.gmane.org ([80.91.229.12]:44711) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q7OuF-0004LG-AG for emacs-orgmode@gnu.org; Wed, 06 Apr 2011 05:20:07 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q7OuD-0008HM-VE for emacs-orgmode@gnu.org; Wed, 06 Apr 2011 11:20:05 +0200 Received: from e4300lm.epcc.ed.ac.uk ([129.215.63.156]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Apr 2011 11:20:05 +0200 Received: from wence by e4300lm.epcc.ed.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Apr 2011 11:20:05 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org * lisp/org-latex.el (org-export-latex-convert-table.el-table): Fix format-string for insertion of captions. This fixes a bug introduced in caa5da1 since when the caption itself is not placed inside the caption command. --- lisp/org-latex.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/org-latex.el b/lisp/org-latex.el index d60e174..b8be87a 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -1991,7 +1991,7 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER." (setq tbl (concat "\\begin{center}\n" tbl "\\end{center}"))) (when floatp (setq tbl (concat "\\begin{table}\n" - (format "\\caption%s{%s}%s\n" + (format "\\caption%s{%s%s}\n" (if shortn (format "[%s]" shortn) "") (if label (format "\\label{%s}" label) "") (or caption "")) -- 1.7.4.rc2.18.gb20e9