From: "Vikas Rawal" <vikas@e-daak.in>
To: "Fraga, Eric" <e.fraga@ucl.ac.uk>
Cc: "Max Nikulin" <manikulin@gmail.com>,
"emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Regression in latex export of tables?
Date: Thu, 02 Nov 2023 20:58:26 -0400 [thread overview]
Message-ID: <742-65444580-9-52b68800@44597412> (raw)
In-Reply-To: <87cyws4i7c.fsf@ucl.ac.uk>
[-- Attachment #1: Type: text/plain, Size: 1202 bytes --]
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.50Earlier 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
[-- Attachment #2: Type: text/html, Size: 1512 bytes --]
next prev parent reply other threads:[~2023-11-03 0:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-01 3:43 Regression in latex export of tables? Vikas Rawal
2023-11-01 7:32 ` Vikas Rawal
2023-11-01 16:41 ` Max Nikulin
2023-11-01 23:04 ` Vikas Rawal
2023-11-02 9:29 ` Fraga, Eric
2023-11-03 0:58 ` Vikas Rawal [this message]
2023-11-03 2:30 ` Max Nikulin
2023-11-03 3:01 ` Vikas Rawal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=742-65444580-9-52b68800@44597412 \
--to=vikas@e-daak.in \
--cc=e.fraga@ucl.ac.uk \
--cc=emacs-orgmode@gnu.org \
--cc=manikulin@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).