org-e-latex: Tables get correct amount of vertical space

* 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
This commit is contained in:
Myles English 2012-11-13 21:04:16 +00:00 committed by Nicolas Goaziou
parent 72a27c3b3f
commit 907110e913
1 changed files with 1 additions and 2 deletions

View 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))))))))