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 GHu4BHEUK1/uLwAA0tVLHw (envelope-from ) for ; Wed, 05 Aug 2020 20:20:01 +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 8DWsAHEUK19tPQAAB5/wlQ (envelope-from ) for ; Wed, 05 Aug 2020 20:20:01 +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 8C1CB940630 for ; Wed, 5 Aug 2020 20:20:00 +0000 (UTC) Received: from localhost ([::1]:48880 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k3PtG-0000WU-3B for larch@yhetil.org; Wed, 05 Aug 2020 16:19:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45178) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k3Pse-0000WM-RZ for emacs-orgmode@gnu.org; Wed, 05 Aug 2020 16:19:20 -0400 Received: from mail-oi1-x243.google.com ([2607:f8b0:4864:20::243]:46892) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k3Psc-0003AT-DM for emacs-orgmode@gnu.org; Wed, 05 Aug 2020 16:19:20 -0400 Received: by mail-oi1-x243.google.com with SMTP id v13so24138680oiv.13 for ; Wed, 05 Aug 2020 13:19:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=D/ZH+ixce2V4pFqGILdYAJldUehiTf3+q+22iiEWYCY=; b=SH+SgggUOVI7HQS4U4nYIDY7U6L39ZQANRP39QpvWUm74nW9A1p76bWbV1gi0LwIEQ yRdyXn7m2Tal8AeFEsdciqCLo2wwz5F5JeJUkMJCJWv275X6XvDbV+4h3/Lha9k/qGoA zvDiSJOlTeC4a83VV3uz7vQapwpDgQEeUg4cH/KeUk2gqYAgEMpslaOYnPNcsaNpVPFM SmIsUITiRdtDKL101f7vl+8qA/WFYm44Q2pBzkd0XLM6NEFtYd/ybULjJOHWSZEBRdLQ HDD7tGYOllUWap3F8nEPVdjVb4uKiMwHd0SUYQT1ffiMx32HNei9LOnjlBTp7DfjWC4B 45Vw== 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:references:date:in-reply-to :message-id:user-agent:mime-version; bh=D/ZH+ixce2V4pFqGILdYAJldUehiTf3+q+22iiEWYCY=; b=gDId93bA7sl7WmEPp8qBQacK22ghitHMGWkTtqtB1AU6vma5yUp5HgiyJUzunxoaYs Nc4eOFZFpiPcWzDED9q04n9xjquFTYXIg9+oBwD/5dpZTKIfStqOn7E84tNS2vA6ZGud 1W8W1YHUASB7HaoopWMh8SASNexJt7KmEBfZ6wR1UcPy42H1At5zFjCQZkEl8VHSgKES 14NNENT8/xd7v4knxf32nO/27bpCFbLIevkSZQeckOUTXEjTZBtWxaZ0UcxwjIU7cMP+ FmGkvUyNjXtmYTKV3HsrKXELPRvs1uAfTz9y/UaeNHX/tsD6fXh0IPVYLmNRTUsDvDle MVHA== X-Gm-Message-State: AOAM530QQQ/hwwi3JYHiTnCA9kRnvDnTPtT6cml3emq5OO/SniEMVq2R pir/fQEgBh94pXUAuZpMQjlEB+9uRAA= X-Google-Smtp-Source: ABdhPJy81wSk14GfCizaOCCDHA4dkBpCzjAr1OpwIhRpZBeKI0sf7tLLnditrsO8qCgI+p8+yvACOg== X-Received: by 2002:a05:6808:7c3:: with SMTP id f3mr4078288oij.153.1596658756271; Wed, 05 Aug 2020 13:19:16 -0700 (PDT) Received: from lap-dell ([187.237.14.243]) by smtp.gmail.com with ESMTPSA id n84sm686426oih.9.2020.08.05.13.19.14 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Aug 2020 13:19:14 -0700 (PDT) From: Rafael To: emacs-orgmode@gnu.org 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/)] References: <87pn8fm2ux.fsf@kyleam.com> Date: Wed, 05 Aug 2020 15:19:12 -0500 In-Reply-To: <87pn8fm2ux.fsf@kyleam.com> (Kyle Meyer's message of "Tue, 28 Jul 2020 23:12:06 -0400") Message-ID: <87ft90977j.fsf@gmail.com> User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/26 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::243; envelope-from=rvf0068@gmail.com; helo=mail-oi1-x243.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: 15 X-Spam_score: 1.5 X-Spam_bar: + X-Spam_report: (1.5 / 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SBL_CSS=3.335, 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.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=SH+SgggU; 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: 3.29 X-TUID: H6VXfq6E/TYj Kyle Meyer writes: > 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? I can confirm that with Org mode version 9.3.7 (9.3.7-16-g521d7f-elpaplus @ /home/rafael/Documents/new-emacs.d/elpa/org-plus-contrib-20200803/) and GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2019-12-23 and using org-cdlatex, fr does not expand inside align but it does inside equation, just as Stefi says.