Files
emacs-doom/config.el
Daneel 854a6de40a fix(org-latex): filter-based tabularx with guaranteed registration
Root cause of \begin{tabularx}{lll} error: org-latex in this version does not
add \linewidth for tabularx environment, generating invalid LaTeX.

Fix: org-export-filter-table-functions filter that transforms rendered output:
  - \begin{tabular}{spec}     → \begin{tabularx}{\linewidth}{spec}
  - \begin{tabularx}{spec}    → \begin{tabularx}{\linewidth}{spec} (missing width fix)
  - \end{tabular}             → \end{tabularx}

No buffer modification → no recursion, works on Emacs 31.

Belt+suspenders registration: with-eval-after-load 'ox-latex + explicit
require+add-to-list in org-export-before-processing-hook ensures the filter
is always registered before the export transcoder runs.
2026-02-23 15:17:15 +01:00

41 KiB