From 905341dd905bf4d0d07e69d2da76cd5a0f5dca9e Mon Sep 17 00:00:00 2001 From: Daneel Date: Wed, 25 Feb 2026 11:16:25 +0100 Subject: [PATCH] org-latex-fix-tabularx: skip for beamer exports (use adjustbox instead) --- config.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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))