org-latex-fix-tabularx: skip for beamer exports (use adjustbox instead)
This commit is contained in:
@@ -377,9 +377,11 @@ Bound to cmd+v in org-mode and markdown-mode."
|
||||
(if (= ncols 1) "Y"
|
||||
(concat "l" (make-string (1- ncols) ?Y)))))
|
||||
|
||||
(defun my/org-latex-fix-tabularx (table _backend _info)
|
||||
"Convert tabular/tabularx → tabularx{\\linewidth}{lYYY} in LaTeX output."
|
||||
(when (stringp table)
|
||||
(defun my/org-latex-fix-tabularx (table backend _info)
|
||||
"Convert tabular/tabularx → tabularx{\\linewidth}{lYYY} in LaTeX output.
|
||||
Skip for beamer exports — beamer uses adjustbox wrapper on plain tabular instead."
|
||||
(when (and (stringp table)
|
||||
(not (org-export-derived-backend-p backend 'beamer)))
|
||||
(with-temp-buffer
|
||||
(insert table)
|
||||
(goto-char (point-min))
|
||||
|
||||
Reference in New Issue
Block a user