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 ALPfA92Cc1/TfwAA0tVLHw (envelope-from ) for ; Tue, 29 Sep 2020 18:54:21 +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 gH1JO9yCc19kCQAA1q6Kng (envelope-from ) for ; Tue, 29 Sep 2020 18:54:20 +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 990299402A7 for ; Tue, 29 Sep 2020 18:54:20 +0000 (UTC) Received: from localhost ([::1]:55638 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNKlX-0008Iz-HL for larch@yhetil.org; Tue, 29 Sep 2020 14:54:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40598) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNKky-0008Il-4J for emacs-orgmode@gnu.org; Tue, 29 Sep 2020 14:53:44 -0400 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]:41218) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kNKks-00009C-Lg for emacs-orgmode@gnu.org; Tue, 29 Sep 2020 14:53:43 -0400 Received: by mail-qt1-x844.google.com with SMTP id b2so4444585qtp.8 for ; Tue, 29 Sep 2020 11:53:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=dmUepEmasSamCnvPtAOzLpCr2RsAzMfCdim96t4a1c0=; b=fLJtHHDD7EnDdpmO6N47FIVbycyYqdQWAROaIeZ2S2Yu2r3f0Zn2ExHCwz9X2QYoFz OCo6viqlpUUrsAjCdelUdYhp98HIFpv6TCxUuTdkEJnGjDeQkTaJ4mae5kViKlld5mqT UEFNLMzG4ffqpoTtTsK38LANrMdjsKlXBaYw99O4yaKQDsjjP0GCu9z2m5glV8jBZAci 1g4soWLDMJuPrgD4U/sM3VAsqaZJEnrr98540ghQ1VQdLXfFy64HdcClE7v4Bxl0GSvI +5uxEWRsm02TnGYcnPZFk3R8wnMGoCLScBxjEmDR+zegrN6CGhQ/6JHy7Uqt19CcUof4 K5eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=dmUepEmasSamCnvPtAOzLpCr2RsAzMfCdim96t4a1c0=; b=nviun40s22/dCI9jN/oQPRBGubuYkM1LX1qTKFMsTBPsRegknUxVxPOSI3YAmgR64A UPKDYCVG7IbJ0b+Cg9Ph2wG3MAt8e/mCH0zRVSrmk5bOdU8JqGLMwY+6GrsKXQXRanJ1 kD/9ltME/Jdws8B6YZyge/PY0rXFWv3iJWhP9ITq1bzPZOLU30oFf6GyUM54/IPTTkwT ++C087KcO+nT8DOo2mveru7d82KDPEgkIUpd1YDh9Rd/BoHIrKO+3osiptXcHalACkJ6 alBj/DNfImfsRNa7Is93bLjGdkN7BHDiITAQagYTfawx5RWdI08WHjfP4IRL6r6XSC5G 3buw== X-Gm-Message-State: AOAM533EL8Q8E+3hFNHSW0emHgMN6/vAcJcSS+FinNDcrgjOhxIhS65I qwdrkuQxe1qaw+ozvEfjHwg= X-Google-Smtp-Source: ABdhPJw2Le9ywiL+GwIXwViaUVeFBd1aOGuULTGtdxIPvCwxPCodafpgGvX2FOM9fMO0dkVZd/x/OA== X-Received: by 2002:ac8:33ec:: with SMTP id d41mr4925452qtb.390.1601405617114; Tue, 29 Sep 2020 11:53:37 -0700 (PDT) Received: from auth1-smtp.messagingengine.com (auth1-smtp.messagingengine.com. [66.111.4.227]) by smtp.gmail.com with ESMTPSA id f14sm5359444qkh.134.2020.09.29.11.53.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Sep 2020 11:53:36 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id 3376827C0054; Tue, 29 Sep 2020 14:53:35 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 29 Sep 2020 14:53:35 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvdekgddufedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufgjfhffkfggtgfgsehtqhertddttdejnecuhfhrohhmpeftihgthhgr rhguucfnrgifrhgvnhgtvgcuoeifhihlvgihrdhrsehgmhgrihhlrdgtohhmqeenucggtf frrghtthgvrhhnpefhheelfedvhffhtefgkeeffeegiefhleejheejudffueefjefggeeu jeffuddvgfenucfkphepjeekrdegfedrgedtrdeknecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomheprhiflhdomhgvshhmthhprghuthhhphgvrhhs ohhnrghlihhthidqkeegkeekvdelkeegqdduledtvdejleeggedqrhiflheppehfrghsth hmrghilhdrtghomhesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Received: from aquinas (hsi-kbw-078-043-040-008.hsi4.kabel-badenwuerttemberg.de [78.43.40.8]) by mail.messagingengine.com (Postfix) with ESMTPA id AC06D306467E; Tue, 29 Sep 2020 14:53:34 -0400 (EDT) Received: from rwl by aquinas with local (Exim 4.92) (envelope-from ) id 1kNKkn-0007vE-6h; Tue, 29 Sep 2020 20:53:33 +0200 From: Richard Lawrence To: "Berry\, Charles" 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: <529341D1-CD76-4A17-9D92-DCB07D746ECB@health.ucsd.edu> References: <4330c73ca3467df5d52c8a48747d24f47c27848f.camel@gmail.com> <875z7xbxns.fsf@aquinas> <87zh59agku.fsf@aquinas> <529341D1-CD76-4A17-9D92-DCB07D746ECB@health.ucsd.edu> Date: Tue, 29 Sep 2020 20:53:33 +0200 Message-ID: <87r1qk9zyq.fsf@aquinas> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::844; envelope-from=wyley.r@gmail.com; helo=mail-qt1-x844.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: , Cc: gutin , org-mode mailing list 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=fLJtHHDD; 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: 4.29 X-TUID: 8Yti1QhSlSXE "Berry, Charles" writes: > The case Gutin describes conforms to the documentation, viz. `$x\beta$-` = should produce math mode LaTeX as I read the next paragraph.=20 > > From (info "(org) LaTeX fragments"): > > =E2=80=A2 Text within the usual LaTeX math delimiters. To avoid confl= icts > with currency specifications, single =E2=80=98$=E2=80=99 characters = are only > recognized as math delimiters if the enclosed text contains at most > two line breaks, is directly attached to the =E2=80=98$=E2=80=99 cha= racters with no > whitespace in between, and if the closing =E2=80=98$=E2=80=99 is fol= lowed by > whitespace, punctuation or a dash. Hmm, good point. It looks to me like the relevant function is org-element-latex-fragment-parser, and the code for that hasn't changed much in several years (last change was 2017). (Also, I was wrong, parsing latex fragments is not done with just a regexp.) I can confirm that this function parses "$foo" in "$foo$ bar" as a latex fragment, but not in "$foo$-bar" Not sure if the problem here is the code or the documentation. Perhaps the documentation should be updated to reflect the current behavior? --=20 Best, Richard