From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id EIDUMfsucl9oYgAA0tVLHw (envelope-from ) for ; Mon, 28 Sep 2020 18:44:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id aEWnLfsucl+AZgAA1q6Kng (envelope-from ) for ; Mon, 28 Sep 2020 18:44:11 +0000 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 4DE589403D2 for ; Mon, 28 Sep 2020 18:44:11 +0000 (UTC) Received: from localhost ([::1]:52570 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kMy88-0003kU-Sc for larch@yhetil.org; Mon, 28 Sep 2020 14:44:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45104) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kMy6a-00039L-NA for emacs-orgmode@gnu.org; Mon, 28 Sep 2020 14:42:33 -0400 Received: from mail-qt1-x830.google.com ([2607:f8b0:4864:20::830]:44020) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kMy6Z-00030r-55 for emacs-orgmode@gnu.org; Mon, 28 Sep 2020 14:42:32 -0400 Received: by mail-qt1-x830.google.com with SMTP id g3so1567018qtq.10 for ; Mon, 28 Sep 2020 11:42:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=4yLDNcD9s0IwC7u7dwSJUC30UwMqXgZt+mvl1Ampq9k=; b=RogI/XI9OV4tGiILxf+GqMKt1WAtxhHqMswcYILTeZkYtjsHk9Hq+yrYN1MyRuOlUh g8qXhKr/w2Ie3VlMMAMD/slQmjeJuhkG3D9SVq2MVKBM1qFCzAvD99fL8s/BOIc7Aj6G P6PV0/Ybh0t85sUFX+LZTXiAHvvbSWVHtNcRBm6OmFI8HgsuDeH0lDP6zaH+YIGfc26U xfnhzqEwA7NiMEnaoNfXb9Gn6gAeQLQb0GXhx6RUXkxnnPBbYAVXl/e8qpNuXpbIrpj3 NOYcmV23LOZao/25fiulNYLxsYvkFyIEMfC86XuYwFCkLRJkCoo0k/A41VVuadcO4Bz4 dNjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=4yLDNcD9s0IwC7u7dwSJUC30UwMqXgZt+mvl1Ampq9k=; b=R3TniENJjHZy2rzP25MKc//z7rAbEGGH7ucsAArpLSJdpbveUgQzydYKvlOgzXIW8o HuIwsJGC8Sr55XcQO51yaTtEWamevASbY3s5g0hDHNRhZ55dWrsn8aq3Buz+6sp3HRro iNjmHAr2oHE0PdmNCrhGzSpVPuVk7BIxIfVBWcLxEN801LTW+2rbzVGXeRlhdWSvsigi IqdhG+kqYAbOs+et6ETKbGinbYATjDN0pVrqyF9/WJPlPsXJjpfbMWRN74tElQxtxbFk 5oUcbgsJJGaYv5AQLemy6f4z4YfamuUBrk/RBd6QcnSIVY71yMl+v+mYMidFMwu/y61i QZVw== X-Gm-Message-State: AOAM533PdUrnALusXb2CUfm35VbWtbuqM6r1Vezyob0HzHwgMIFj9L6S Vw2bJftGuuGsDUZG575VeuA= X-Google-Smtp-Source: ABdhPJxGGz8kuYY4QIqyiXhg2RqJ3eOwpg9gVjHrVKQTBlrhV1kCNaUOfifJpe6dE+hdrH5L0uV6dg== X-Received: by 2002:ac8:1c5a:: with SMTP id j26mr3047270qtk.48.1601318550193; Mon, 28 Sep 2020 11:42:30 -0700 (PDT) Received: from auth1-smtp.messagingengine.com (auth1-smtp.messagingengine.com. [66.111.4.227]) by smtp.gmail.com with ESMTPSA id g18sm2048063qtu.69.2020.09.28.11.42.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Sep 2020 11:42:29 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailauth.nyi.internal (Postfix) with ESMTP id 47C2A27C0054; Mon, 28 Sep 2020 14:42:28 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 28 Sep 2020 14:42:28 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvdeigddutdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffujghffffkgggtsehttdertd dttddtnecuhfhrohhmpeftihgthhgrrhguucfnrgifrhgvnhgtvgcuoeifhihlvgihrdhr sehgmhgrihhlrdgtohhmqeenucggtffrrghtthgvrhhnpeekhedvfeetleekkeetteffff elkeehjedthfejhfdtieevudegteduffdvjeettdenucfkphepjeekrdegfedrgedtrddu gedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprh iflhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqkeegkeekvdelkeegqddu ledtvdejleeggedqrhiflheppehfrghsthhmrghilhdrtghomhesfhgrshhtmhgrihhlrd gtohhm X-ME-Proxy: Received: from aquinas (hsi-kbw-078-043-040-141.hsi4.kabel-badenwuerttemberg.de [78.43.40.141]) by mail.messagingengine.com (Postfix) with ESMTPA id B2D463064610; Mon, 28 Sep 2020 14:42:27 -0400 (EDT) Received: from rwl by aquinas with local (Exim 4.92) (envelope-from ) id 1kMy6T-0001Kl-VN; Mon, 28 Sep 2020 20:42:25 +0200 From: Richard Lawrence To: gutin , emacs-orgmode@gnu.org Subject: Re: Bug: Math mode doesn't work if followed by a dash [9.4 (nil @ /home/gutin/.emacs.d/.local/straight/build/org-mode/)] In-Reply-To: References: <4330c73ca3467df5d52c8a48747d24f47c27848f.camel@gmail.com> <875z7xbxns.fsf@aquinas> X-Woof-Bug: closed Date: Mon, 28 Sep 2020 20:42:25 +0200 Message-ID: <87zh59agku.fsf@aquinas> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::830; envelope-from=wyley.r@gmail.com; helo=mail-qt1-x830.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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.23 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=RogI/XI9; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.21 X-TUID: FO6ZMrdyIcHV Hi Gutin, gutin writes: > What I meant is that if you type > > $*$-algebra > > and hit C-c C-x C-l, then the "$*$" doesn't get replaced with a > mathematical image. A similar problem happens when you export to Latex: > The dollar signs get escaped. I believe this is intentional. There are too many other uses of dollar signs that people might want to use in Org documents that might be broken if Org treated them as math mode delimiters; so the regexp that matches math mode delimiters is deliberately limited in scope. The recommended workaround is to use the \(...\) style of delimiter for math mode instead, which is much less ambiguous. Here is a function that makes this easy, by inserting these delimiters when you type "$". It's been posted on this mailing list before, and I use a version of it myself; it's very useful! ;; from Nicolas Richard ;; Date: Fri, 8 Mar 2013 16:23:02 +0100 ;; Message-ID: <87vc913oh5.fsf@yahoo.fr> (defun yf/org-electric-dollar nil "When called once, insert \\(\\) and leave point in between. When called twice, replace the previously inserted \\(\\) by one $." (interactive) (if (and (looking-at "\\\\)") (looking-back "\\\\(")) (progn (delete-char 2) (delete-char -2) (insert "$")) (insert "\\(\\)") (backward-char 2))) (define-key org-mode-map (kbd "$") 'yf/org-electric-dollar Hope that helps! -- Best, Richard