From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id mIlHLcYmMV8ibAAA0tVLHw (envelope-from ) for ; Mon, 10 Aug 2020 10:51:50 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id wKX4KMYmMV8JLAAAbx9fmQ (envelope-from ) for ; Mon, 10 Aug 2020 10:51:50 +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 EB7E7940214 for ; Mon, 10 Aug 2020 10:51:49 +0000 (UTC) Received: from localhost ([::1]:49966 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k55PA-0000sR-KH for larch@yhetil.org; Mon, 10 Aug 2020 06:51:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34894) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k55OV-0000qr-4p for emacs-orgmode@gnu.org; Mon, 10 Aug 2020 06:51:07 -0400 Received: from mail.freitagsrunde.org ([130.149.246.218]:35238) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k55OS-00050h-61 for emacs-orgmode@gnu.org; Mon, 10 Aug 2020 06:51:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=freitagsrunde.org; s=dkimandmate; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:Subject:From:References:Cc:To:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=BbY4NfPGIxqsTfSHLjj+WhDxeYVg69hMgx8ru659X8Q=; b=JgyXGQrFsAbutJl3pO77ej2KP1 VK1moKVVbLE8M88ggpSYKk6Vx8vn2aThS0rtNu/dBRkj410nRmqzqG94Uk178yBMRZjkZiVxyV7NW fCjxV40W+pPCNFh4zmHiOnoxqrzXnOxAo3Q0Bafi2GiaixEGiwtAWiAfl0F1MALQ1u4w=; Received: from ip2505f02b.dynamic.kabel-deutschland.de ([37.5.240.43] helo=[192.168.0.9]) by mail.freitagsrunde.org with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1k55OM-0003v0-JC; Mon, 10 Aug 2020 12:50:58 +0200 To: Kyle Meyer References: <87pn8fm2ux.fsf@kyleam.com> From: Stefi Autocrypt: addr=stefi@freitagsrunde.org; keydata= mQENBF5PAzABCADnjxaXsqFNxgZbI6hVfCAqj8m2iESin8B7heYBF7Om1gxDqOjNSuDzLx0e CNKmtw8PWS4X/M5kzjQ/bq+CVh408hlDk2h/5fgQ984HktdV1KyHuthan80/Mb8ba5aUKWBX K0A3CJk2RInzjNXSNB3L4zuZcmVesnwLzTO7xlLmKf48fqfzyxg5syr11762b671HK5q7el5 8BVw63w5+iPVPQKNRA0ThM2NF1Yc3aX3IxZARpnO+Cbo7ClO1P99re4mXAt0zmMn6v0UU1tT ijqyh/9yPUdYRGyAQvj/61XlWluymxXKARDD2aN3Y8sbH+rSK0oNUSq/5zeDPRWCtmabABEB AAG0H1N0ZWZpIDxzdGVmaUBmcmVpdGFnc3J1bmRlLm9yZz6JAVQEEwEIAD4WIQTWFRUDH4+p lceWUL841q6Cdq0NvQUCXk8DMgIbAwUJAeEzgAULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAK CRA41q6Cdq0NvTQi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bJBMsgyFvwRYNS1hxIrWX3Yy5eW51/TrsIWyHS7EJ/dKrDMHJFXDOOzaKMpt4 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/)] Message-ID: <75354f45-5fb7-423b-3aa8-a25c790929c3@freitagsrunde.org> Date: Mon, 10 Aug 2020 12:50:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87pn8fm2ux.fsf@kyleam.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US-large Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=130.149.246.218; envelope-from=stefi@freitagsrunde.org; helo=mail.freitagsrunde.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/10 06:50:59 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] 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, 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=fail (rsa verify failed) header.d=freitagsrunde.org header.s=dkimandmate header.b=JgyXGQrF; 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: -0.01 X-TUID: R+zlicRczMIN Hi Kyle, hi mailing list, I also evaluated (org-inside-LaTeX-fragment-p) and got non-nil values for all blocks, however, inside the align* environment, the "fr" does not get expanded on TAB whereas it does in equation environment. So either the matchers do not include align/align*, or there is something different now with cdlatex. Btw, this is what I got from evaluation: (#("\\begin{align*} 0 14 (fontified t line-prefix #(" " 0 4 ...) wrap-prefix # (" " 0 4 ...))) . 15791) and (#("\\begin{equation} 0 16 (fontified t line-prefix #(" " 0 4 ...) wrap-prefix # (" " 0 4 ...))) . 15824) Does someone know how to find and configure the matchers? I am pretty sure it worked before with align* environment, as I am using it all the time :) regards On 7/29/20 5:12 AM, Kyle Meyer wrote: > 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? >