From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id eC83MGubR2ORyQAAbAwnHQ (envelope-from ) for ; Thu, 13 Oct 2022 07:00:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id MF1bMGubR2NjPgAAauVa8A (envelope-from ) for ; Thu, 13 Oct 2022 07:00:27 +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 795A61322D for ; Thu, 13 Oct 2022 07:00:26 +0200 (CEST) Received: from localhost ([::1]:34772 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiqKW-0004jQ-Ru for larch@yhetil.org; Thu, 13 Oct 2022 01:00:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58820) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiqJy-0004jH-GS for emacs-orgmode@gnu.org; Thu, 13 Oct 2022 00:59:52 -0400 Received: from ciao.gmane.io ([116.202.254.214]:57202) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiqJw-0006xE-Gz for emacs-orgmode@gnu.org; Thu, 13 Oct 2022 00:59:50 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1oiqJs-0007CL-T7 for emacs-orgmode@gnu.org; Thu, 13 Oct 2022 06:59:44 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: Export of this table fails LuaLaTeX compilation Date: Thu, 13 Oct 2022 11:59:37 +0700 Message-ID: References: <784cf8be450b7d676ddd60214cc847db@posteo.net> <87zge1smmd.fsf@localhost> <7581529d3dbf83cb799b32da863de76b@posteo.net> <877d15sds9.fsf@localhost> <87tu48tpb0.fsf@localhost> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------Q6BZTDfaG1X2xuH0I5SB2NMz" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Content-Language: en-US In-Reply-To: <87tu48tpb0.fsf@localhost> Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 23 X-Spam_score: 2.3 X-Spam_bar: ++ X-Spam_report: (2.3 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NICE_REPLY_A=-0.528, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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" 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=1665637226; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=jakgoxrAHKIthCSrpq2CYOCiv0qszhreBmXGMN7AH5E=; b=LRiO/mee46yxS9tImOu7GDxD9wGWXUL0RCCMnZgG6jMPfGrAZhedNgE6UYWtfO90aGcRpE AQOWfYO+2uZdFqwscgs2+spVXU3gGUq748vUDRgGBiGcTMT7/ucCWA+v/T6RYMthdTNIte m8MdRr9LFgNB/5MI7BWBVNs3giw7xXdTH2N6AAEAeIXqmAjVbM4YxjJfWdSVigWlbXc64m I3Bg/XcWyn1NRgGkeTctuZABHYcJCAiHFrlI9aoyCtUyYVnWccv2CQEqCCNTBgoRUEDPb2 9NKy8Ws2udZIaIeMVH7JwdIASRioJx1ZexHykopDk0+OmeUnyXtY2LUnT/f6Vg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665637226; a=rsa-sha256; cv=none; b=dsxSSxYWW+C/TL5Lu6pd46lZ6X/BlZrqu++7nhJHGedI+vYBOf2TBm+tLnO0LHESw2Hk9N tS2Y8QdUYeyqec2mbwLZ6GRrMwOgxxPEHEq2FP33zIa8DDd+ONxQUAn9YkfBFG8Sts+SYe vEkI43IDHA+EIv01FOPgqX/bs+tL+swJaJoj/5NL/QttAZWs7P6feMYQ3EWsYp+FuyIstU pLCHRyWDz4NpvlWsQoExGNzEJtOfDMQzV47/n+7LJDOU5xhN8k9E9fiWJIsb+uwXf4bPL/ Ci+0jb82eZk1+rmLD9MOv1Q4BWPM+V17O5vLvQ9kXN8kdLLmNxXTAwLcNNqoEw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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: 7.00 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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: 795A61322D X-Spam-Score: 7.00 X-Migadu-Scanner: scn1.migadu.com X-TUID: 6Z+TFVtzfFcx This is a multi-part message in MIME format. --------------Q6BZTDfaG1X2xuH0I5SB2NMz Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 13/10/2022 09:44, Ihor Radchenko wrote: > Max Nikulin writes: > >> I am considering \noalign{} instead of \relax. I was never aware of its >> effect, but accordingly to The TeXbook it should keep TeX in vertical >> mode without any action due to empty argument. (Actually I surprised >> that \relax causes any change of internal state besides parser.) > > If \noalign has less side effects compared to \relax, I'd prefer > \noalign. Can you confirm this? My understanding of TeX is not solid enough to confirm this. From The TeXbook I have an impression that \noalign is added specially for table-like blocks to be used immediately after \cr (low level command similar to \\). So I would not use it outside of tables however it may be safe. I am not aware of problems with \\\noalign{} in tables. The exact effect of \relax is not clear to me yet. I do not have an example of negative effect of \relax similar to \hline but outside of tables. I can try to ask for a better suggestion at stackexchange, but I am unsure if the question will be noticed by some person from a TeX engine or core LaTeX developers or at least with better understanding of TeX internals. >> Unfortunately \noalign{} just as \relax will not allow @@latex:[1cm]@@ >> on the next line, perhaps @@latex:\noalign{\vskip 1cm}@@ is a workaround >> to introduce additional vertical space. > > What you are talking about appears to be abusing our exporter. We give > no guarantees about how \\ is going to be exported internally into > LaTeX. We should have no obligation to keep use-cases like this. On the other hand LaTeX backend was transparent to such hacks, so the change might be breaking to some users. That is why conditionally adding \noalign{} or \relax if \\ is not followed by an export snippet may be a better solution. >> I never used \\* or \\*[10pt] variants of the command. Current stable >> release should has problems when the line next to \\ starts from * that >> is not bold marker, besides square brackets. > > I feel like I am missing what you are talking about here. The rabbit hole is deeper than I thought. The \\ command has its star counterpart \\* to prevent page break at this point, and both of them allow optional [] argument. In vanilla LaTeX2e space is allowed between \\ and *. However \usepackage{amsmath} redefines \\ command. It still can recognize following *, but only on the same line. Unsure if it is a bug or feature. So before your commit the following is not a problem in *default* Org configuration: Star\\ @@ignore:@@* on the next line. Star and brackets\\ *[1em] on the next line. | Star | | * in the next row. | |-| | Star and brackets | | *[1em] in the next row. | However it might be if someone changes list of default packages. Adding \noalign{} and \relax should fix the issue just for square brackets. So at least as a temporary fix \noalign{} should be used for tables instead of \relax to mitigate negative effect of the recent patch. P.S. Packages like longtable might bring more surprises. --------------Q6BZTDfaG1X2xuH0I5SB2NMz Content-Type: text/x-tex; charset=UTF-8; name="doublebackslash.tex" Content-Disposition: attachment; filename="doublebackslash.tex" Content-Transfer-Encoding: base64 XGRvY3VtZW50Y2xhc3N7YXJ0aWNsZX0KJVx1c2VwYWNrYWdle2Ftc21hdGh9ClxiZWdpbntk b2N1bWVudH0KXHNlY3Rpb257UmVndWxhciB1c2FnZX0KCkp1c3RcXApsaW5lIGJyZWFrLgoK QnJhY2tldHNcXFsxZW1dCm9uIHRoZSBzYW1lIGxpbmUuCgpTdGFyXFwqCm9uIHRoZSBzYW1l IGxpbmUuCgpTdGFyIGFuZCBicmFja2V0c1xcKlsxZW1dCm9uIHRoZSBzYW1lIGxpbmUuCgpc YmVnaW57dGFidWxhcn17bH0KdGFidWxhclxcClxobGluZQpUd29cXApyb3dzXFwKXGhsaW5l CkJyYWNrZXRzIFxcWzFlbV0KaW4gdGhlIHNhbWUgcm93XFxbMXB0XQpcaGxpbmUKU3RhciBc XCoKaW4gdGhlIHNhbWUgcm93XFwqClxobGluZQpTdGFydCBhbmQgYnJhY2tldHNcXCpbMWVt XQppbiB0aGUgc2FtZSByb3dcXCpbMXB0XQpcaGxpbmUKXGVuZHt0YWJ1bGFyfQoKXHNlY3Rp b257UHJvYmxlbXN9CkJyYWNrZXRzIGFuZCBzdGFydHMgZGlzYXBwZWFyIGluIHRoZSBiZWdp bm5pbmcgb2YKbGluZXMgY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