From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id QHUlLy3pIF+1QAAA0tVLHw (envelope-from ) for ; Wed, 29 Jul 2020 03:12:45 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id mGMGKy3pIF/ZJgAAB5/wlQ (envelope-from ) for ; Wed, 29 Jul 2020 03:12:45 +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 DD701940215 for ; Wed, 29 Jul 2020 03:12:44 +0000 (UTC) Received: from localhost ([::1]:44528 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k0cWI-0002rw-3H for larch@yhetil.org; Tue, 28 Jul 2020 23:12:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43974) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k0cVs-0002rj-JV for emacs-orgmode@gnu.org; Tue, 28 Jul 2020 23:12:16 -0400 Received: from pb-smtp20.pobox.com ([173.228.157.52]:61136) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k0cVq-0008BJ-4m for emacs-orgmode@gnu.org; Tue, 28 Jul 2020 23:12:16 -0400 Received: from pb-smtp20.pobox.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id 297E1DC1D3; Tue, 28 Jul 2020 23:12:11 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:in-reply-to:references:date:message-id:mime-version :content-type; s=sasl; bh=cNBA+3xYCCicGfhRfik6Olc/sWU=; b=xIVfxX kb4HTOLctPqqiAKQvaJWluMMIDXY4zt9dO7qfty5pKY1aYpQlrmA7Rkut7XOZ8Qt WgD+qj3qklE0qkOgb3bfJAPh9gCPuiL84htsNRaBXXbkxD4krUVurJzfYn7HKpw4 EaC2gGSrjP0ajXHoC4VODG68zyRJBWH5wPEOA= Received: from pb-smtp20.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id 14A6FDC1D2; Tue, 28 Jul 2020 23:12:11 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=kyleam.com; h=from:to:cc:subject:in-reply-to:references:date:message-id:mime-version:content-type; s=mesmtp; bh=a9Cua6IpdusZx50E2m+h5VkCazNwVUZ9C6vRzorzIjE=; b=q6mCwTT05/jOpMe6eEy36ZtqtKnBxhQYnVU2v4h8s3d3WrK4QMcmjb6Cgbr5z8MeNlJAvD7yNPMm3SzRr+r1FbsMQOxkjXF8NwSR1VsS5SeKFvHNzP2olUCcdZScevgZz6gMW/UlyXH3pXCKOxq+ce1aK+YydPMEcB3uc4N40z0= Received: from localhost (unknown [45.33.91.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp20.pobox.com (Postfix) with ESMTPSA id 6ABD9DC1D0; Tue, 28 Jul 2020 23:12:08 -0400 (EDT) (envelope-from kyle@kyleam.com) From: Kyle Meyer To: Stefi Subject: Re: Bug: no math-mode detection for align-environment [9.3.7 (9.3.7-13-ge62ca4-elpaplus @ /home/stefi/.emacs.d/elpa/org-plus-contrib-20200713/)] In-Reply-To: References: Date: Tue, 28 Jul 2020 23:12:06 -0400 Message-ID: <87pn8fm2ux.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 498570E6-D149-11EA-8EE6-F0EA2EB3C613-24757444!pb-smtp20.pobox.com Received-SPF: pass client-ip=173.228.157.52; envelope-from=kyle@kyleam.com; helo=pb-smtp20.pobox.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/28 21:51:12 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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: emacs-orgmode@gnu.org 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=pobox.com header.s=sasl header.b=xIVfxX k; dkim=pass header.d=kyleam.com header.s=mesmtp header.b=q6mCwTT0; dmarc=none; 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: Ip5TB5hhvziP Stefi writes: > I recently updated my emacs packages and noticed that \begin{align*} > does not trigger math-mode detection any more, so org-cdlatex does not > work. However, begin{equation} still does trigger the math-mode > detection. I have read the documentation of > "org-inside-LaTeX-fragment-p" and found something about matchers, but > nothing about equation or align environment and why it might be treated > differently for math-mode detection. The default value for :matches is ("begin" "$1" "$" "$$" "\\(" "\\["). It looks like the value hasn't been touched in a long time, and that AFAICT the "begin" should cover "align" just as it covers "equation". And I'm not spotting any recent changes on Org's end that should affect this. > My test-file.org: > ----8<---------8<---------8<---------8<----- > > * blabla > \begin{equation} > \label{eq:1} \frac{}{} > test_{cds} \frac{}{} > \end{equation} > > \begin{align} > \label{eq:2} > test$_d$ fr > \end{align} > > $\frac{}{} fds_{fdsf} \frac{}{}$ > > \begin{align*} > fr > \end{align*} > > > ----8<---------8<---------8<---------8<----- > > - detection works for: \begin{equation}, $$, \[\] (not in testfile) > - detection does not work for: \begin{align}, begin{align*}; subscript _ > does insert extra $_{}$, which it should not in math mode, and fr does > not get expanded to \frac{}{} > > Emacs : GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20) > of 2020-05-19 > Package: Org mode version 9.3.7 (9.3.7-13-ge62ca4-elpaplus @ > /home/stefi/.emacs.d/elpa/org-plus-contrib-20200713/) On master, maint, and the commit matching your reported version (e62ca4), I tried org-inside-LaTeX-fragment-p within each block of your test file, and it returns non-nil, including in the align and align* blocks. So I dunno... Could some org-cdlatex users out there give the test file a try?