org-e-latex: Tables get correct amount of vertical space
authorMyles English <mylesenglish@gmail.com>
Tue, 13 Nov 2012 21:04:16 +0000 (21:04 +0000)
committerNicolas Goaziou <n.goaziou@gmail.com>
Wed, 14 Nov 2012 14:00:36 +0000 (15:00 +0100)
* contrib/lisp/org-e-latex.el: Replaced a set of \begin{center}
  and \end{center} environment markers with a \centering
  declaration.

Using both \begin{table} and \being{center} environments leads to double
the vertical space around the float, whereas \centering adds none.

TINYCHANGE

contrib/lisp/org-e-latex.el

index 165beb3..5635c6a 100644 (file)
@@ -2302,14 +2302,13 @@ This function assumes TABLE has `org' as its `:type' attribute."
                  (concat
                   (format "\\begin{%s}%s\n" float-env placement)
                   (if org-e-latex-table-caption-above caption "")))
-               (when org-e-latex-tables-centered "\\begin{center}\n")
+               (when org-e-latex-tables-centered "\\centering\n")
                (format "\\begin{%s}%s{%s}\n%s\\end{%s}"
                        table-env
                        (if width (format "{%s}" width) "")
                        alignment
                        contents
                        table-env)
-               (when org-e-latex-tables-centered "\n\\end{center}")
                (when float-env
                  (concat (if org-e-latex-table-caption-above "" caption)
                          (format "\n\\end{%s}" float-env))))))))