From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id KCq/G12lvmUTrAAAe85BDQ:P1 (envelope-from ) for ; Sat, 03 Feb 2024 21:43:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id KCq/G12lvmUTrAAAe85BDQ (envelope-from ) for ; Sat, 03 Feb 2024 21:43:09 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=MTTq0jfr; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706992989; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=1FrsAybjCXwIzMONSv46n+Xw8X7dCD/i6MYdJvhVwp0=; b=HxovEtx00yyMVjLzNnMHqvHcRACvqO2JZvqFNtPEh2br6OZb4ImBM/JRrGtyeNu0ye9Xix HLV3ajbvjFrkcW83J+V+3RHnZiKfKjOGZj4jPmOuf6CZNmjlqDvv6y5wXST2l6ToLYGhRs DBAgNxydIm+huuAmZ65Xd2qUF/7szRDm1D6MwwxVqarx/PKaMWRT9Ayy//5LrGNo1ppl9H pRh1+H37VXPB7fZ/J7+ClVkSix9dnp7Bb9W+vpbX5uREQFdq6dFw/FFwxjLG0zi8KgFf3X cCxqIm8e3tcP6poUMiOR/40NnHu7gCfXjCAzHICLg81eoT+FPYtlqodMFTHIMg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=MTTq0jfr; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706992989; a=rsa-sha256; cv=none; b=cECJjLfzJBHSrB5irEsomvT4yJC276BarD5QbriLADpxZBAOxNKk0vPuszYI5rA829QE+2 hwg+dJXPMYirEOGI+/pn1XfLFBibrCqIcGvUHTwZfflBhESrooeN0h+MbGSsmlBZgu35Zg WR2uRwxlb3lM6MYcdCqTQZCJPEslJ2CINLtIQQy2KLo68ExTuI7uNhL3CYz3pc26QNmd8S NaR35rIYty/g88ysuyxihfDsU8+iU7wtQNm/ppBy+1UStZrj8x0Ai+HdWs/X2u5ub778j9 Iy0hhpc18T7keiQ/eRfWFka4KMQiytgpiCA4NR5iOELVGg/aeFMQ7JL48iEYKw== 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 377723CAFD for ; Sat, 3 Feb 2024 21:43:09 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rWMq1-0002yf-0E; Sat, 03 Feb 2024 15:42:09 -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 1rWMpz-0002yV-8v for emacs-orgmode@gnu.org; Sat, 03 Feb 2024 15:42:07 -0500 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rWMpx-0008Fr-Kp for emacs-orgmode@gnu.org; Sat, 03 Feb 2024 15:42:07 -0500 Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-5101cd91017so4122608e87.2 for ; Sat, 03 Feb 2024 12:42:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706992923; x=1707597723; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=1FrsAybjCXwIzMONSv46n+Xw8X7dCD/i6MYdJvhVwp0=; b=MTTq0jfr8c6ymRZdZyjH3sA4djd6TXFjFFGkq1gyLMGw7ks8Zg55Mt5QCu4C6X8Crn mp8GRdibWXtYyHgIVv1w0jgCWa/Oe+Bq/FYskG49Rxu9IkOu9iCaNDo1rgBCGN6jpwMW 9jrW7bEBMi26Qx/8DHFvoFLxGo821JlIrUA0FPqE600sZdhdpIqvbPntlHs1tLPnQxLI zuYHSB0WR28gexemm5U1xjorv0dws/cmB/n/GA092kkD2D/ZIPswfDOHBbs/y4wzY1Lo yQ2bxmtdEiXUT7BRA/qHd9PM1Z4fZzCHHspOlLhsWw7mV0xrIX1LytDeiFyCqFRoWcmY 7ikQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706992923; x=1707597723; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=1FrsAybjCXwIzMONSv46n+Xw8X7dCD/i6MYdJvhVwp0=; b=it3fuaffqTn2J+ZvTzUgw/exM8pnAAhVOgX3XT2VSnZZvWMwPdtiiy5yNKe0wrjr1B cNR/HOwCeMdSOrTHPPAxwABMZPdBIL3lKn58Qk/CJVktLYVs5ufE3CI8UVX38NTzSDcL QODEXBVOYtwOJLXc6t3DaeGLYka5CRNY3OQnbPzfrqalFwRCYtVoJi5luhXTvsWbEkxI Nz1G77PrwJ/GyiXGjIgE+Hm+oc35pkgMA0nbBaBDn2gYHdadAvFQROd4ioYfFsX39STb 5J06JdjB9Kb4ZzQmicyHqf4+o0LvY0Ekam1Y8QFKgKESkHJ/nXf/GkxRVbnoi+3CWT/y IzDQ== X-Gm-Message-State: AOJu0YygXjltEv7r9lTIzekWe9i6xi5thpedi3WPnx2hsb+pneJdCzhP ZryqIcUX3RMCOsKamhCNowNA4cTiAu+ZS8AxVsl2hLyHfLrFjmOQoCIzgplON0ZDxJ2EKh0ukWl eq0PAFa24p5AkHsRR/mRmQqCHygNgcMRfycE= X-Google-Smtp-Source: AGHT+IHjGcyZKtMmb6xfH+RTawBY8WP+RT+/ce9RusUr7GXbL+iuoZlQGMleSNeqtYxxcvVlkYXFoRwMw5Ck3HWEYw4= X-Received: by 2002:ac2:5dfb:0:b0:511:3a7d:d27c with SMTP id z27-20020ac25dfb000000b005113a7dd27cmr2808175lfq.15.1706992922922; Sat, 03 Feb 2024 12:42:02 -0800 (PST) MIME-Version: 1.0 From: Jacob Fong Date: Sat, 3 Feb 2024 12:43:12 -0800 Message-ID: Subject: [BUG] org-format-latex not respecting org-format-latex-options :matchers To: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::129; envelope-from=jacobcfong@gmail.com; helo=mail-lf1-x129.google.com 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, 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.98 X-Migadu-Scanner: mx13.migadu.com X-Spam-Score: -6.98 X-Migadu-Queue-Id: 377723CAFD X-TUID: AtO8EUF2A91H Hey everyone, 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? Thank you, Jacob -- jacobcfong@gmail.com