From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id OBX+JwRGRGW3HgEAauVa8A:P1 (envelope-from ) for ; Fri, 03 Nov 2023 01:59:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id OBX+JwRGRGW3HgEAauVa8A (envelope-from ) for ; Fri, 03 Nov 2023 01:59:48 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 492425BA94 for ; Fri, 3 Nov 2023 01:59:48 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=e-daak.in header.s=dkim header.b=jo29TlAa; dmarc=pass (policy=quarantine) header.from=e-daak.in; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1698973188; a=rsa-sha256; cv=none; b=DCxkHCz+7cV8UWEk2JWJxUwXeqCzo9qsL1GtDlJDt9ojDyURQtZVB9Xo6FyjWftK2FFL8/ BEeQ2aNMLx1gx0huKHzzxKLUBjXwKuPVJyDtKgeV66wjM7JP0BAhrgb0FhfHv+0NBC6IDI 9xlk+H5JKhb1MiwXKsMBbTut5mnIubwR2dU5bHVM6uEOiqrl9/HmX00YABfo8WNcYB3hwy qxJhmqZcOfZCNoAm0LZHtTAQNUh87KDaGJ6VhtQUTwRH5x3e7hlnCz4k3FXZE74kSo6lNm xjprIm41g17H6NTufwbS/k2ZrO7zHFrvSYee5GZbPtjMCD/z7aTNpaX1X0SO3Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=e-daak.in header.s=dkim header.b=jo29TlAa; dmarc=pass (policy=quarantine) header.from=e-daak.in; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1698973188; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=BtOIxZewK25d0shv4k1EqA/ZFp2tu24JuWGkI4LDAqM=; b=eT/JVub+SFQKEpqqRzbA55/4BweEMhR9gv9wb7sI+TQe5fqm2jqSA9XIB7DIM/cELSUG6c zNj4i2aLKsd/HfGvBhrQQIggaBZWTIE5YwmTzDS26lCsrIEQ7fVAkMIEkaEqoMDhQK6v3x tu7OKID+/5zA7p3FGByMMqPAAAakPkWJk8kVlWoc8uYRsZjI1jW5SKyTDNsZRE9AHJrG2Y eY/z3t2azi/0BWATj/d6ay9FYcvyMmlCe8JTM8HD+sDTSGSYYQWg0fEAoBfWm/0KcJB5Fz M6AVNYIHN+W8aFYuU+H11CzIP+KVNP9v+PfNvZWWfphDO2fV0gCgyAsOqlmWWA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qyiWL-0006L2-Aj; Thu, 02 Nov 2023 20:58:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qyiWI-0006Kg-Hc for emacs-orgmode@gnu.org; Thu, 02 Nov 2023 20:58:42 -0400 Received: from [103.153.253.41] (helo=mail.e-daak.in) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qyiWG-0007gB-R5 for emacs-orgmode@gnu.org; Thu, 02 Nov 2023 20:58:42 -0400 Received: from mail.e-daak.in (mail.e-daak.in [127.0.0.1]) by mail.e-daak.in (Postfix) with ESMTP id 4SM2Rl5pDZzyTt for ; Fri, 3 Nov 2023 06:28:27 +0530 (IST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=e-daak.in; h= user-agent:subject:message-id:mime-version:to:date:content-type :in-reply-to:from; s=dkim; t=1698973107; x=1701565108; bh=BtOIxZ ewK25d0shv4k1EqA/ZFp2tu24JuWGkI4LDAqM=; b=jo29TlAa1E0gX5p+LNhsPX f74RyCI9pWrp8eeAbjpowQu1eEncW0rK/UxlMHf9Xat0E7Hmp6XN5BF0dbcWOLnU Ht/v7hXZlxZZFfy+wdakf78UWw3ylsnyhzZmkVno28QJEKEkUl97PWs31PhFdwFl 2OhD+SuiIX+F8IzUOw6Vx0+6SJN9Au7ZlhnHn7ow6eyX4d074A4AtAMcztVUhlz2 rx40o22YrBeSEzwFvGqDrHZFHH8aXhsdHWKp7sEKvFxEKjzC5BBHx0HCQ7YdkBjO eHMRRpquHnEyrc2G7s1c1sjBarz3XULK2rUH/0PORXLyWBDiZzarmuHu5BBDrg8Q == X-Virus-Scanned: Debian amavis at sser.org.in Received: from mail.e-daak.in ([127.0.0.1]) by mail.e-daak.in (mail.e-daak.in [127.0.0.1]) (amavis, port 10026) with ESMTP id c3Bu_9lI1zTY for ; Fri, 3 Nov 2023 06:28:27 +0530 (IST) Received: from mail.e-daak.in (mail.e-daak.in [127.0.0.1]) by mail.e-daak.in (Postfix) with ESMTPSA id 4SM2Rl0J3czyTs; Fri, 3 Nov 2023 06:28:26 +0530 (IST) From: "Vikas Rawal" In-Reply-To: <87cyws4i7c.fsf@ucl.ac.uk> Content-Type: multipart/alternative; boundary="----=_=-_OpenGroupware_org_NGMime-1858-1698973106.757463-4------" X-Forward: 45.127.136.71 Date: Thu, 02 Nov 2023 20:58:26 -0400 Cc: "Max Nikulin" , =?utf-8?q?emacs-orgmode=40gnu=2Eorg?= To: =?utf-8?q?Fraga=2C_Eric?= MIME-Version: 1.0 Message-ID: <742-65444580-9-52b68800@44597412> Subject: =?utf-8?q?Re=3A?= Regression in latex export of =?utf-8?q?tables=3F?= User-Agent: SOGoMail 5.8.4 X-Host-Lookup-Failed: Reverse DNS lookup failed for 103.153.253.41 (failed) Received-SPF: pass client-ip=103.153.253.41; envelope-from=vikas@e-daak.in; helo=mail.e-daak.in X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 492425BA94 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -5.26 X-Spam-Score: -5.26 X-TUID: AC0lLrmczz8i ------=_=-_OpenGroupware_org_NGMime-1858-1698973106.757463-4------ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Length: 1192 On Thursday, November 02, 2023 14:59 IST, "Fraga, Eric" wrote: =C2=A0On 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=5F9.6.6-418-g294a4d in Emacs 30.0.50Ea= rlier 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 exa= mple, I use 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) =C2=A0 (replace-regexp-in-string "\\(\\([[:blank:]]+\\&\\)+\\)[[:b= lank:]]\\\\\\\\" "\\\\midrule" row)) Now my \midrule becomes \midrule[0pt]. Vikas =C2=A0 ------=_=-_OpenGroupware_org_NGMime-1858-1698973106.757463-4------ Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Length: 1579 On Thursday, November 02, 2023 14:59 IST, "Fraga, Eric" <e.fra= ga@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 point= ing at. This is
> what I get:
>
> ----
>= ; \begin{center}
> \begin{tabular}{ll}
> (a,b) & op= en interval\\[0pt]
> [0,1] & closed interval\\[0pt]
&g= t; \end{tabular}
> \end{center}
> \end{document}
&= gt; ----

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

--
: Eric S Fraga, with org release=5F= 9.6.6-418-g294a4d in Emacs 30.0.50
Earlier version gives me= this:
\begin{center}
\begin{tabular}{ll}
(a,b) & op= en interval\\\empty
[0,1] & closed interval\\\empty
\end{= tabular}
\end{center}
\end{document}

I have severa= l export filters that break because of this [0pt]. For example, I use &= lt;mid> in a table row (created by an R source code) to mark whereve= r I want a midrule using this:

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

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

= Vikas
  ------=_=-_OpenGroupware_org_NGMime-1858-1698973106.757463-4--------