From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 4Ok3A0RJbGdBNQAAe85BDQ:P1 (envelope-from ) for ; Wed, 25 Dec 2024 18:04:52 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 4Ok3A0RJbGdBNQAAe85BDQ (envelope-from ) for ; Wed, 25 Dec 2024 19:04:52 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=AzgwT4rl; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735149892; 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: 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=nVovLUukplSrbvIM4PU413DH1+FVlMviJsAuKJMMNAs=; b=j9AAbUDdWeLhmwLU9tsQ920iclIiqmk5r7s+R+thpVThnhXFb7eN1ZDfzJ5ahbbp8B4t08 +N7YarDPJUs+cNQ7CfDpTxU83Ou42/xS4FnVzqjvQYRL9/aHalVyq7n4/n8ZGj1/14GW27 PvKlW5Ouzk+9HXVCOX9/tMRL0oC3moz3PpGzP0pGBP2/oEhucT57ceWvX4NKuAgdyQ9sHr zHR+4wNUOcwafNSnmUzd67AXzGIsiGsWPlEZsa0kCKe/XpnwOGSzQr9SZsqwo4UgEDDSRZ fQsmRNIiRin6zRFuJHoUkCkPvPJr+mMXZs7E7CGRhl9R+oj0gN6mm7kEp6cvVw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=AzgwT4rl; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735149892; a=rsa-sha256; cv=none; b=nowjVh/cQcE6Uz13gFdfcIL++YK1MIERPPrFhMXcejo1CokU9/UOWh3/MrGbNt3MxaNamM 8Gd2t3qBp2wV8LEam9p58BeYuI3RHXLOf3udJDbsPmcD3XqCGvyVXthAsnUMCDteHHwH5/ DHrFebYKEBin1sIkcpIbfaeEHWTRxVYeizhvXpGLZGpVRVeH40vozougU/a3Ux2BLbNsxP wYMiW5aEYOo63UUJpkrfIYMZcaksRZ4tfPERWKe4CdtzhjDluT5Upm68gtaHmfbzJMRjmG kKYrR9VQMykFOpdO7Q2gUVMUML3l75FtaQTubZvqZImSurXPyfqW6UpO6nftnA== 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 E9FEF64E74 for ; Wed, 25 Dec 2024 19:04:51 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQVjn-0001RC-1G; Wed, 25 Dec 2024 13:04:03 -0500 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 1tQVjf-0001Qe-63 for emacs-orgmode@gnu.org; Wed, 25 Dec 2024 13:04:01 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tQVjc-0002qg-NG for emacs-orgmode@gnu.org; Wed, 25 Dec 2024 13:03:54 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id DF3E7240027 for ; Wed, 25 Dec 2024 19:03:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1735149830; bh=rQ6NFSaJu5KukjAAbED7iDosSfo9Ms/kJ7Cq3u9tvCg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=AzgwT4rl/cYE7bsUt8gMxzoLvYspKWY3yDMrLLZtyVrkuTqcpkGa0R5dgxYtTdVXf Mev/AT9XXfzuHCGt0uV1mn0K5yoPhEq7vlC7nTpVnJI1RuNnaaG2ZLh3tL5/cs8wU0 UO3yR0/Ant+fA8FRhniIxMVPGpRG1/RpReigi+Yl3/myeigi5RZ2Y1qBRhPqkEwcLa vgr1yHbPP+sJhSXJz+c0grlFVGX3mpoIOGCdslWF53hZB7bWo02zOIWDp+LwhRd31Y qZE6K1pEiS+MSvLuawCdIMcQ4qu1khUwJyEVWUP5d516cbrTDqAoi9W2M/WwKyGKzs 1vUatcDwh+OuA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YJKPy38WNz9rxB; Wed, 25 Dec 2024 19:03:50 +0100 (CET) From: Ihor Radchenko To: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= Cc: emacs-orgmode@gnu.org Subject: Re: The less ambiguous math delimiters in tables In-Reply-To: References: <87ldw5igab.fsf@localhost> Date: Wed, 25 Dec 2024 18:05:21 +0000 Message-ID: <87r05vy6xq.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -2.98 X-Spam-Score: -2.98 X-Migadu-Queue-Id: E9FEF64E74 X-TUID: 2vfdwBWQIEbY Rudolf Adamkovi=C4=8D writes: >> It is a syntax limitation. >> Org parser is outer-inner - the table row is parsed first. >> So, | are unconditionally used as table delimiters, *before* verbatim >> LaTeX markup is recognized. > > How is that not a parser bug? > > I thought that, with the noisy \(...\) delimiters, > > the parser finally has enough information > > to not screw up. Your example shows ambiguous markup that can be interpreted in multiple ways: 1. \(x\) 2. |x| Org parser chooses one. It has to choose some. Org parser also chooses a simpler interpretation that does not require backtracking. > P.S. It is impossible to write, e.g. \|, which is vector length (norm). Yes, it is impossible. That's why I call it markup limitation. We need to improve the markup to address this known problematic scenario. --=20 Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at