org-e-latex: Fixes bug introduced by commit 907110e
* contrib/lisp/org-e-latex.el: Floating tables get a \centering declaration, otherwise the table get wrapped in \begin{center} and \end{center} environment. Thanks to Andreas Leha for reporting it. TINYCHANGE
This commit is contained in:
parent
4c7dcd0830
commit
359b10b307
|
@ -2302,20 +2302,22 @@ This function assumes TABLE has `org' as its `:type' attribute."
|
||||||
(if (or org-e-latex-table-caption-above (string= "" caption)) ""
|
(if (or org-e-latex-table-caption-above (string= "" caption)) ""
|
||||||
(concat (org-trim caption) "\\\\\n"))))
|
(concat (org-trim caption) "\\\\\n"))))
|
||||||
;; Others.
|
;; Others.
|
||||||
(t (concat (when float-env
|
(t (concat (if float-env
|
||||||
(concat
|
(concat
|
||||||
(format "\\begin{%s}%s\n" float-env placement)
|
(format "\\begin{%s}%s\n" float-env placement)
|
||||||
(if org-e-latex-table-caption-above caption "")))
|
(if org-e-latex-table-caption-above caption "")
|
||||||
(when org-e-latex-tables-centered "\\centering\n")
|
(when org-e-latex-tables-centered "\\centering\n"))
|
||||||
|
(when org-e-latex-tables-centered "\\begin{center}\n"))
|
||||||
(format "\\begin{%s}%s{%s}\n%s\\end{%s}"
|
(format "\\begin{%s}%s{%s}\n%s\\end{%s}"
|
||||||
table-env
|
table-env
|
||||||
(if width (format "{%s}" width) "")
|
(if width (format "{%s}" width) "")
|
||||||
alignment
|
alignment
|
||||||
contents
|
contents
|
||||||
table-env)
|
table-env)
|
||||||
(when float-env
|
(if float-env
|
||||||
(concat (if org-e-latex-table-caption-above "" caption)
|
(concat (if org-e-latex-table-caption-above "" caption)
|
||||||
(format "\n\\end{%s}" float-env))))))))
|
(format "\n\\end{%s}" float-env))
|
||||||
|
(when org-e-latex-tables-centered "\n\\end{center}")))))))
|
||||||
|
|
||||||
(defun org-e-latex-table--table.el-table (table contents info)
|
(defun org-e-latex-table--table.el-table (table contents info)
|
||||||
"Return appropriate LaTeX code for a table.el table.
|
"Return appropriate LaTeX code for a table.el table.
|
||||||
|
|
Loading…
Reference in New Issue