diff options
| author | Myles English <mylesenglish@gmail.com> | 2012-11-13 21:04:16 (GMT) |
|---|---|---|
| committer | Nicolas Goaziou <n.goaziou@gmail.com> | 2012-11-14 14:00:36 (GMT) |
| commit | 907110e9133634670d31f6ca31bc0a3f4cd555ca (patch) | |
| tree | b019c1eefa5877f70fcf401fd17c99f8956a352d | |
| parent | 72a27c3b3f29414a73da17842c325c6f21f77f10 (diff) | |
| download | org-mode-907110e9133634670d31f6ca31bc0a3f4cd555ca.zip org-mode-907110e9133634670d31f6ca31bc0a3f4cd555ca.tar.gz | |
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
| -rw-r--r-- | contrib/lisp/org-e-latex.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/lisp/org-e-latex.el b/contrib/lisp/org-e-latex.el index 165beb3..5635c6a 100644 --- a/contrib/lisp/org-e-latex.el +++ b/contrib/lisp/org-e-latex.el @@ -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)))))))) |
