mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-29 21:07:54 +00:00
Merge branch 'maint'
This commit is contained in:
commit
a236f7d44f
|
@ -3287,8 +3287,10 @@ This function assumes TABLE has `org' as its `:type' property and
|
||||||
(plist-get attr :math-prefix)
|
(plist-get attr :math-prefix)
|
||||||
;; Environment. Also treat special cases.
|
;; Environment. Also treat special cases.
|
||||||
(cond ((member env '("array" "tabular"))
|
(cond ((member env '("array" "tabular"))
|
||||||
(let ((align (make-string
|
;; Make sure cells are always centered while preserving
|
||||||
(cdr (org-export-table-dimensions table info)) ?c)))
|
;; vertical separators.
|
||||||
|
(let ((align (replace-regexp-in-string
|
||||||
|
"[lr]" "c" (org-latex--align-string table info))))
|
||||||
(format "\\begin{%s}{%s}\n%s\\end{%s}" env align contents env)))
|
(format "\\begin{%s}{%s}\n%s\\end{%s}" env align contents env)))
|
||||||
((assoc env org-latex-table-matrix-macros)
|
((assoc env org-latex-table-matrix-macros)
|
||||||
(format "\\%s%s{\n%s}"
|
(format "\\%s%s{\n%s}"
|
||||||
|
|
Loading…
Reference in a new issue