From 44bb6ef9745078eb83f9f09de797e287ec4188fd Mon Sep 17 00:00:00 2001 From: Lawrence Mitchell Date: Wed, 6 Apr 2011 14:18:58 +0000 Subject: [PATCH] org-latex: Fix export of table.el tables with captions * 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 0bd71c8fe..5135e90c9 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -1990,7 +1990,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 "")) -- 2.11.4.GIT