From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yBZLF+yHRmM3NQEAbAwnHQ (envelope-from ) for ; Wed, 12 Oct 2022 11:25:00 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 6CdwFuyHRmO1yAAAG6o9tA (envelope-from ) for ; Wed, 12 Oct 2022 11:25:00 +0200 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 C831F1222 for ; Wed, 12 Oct 2022 11:24:59 +0200 (CEST) Received: from localhost ([::1]:57532 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiXyz-0003Z6-Gf for larch@yhetil.org; Wed, 12 Oct 2022 05:24:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiXsB-0006Sc-2p for emacs-orgmode@gnu.org; Wed, 12 Oct 2022 05:17:55 -0400 Received: from mout01.posteo.de ([185.67.36.65]:33797) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiXs2-0002c5-RX for emacs-orgmode@gnu.org; Wed, 12 Oct 2022 05:17:53 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id BF466240029 for ; Wed, 12 Oct 2022 11:17:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1665566264; bh=k7J/V6zB7l1JdL27dfIOMoylxT7U5b9t5PUcVTul1RE=; h=Date:From:To:Subject:From; b=nxSU5OMgDLJAsqXSTMuCvT9HXO2s+XVJSxGmCgIFYJDvZi7wyiZ1LXWxTQWMmzP+U BxaAlZgfMul3W7cKdqdZ+QaLRUImSPeBQXzCkAfNUrDg2NSATR33SdZWRRM6FsQJCe pMVQDIQalw9zQg/v98ZBqeK+NUY/u+xYcPEL61O9Q6GKeKOoEb2gvYCB/vMKC9EWk0 QImkZdDY/Iv+69c33PAIkHk87INBpQVVSwGCH8MiZuu9sen+V8fU7aQyeJgkD1VQ/m i/gs+2LLvzFzXTbXIXZ8e+mKjAwxI9t8KKbipnTZhAViXS+kkU8nRCFE2y4YRSbe8g pfZeywrDstLyA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MnRrS2Chhz6tms; Wed, 12 Oct 2022 11:17:44 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Date: Wed, 12 Oct 2022 09:17:44 +0000 From: gerard.vermeulen@posteo.net To: emacs-orgmode@gnu.org, Emacs-orgmode Subject: Re: Export of this table fails LuaLaTeX compilation In-Reply-To: References: <784cf8be450b7d676ddd60214cc847db@posteo.net> <87zge1smmd.fsf@localhost> <7581529d3dbf83cb799b32da863de76b@posteo.net> Message-ID: <5dc57c74c7a7817440b244a374c4a50c@posteo.net> Received-SPF: pass client-ip=185.67.36.65; envelope-from=gerard.vermeulen@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665566700; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=1BFO5JAFxhlG+JSyDc1QyRJswxnzAu9opRx7h5UqhOI=; b=kyzDgHYyybxHBgOjsaDlc7JNPE64Cbd3etEjjBbGUSw5fS85D3QNDWNFACSiSdnq33YY77 j4v3AiUcOrcna3EPvnanfOL4u0nV6Uu3s1+XPhoTe5jgF2EmF1RDARrCDmiHX4Iet6DYlK o0TBQH5VxcoUqwUiLBsvQotCC9PqHJBQsS8cwG9ubFND+ZwYkzSN2xrX7ZjbdCJa1yWKw3 Q8SDfbr/thWXfovoXMRPo/qT7cOxRR1iUAGEQpuP3Fi7uToWan1ZiXgooNu315UnHZIIQT goOFBvkelrZVd7/OX0o4oLJ5+tyTSJqjQeiX1Jwfk9NwnBmt2IGSwK51qNx9pA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665566700; a=rsa-sha256; cv=none; b=KQyVYvaMWv6xcOXqqvgvHyqfBrMhBIJqhxPgg3GdWGl7yy36TBUTefAJ4yvNs+xX5EMe8a atJz269YBr7P6zU4YjSmDqJEsNKwrSmJM1es6CIjWT43CcwKuXZdzNO1R1+/6XLPg5SOiU XO5HVkwqUBeol+AzSMdOFagEnM2wI3vLN1mys3kJ5X1N4ypfGU8wMhTy7HQbG4SnXby8CO VwI1LGODhp/82IAMZVb+AYckA7MCIkJ0jy2wBXGwhTScWRib2pKYnrjRyW7hug1tCTmDGt 83dwxvkCgh65B+iCsVBKQu2iJl7ymZD7FJVWsVu912qbQoEIegsOSPYRKC8Ecw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=nxSU5OMg; dmarc=pass (policy=none) header.from=posteo.net; 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" X-Migadu-Spam-Score: -4.10 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=nxSU5OMg; dmarc=pass (policy=none) header.from=posteo.net; 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" X-Migadu-Queue-Id: C831F1222 X-Spam-Score: -4.10 X-Migadu-Scanner: scn1.migadu.com X-TUID: DK7RnCFMS0AL On 12.10.2022 07:55, Max Nikulin wrote: > On 12/10/2022 12:15, gerard.vermeulen wrote: >> On 12.10.2022 06:45, Max Nikulin wrote: >>>=20 >>> LuaLaTeX is irrelevant. It seems \hline is allowed only immediately >>> after \\. Minimal LaTeX example: >>>=20 >>> \begin{tabular}{l} >>> b\\\relax >>> \hline >>> \end{tabular} >>=20 >> Your example fails on my Mac texlive-2020 with: >>=20 >> ! Misplaced \noalign. >> \hline ->\noalign >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 {\ifnum 0=3D`}\fi \hrule \@height \arrayr= ulewidth=20 >> \futurelet... >>=20 >> l.40 \hline >>=20 >> It compiles when I remove \hline >=20 > Gerard, we forgot to post the reason why \relax has been added after > \\. The intention was to prevent errors in the case of >=20 > | a | > | [b] | >=20 > or >=20 > - item \\ > [2022-10-12] >=20 > Stewart Thomas. [BUG] Tables with square brackets do not compile in > PDF (latex) export. Wed, 10 Nov 2021 11:16:10 -0500. > https://list.orgmode.org/CAO12V+wB18nAN0FuDPAeN94GHdt_2nbdJtc4u7n4W3HAZba= ZsA@mail.gmail.com >=20 > I can not figure out an easy way to separate \\ from [b] text but to > prevent the problem you have discovered. I am unsure if >=20 > \\[0pt] >=20 > has no negative consequences and safe enough. I expect that LaTeX > sources are not easy to read when fragile sequences of tokens are > involved. >=20 > I just have realized that some users might take advantage of earlier > behavior as a feature: >=20 > - item \\ > [1cm] > - item >=20 > I think that [1cm] should be treated as text, however I have no idea > how to allow users to specify amount of vertical space and to not > limit line break to LaTeX only. @@latex:\\[1cm]@@ is not suitable when > the same text should be exported to ascii, html, etc. Max, thanks for the background information. For your info: 1. I also need to remove \relax in the LaTeX export using Gentoo=20 texlive-2022 to compile. 2. On my systems ws-butler removes the trailing whitespace. 3. I edited your example with nano to add the trailing space after=20 \relax, but it still does not compile.