|
| From: | Max Nikulin |
| Subject: | Re: Regression in latex export of tables? |
| Date: | Fri, 3 Nov 2023 09:30:48 +0700 |
| User-agent: | Mozilla Thunderbird |
On 03/11/2023 07:58, Vikas Rawal wrote:
Earlier version gives me this:
\begin{center}
\begin{tabular}{ll}
(a,b) & open interval\\\empty
[0,1] & closed interval\\\empty
It was changed to avoid your inconvenience: https://list.orgmode.org/874jw2conh.fsf@posteo.net/T/#uJuan Manuel Macías. Re: Line breaks and brackets in LaTeX export. Mon, 17 Oct 2022 18:04:34 +0000
That moment there was no hope that tabularray would support \empty out of the box. Perhaps some stable Linux distribution still have its version unaware of \empty.
(defun org-export-midrule-filter-latex (row backend info)(replace-regexp-in-string "\\(<mid>\\([[:blank:]]+\\&\\)+\\)[[:blank:]]\\\\\\\\" "\\\\midrule" row))Now my \midrule becomes \midrule[0pt].
Sorry, but your have to adjust the pattern and the replacement string to allow either optional \empty or [0pt].
I still do not see a better solution that does not require substantional changes of the org-export framework.
| [Prev in Thread] | Current Thread | [Next in Thread] |