emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Regression in latex export of tables?


From: Vikas Rawal
Subject: Re: Regression in latex export of tables?
Date: Thu, 02 Nov 2023 20:58:26 -0400
User-agent: SOGoMail 5.8.4

On Thursday, November 02, 2023 14:59 IST, "Fraga, Eric" <e.fraga@ucl.ac.uk> wrote:
 
On Wednesday, 1 Nov 2023 at 19:04, Vikas Rawal wrote:
> I am sorry, but I do not understand what are you pointing at. This is
> what I get:
>
> ----
> \begin{center}
> \begin{tabular}{ll}
> (a,b) & open interval\\[0pt]
> [0,1] & closed interval\\[0pt]
> \end{tabular}
> \end{center}
> \end{document}
> ----

I think the point is that without the [0pt], the following line's [0,1]
gets interpreted as a length parameter for the line break, \\.

--
: Eric S Fraga, with org release_9.6.6-418-g294a4d in Emacs 30.0.50
Earlier version gives me this:
\begin{center}
\begin{tabular}{ll}
(a,b) & open interval\\\empty
[0,1] & closed interval\\\empty
\end{tabular}
\end{center}
\end{document}

I have several export filters that break because of this [0pt]. For example, I use <mid> in a table row (created by an R source code) to mark wherever I want a midrule using this:

(defun org-export-midrule-filter-latex (row backend info)
  (replace-regexp-in-string "\\(<mid>\\([[:blank:]]+\\&\\)+\\)[[:blank:]]\\\\\\\\" "\\\\midrule" row))

Now my \midrule becomes \midrule[0pt].

Vikas
 
reply via email to

[Prev in Thread] Current Thread [Next in Thread]