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 RkaMGkV5RmM0GwEAbAwnHQ (envelope-from ) for ; Wed, 12 Oct 2022 10:22:29 +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 eLxrGUV5RmO/HwEAauVa8A (envelope-from ) for ; Wed, 12 Oct 2022 10:22:29 +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 D34719AEF for ; Wed, 12 Oct 2022 10:22:28 +0200 (CEST) Received: from localhost ([::1]:52674 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiX0V-0003kh-I0 for larch@yhetil.org; Wed, 12 Oct 2022 04:22:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43230) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiWzE-0003h1-NB for emacs-orgmode@gnu.org; Wed, 12 Oct 2022 04:21:08 -0400 Received: from ciao.gmane.io ([116.202.254.214]:49414) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiWzD-0002dL-9j for emacs-orgmode@gnu.org; Wed, 12 Oct 2022 04:21:08 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1oiWzA-0007Rk-44 for emacs-orgmode@gnu.org; Wed, 12 Oct 2022 10:21:04 +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: Wed, 12 Oct 2022 15:20:57 +0700 Message-ID: References: <784cf8be450b7d676ddd60214cc847db@posteo.net> <87zge1smmd.fsf@localhost> <7581529d3dbf83cb799b32da863de76b@posteo.net> <877d15sds9.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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: <877d15sds9.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: 0 X-Spam_score: -0.1 X-Spam_bar: / X-Spam_report: (-0.1 / 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=-2.934, 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=1665562948; 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; bh=N91gBTEDD6YI0iRIfGzA61ck0n1VMvUg0ODBwT+jDNI=; b=n/XGkBh9ZYTFS1URtKETYqo/4CLmDfosH9tphtCg8a5VqV4PbRjjdDw6Ud7M1qaZ1X+1UD x3NOC8mk3tC0ltXMSSL0Vupso/Gz/PZWPe7688AfLHn8oOdNt5pNbMz28GlMyHzdz6KR/M jOGFmAvHcUPK0JkIBJej7kkmmCCrcs8e+lR1+Uzr4c+SbqB1VbJ5lHvtjJZJfeicUuaVkm hvHSbVHrq4qTdKsoFajpcARE273XJH/fEY0jjUqIpBWhqMbTZYTcTgycWV4vVK7VIEuGA0 UvmybUd2rQqNbHxyvhWqcLetU0/3+m4HkMKJTLYAjry60dbX82yeXrD04H9gPQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665562948; a=rsa-sha256; cv=none; b=dMUJmQEsMpzMLTT79SBhQ3IyfvAsqndDjezwDL2LQSOWn154Vo3qnygraBC5DT3syRYA2Q 1v+6FaOsKTPmTOO+wvY6tK14sY9n8WTCNbw3VjWGfY1NAxKfWuR5lNpVyaESDUISg/5zSS XqTw2DVihQ3L5fmyWuJdRBA2RhpcM+NC/pYGdFfGX5Qzu9BskN1Qz2J4YxLLs3KsO5k7Ir wsOhJn06hgwMz+UM7Q1ZnbWDJv/PwLKuluuVCe7hKs3LkzJC2e6qnJO0bj/f1+otMePpuH wky13rMnMfMuJ3aDf0+2PQjer89qBia4aydwigvvNFhx7A8IMVCeki21PRaD4w== 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: 2.80 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: D34719AEF X-Spam-Score: 2.80 X-Migadu-Scanner: scn1.migadu.com X-TUID: 4D1VD+ves6Yo On 12/10/2022 14:26, Ihor Radchenko wrote: > Max Nikulin writes: >> >> 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 >> >> \\[0pt] >> >> has no negative consequences and safe enough. I expect that LaTeX >> sources are not easy to read when fragile sequences of tokens are involved. > > What about adding \relax in front of table rows instead of at the end? > The hlines are transcoded separately. > > All other instances of \\\relax may remain. If you see a way to implement it, you may try. Do not forget a space after it. Spaces at the beginning of line are insignificant, so insertion of \relax should not cause more ignored spaces than it was before. I would consider skipping "\relax " in the beginning of rows where first cell starts from an export snippet. 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.) 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. \\[0pt] causes insertion of some code for negative vertical skip (of zero height this case). It should not be really harmful, but I would avoid this hack. 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.