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:
parent
72a27c3b3f
commit
907110e913
|
@ -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))))))))
|
||||
|
|
Loading…
Reference in New Issue