org-latex-fix-tabularx: skip for beamer exports (use adjustbox instead)

This commit is contained in:
2026-02-25 11:16:25 +01:00
parent 27fb32d1da
commit 905341dd90

View File

@@ -377,9 +377,11 @@ Bound to cmd+v in org-mode and markdown-mode."
(if (= ncols 1) "Y" (if (= ncols 1) "Y"
(concat "l" (make-string (1- ncols) ?Y))))) (concat "l" (make-string (1- ncols) ?Y)))))
(defun my/org-latex-fix-tabularx (table _backend _info) (defun my/org-latex-fix-tabularx (table backend _info)
"Convert tabular/tabularx → tabularx{\\linewidth}{lYYY} in LaTeX output." "Convert tabular/tabularx → tabularx{\\linewidth}{lYYY} in LaTeX output.
(when (stringp table) 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 (with-temp-buffer
(insert table) (insert table)
(goto-char (point-min)) (goto-char (point-min))