From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GHDlI45c8mHgggAAgWs5BA (envelope-from ) for ; Thu, 27 Jan 2022 09:49:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wFOnHI5c8mHLoAAAG6o9tA (envelope-from ) for ; Thu, 27 Jan 2022 09:49:18 +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 05C5A2AFFD for ; Thu, 27 Jan 2022 09:49:18 +0100 (CET) Received: from localhost ([::1]:58992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nD0Sz-00070w-1t for larch@yhetil.org; Thu, 27 Jan 2022 03:49:17 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56910) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nD04U-0006YZ-QK for emacs-orgmode@gnu.org; Thu, 27 Jan 2022 03:24:02 -0500 Received: from [2a00:1450:4864:20::134] (port=42563 helo=mail-lf1-x134.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nD04S-0005J3-Mt for emacs-orgmode@gnu.org; Thu, 27 Jan 2022 03:23:58 -0500 Received: by mail-lf1-x134.google.com with SMTP id y15so3773872lfa.9 for ; Thu, 27 Jan 2022 00:23:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=f3p7whvvHkhmzysv2rpP0dQJo+y9OCgF4llPWiZ1/lc=; b=db1XqQz/nHAwJzlysTmt8fmjzY2Nx3+x3KXswLGAY3GJ6FDUuN3khmVo2TPYkzAVc2 W48h3HaAIhthfIifWEcNVlW8s9YJWqTG8Eye6AAXeKHO4lQ4VAe/6HDM/QS0idVAcSpf 9P44UyDLh2C8uHUoYp21E96RC65GJZyxC7UOd+BsbVeCb8FhGDdKFGyPdwCZ4wPHfFdj usEcCWdwqZ13xd2yZ+we62DMfWubHxLMzdbunwdk/6ZCKzkA69gSVDMMz89DCmOu9OEE yw8XEAzy9pRwuP5627H2Qie1QmtMvsIg9FnIyhUyD4DiIQzHCMMUI9RJGl71PL8vEZ04 9maQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=f3p7whvvHkhmzysv2rpP0dQJo+y9OCgF4llPWiZ1/lc=; b=nkDFTnRnJDmgO56c51tG8R5fMrjQmIwYscQOp5ieyH/f3fIzMKAd2A38KoOYmpkWLO aqnIqm1jmTJe3KgXLBvsQvNG+5+SNmCgNaLWhonM/LKdYdbgU3OPak0TolelQX7IU7Pe hA6UaMlEZw5DsdXLL6CeMGFPtZ0yctJfokuczMzvipTq4e05r4glcn4eGrdNGtPZZzIK 4fItBlT+XZO+zWsYN/fOVsmnf9O6+giE4WrJK2GSuVf50sO0CQZD7s+cPNq3w8PqvgKG hghDjkcQ0mTUAAvsEJkWTbtMl9taPMWJMDjXGsqvU4eMJlvKLO4ydQnowCPpYZBArpeP z6qg== X-Gm-Message-State: AOAM532WyC0ZUnYorHniRSLDfeltpwvKDaTSVv1SAwL51oDRk/LxX9d9 yEBv14E2SY3bikfGNp+NRUc= X-Google-Smtp-Source: ABdhPJxFe+2eA4XuhxpYYcWj60IR3j59/exAF7pjZot3yeJz/vGmeQldVoPksB0UpPBJ9ZAEXYmmlg== X-Received: by 2002:a05:6512:4021:: with SMTP id br33mr2153501lfb.145.1643271827287; Thu, 27 Jan 2022 00:23:47 -0800 (PST) Received: from localhost ([91.210.107.150]) by smtp.gmail.com with ESMTPSA id y36sm1778514lfa.82.2022.01.27.00.23.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jan 2022 00:23:46 -0800 (PST) From: Ihor Radchenko To: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= Subject: Re: [PATCH] Add support for =?utf-8?Q?$=E2=80=A6$?= latex fragments followed by a dash In-Reply-To: References: <874k5si6zh.fsf@ucl.ac.uk> Date: Thu, 27 Jan 2022 16:28:10 +0800 Message-ID: <87r18t7fc5.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::134 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::134; envelope-from=yantar92@gmail.com; helo=mail-lf1-x134.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, 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: , Cc: =?utf-8?Q?S=C3=A9bastien?= Miquel , emacs-orgmode , Eric S Fraga 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=1643273358; 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=f3p7whvvHkhmzysv2rpP0dQJo+y9OCgF4llPWiZ1/lc=; b=kLjHYdmuICx8rX5HYQRbxogir+6nlzDtb/2VVBHimVHhaz62FolxbmJc5oHFqHcnhW2IhQ 5AcXLmWP0nH/y9Z2+EzXLsl1HUWn5XWNd/uAePPVwUJ33lV/Gy1JPhG8hOPyq6lJdsk7V7 45idp59BYG43yzLPW/vxEINA7NVH+f75aQFfT6TNROKFWEYWrZh9xeLKZKrZC3Bb3UzfFB tefv1LdgokHPQqQaa9+9kkko+AXBKw0Rd4sc9feNX8dmXciOrCtmWTRohb6yxhzpdtap+t zF99mOQYTKH6pGDM4sKwXBz1to4tBEGFNBN3T9l1J7cJRko7ndR3Qoj3xSSIww== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643273358; a=rsa-sha256; cv=none; b=s3HpPePdv/ieuJJL7cmUhq/UuTfHozkuzFxvUpHaJvCV1duhsjmGbqOA2C+2JIU5F7bVet 727FbAgpp/t28uwz+4dr0VmGuLMnJmlkrKRV3tbD8BFuFXQEcfzoMlr9h+ijyvULWgrVMM 2HToBGhON65s1p1vnnYv46MOB5YQ5QIDRgQFZ0WigpdeDpUFvTOh2/S8fPetgDwrH7lZvB GOn9hA1Tl3CigfD50X5SqNk0T+ST8vt8wbyAGDddz9bgz2Fw6VHv6K2m/oXRyKu59ZMQbC wcdGcXMlp74R5KKRRfCHxcBULoRfB6zlZliuilgdFyllk4Mdnlyl0+vRB+7vUw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="db1XqQz/"; dmarc=fail reason="SPF not aligned (relaxed)" 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: -1.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="db1XqQz/"; dmarc=fail reason="SPF not aligned (relaxed)" 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: 05C5A2AFFD X-Spam-Score: -1.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: 86QtrwCsQk4h Rudolf Adamkovi=C4=8D writes: > Let $r_i$ denote the \(i\)-th rotation of $t$ with a suffix of $\ell|t|$ > characters deleted, for [=E2=80=A6] > > Me, if I could, I would pay money for this feature, for it would allow > me to use $$ consistently, focusing on mathematics instead of markup > idiosyncrasies of "rotation $i$" versus "\(i\)-th rotation". Would it improve things for you if we change how \(...\) _looks_ in Org buffers? The problem with parsing is more than just supporting $i$-th and similar. For example, AMS style guide explicitly advises against using $i$-th in favour of $i$th [1]: Do not hyphenate =E2=80=9Cth=E2=80=9D expressions: xth, not x-th or xth= . We can theoretically make a change to support "-", but then it will be logical to support $i$th as well. (If we don't some users will still be confused after trying to write $i$th and then not getting the expected results). In this question, it would make sense to implement all-or-everything approach. Otherwise, confusion (like raised in this thread) will be inevitable. However, from point of view of Org mode parser, supporting $i$th is a nightmare. Remember that Org mode is _not_ LaTeX and we have to support a lot more frivolous syntax (even in LaTeX, runaway $ is often a source of cryptic compilation errors). Currently, we _must_ rely on heuristics to determine $$-style latex fragments. I do not know any way to support $$ syntax without creating deviations from LaTeX. Extending the heuristics will not resolve the underlying ambiguity of $$ syntax, just hide it within even more obscure cases. Given the raised concerns, may we solve the issue with too verbose \(...\) unambiguous syntax using the following approach: 1. Fontify \(...\) replacing the brackets with a single character. For example: \(...\) -> =E2=81=85...=E2=81=86 2. Provide convenient way to input \(\) brackets through electric-pair-mode or trough org-cdlatex-mode. Best, Ihor [1] https://www.ams.org/publications/authors/AMS-StyleGuide-online.pdf