From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id eN1nOPC1vmV+AAEA62LTzQ:P1 (envelope-from ) for ; Sat, 03 Feb 2024 22:53:53 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id eN1nOPC1vmV+AAEA62LTzQ (envelope-from ) for ; Sat, 03 Feb 2024 22:53:52 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=TScxKPh9; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706997232; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=wOWns/8gD7n7fcMnCMzPXG2JwUlYHKtwBPs8cr//nec=; b=EXzguUtTAWgKj2Qu8lX2MKJdnM8CjnkXQLmFj4kx4y2UuMuI+Lw5skZepfjTIMQoC2rt0D EEPvQK1KW4cCzUxlrsaT+3aGtWnimdEUKoqdlH6oP9ZrbcksF8IB7LBZ0yR/zWTPknxfj/ XxVpVcRUyJsR/+3XYJwjR4JJ+qckNkKTuKfJTV2wvyXSOqlkBztEaMvLM4qclUoD/ON9Hu aRfWO/P/qs8W5wLDRMvTMX898LV7F1PMdTEBmF0aFQpqQZFN7qHAK3zZ3SkaUhqbCxlWqd 5CjPjYp9sBQGbLgk9y5COubDT9Rctm3br1WdBfRR0l38EdBFFtvnKBPDr8wTyg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=TScxKPh9; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706997232; a=rsa-sha256; cv=none; b=Z6KOJzWjxm09zUXZOm04z2MP7hiVS7Mn6x3gaAl6OJd4dgqdCPY3OaWXowiGQnTCoO6bur gJfmZ1ii8osZyW1COAFjZkj/QQOyC5aelN5oqAunoDf50dJvfVc+z/8xTZmTnlRk8p54wp /SXiF4HVjsGFS8xKmzAFqFKZZeq86EKnQfCT5shO5eEZSyk8vm3j4RH/L1J+fl4L/ENhK5 th7pidiNwqUUTddXEKYZrWsoC1kztklSSF1GJ3I4GKE3S0nMLQwnseBBZ/v5njDkVtRpJO /p7/qH73Ueh+jiFcNyTTMbGCC3Bc0tEn67j6rk9ELv4hIgyzj1PMsccaRHgi1w== 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 8F1D2210C2 for ; Sat, 3 Feb 2024 22:53:52 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rWNx4-0007pm-Mz; Sat, 03 Feb 2024 16:53:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rWNx3-0007pc-FX for emacs-orgmode@gnu.org; Sat, 03 Feb 2024 16:53:29 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rWNx1-0003iD-Ln for emacs-orgmode@gnu.org; Sat, 03 Feb 2024 16:53:29 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id D4F85240104 for ; Sat, 3 Feb 2024 22:53:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1706997204; bh=ZAKCn1pWDCpTRxmyIo9WtryFdxKSWA+gLy23NOukRVU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=TScxKPh9TdFBLQpoSgV0j8f0TpGpxJ7pMQf7nRl7z5H6V2GMKewinliJtuPDkyTat JLOZkw29rbRLlvWtxaduoP6sGnSpwmb0mT4bWBc6i2CetiMERz40BjAO7zBBkgwHTZ Uly+ZCZmMKpk1VjnOAeMF6BaIzEpBWy1mxZ1aV1eGpuCRBVxnYVuwvnzM2vsBak1VK gZsrAiFhYg8mDoXecbX+JJyewuRohfAoCl0zfueQIwTwdAct759nyyDyYRpDtnSVY3 SSEoThNpwOUdpqWRPNZkpVrH+0klcJVwBMmnxtvVhE6jY57LtvL6IQXATUfNvddpPP 2b7yRsFOFDyyQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TS5xJ2gQvz9rxD; Sat, 3 Feb 2024 22:53:24 +0100 (CET) From: Ihor Radchenko To: Jacob Fong , Timothy , Karthik Chikmagalur Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] org-format-latex not respecting org-format-latex-options :matchers In-Reply-To: References: Date: Sat, 03 Feb 2024 21:56:55 +0000 Message-ID: <87o7cxxlco.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.89 X-Spam-Score: -6.89 X-Migadu-Queue-Id: 8F1D2210C2 X-Migadu-Scanner: mx12.migadu.com X-TUID: MXMLhL2rC3ld [ CCing Timothy and Karthic ] Jacob Fong writes: > It appears that the math-matching regexes are hard-coded in > `org-format-latex`, as seen in this line: > > ``` > (let* ((math-regexp "\\$\\|\\\\[([]\\|^[ \t]*\\\\begin{[A-Za-z0-9*]+}") > ``` > > As a result of this, :matchers does not work as documented, for > example with `org-latex-preview`. This is confirmed in some places > (https://emacs.stackexchange.com/questions/78093/removing-certain-latex-preview-matchers-from-org-mode). > > Is there any way this can be fixed to accord with the > org-format-latex-options documentation? Confirmed. But we are soon to commit major changes to latex preview system. I believe that this issue will be addressed. See https://list.orgmode.org/orgmode/87lek2up0w.fsf@tec.tecosaur.net/ -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at