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.
41 KiB
41 KiB