diff --git a/config.el b/config.el index e8ffbef..407c45e 100644 --- a/config.el +++ b/config.el @@ -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))