From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id OESVEXjOw17IUQAA0tVLHw (envelope-from ) for ; Tue, 19 May 2020 12:18:00 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id qC9hDXjOw16DZQAA1q6Kng (envelope-from ) for ; Tue, 19 May 2020 12:18:00 +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 D67BC9402D6 for ; Tue, 19 May 2020 12:17:59 +0000 (UTC) Received: from localhost ([::1]:53310 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jb1C2-0000Pt-Qt for larch@yhetil.org; Tue, 19 May 2020 08:17:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jaZvE-0004T2-Um for emacs-orgmode@gnu.org; Mon, 18 May 2020 03:10:48 -0400 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]:39320) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jaZvE-000176-5d for emacs-orgmode@gnu.org; Mon, 18 May 2020 03:10:48 -0400 Received: by mail-pg1-x52a.google.com with SMTP id u35so4391245pgk.6 for ; Mon, 18 May 2020 00:10:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version; bh=DQhNoY8I1NAUT97+g62bqpIpAqipkPmmgkOYIGIHjFI=; b=hwYpPKXDmijYUkhhhoO3XEWs2/CPoyjOVDRKiPOx/V1pzvRYPQU/fAqXvTrxyBChnT AwHbPhF0SIrmtQe6NtTPg1u+j4B62jPjkGcGllO2RBuWwx1LNQVGtLRLeQ6xdHxU9zdR BK2kriyHom1VXXddbD3Wz9X5M3ZeNFhoSGCrQUTCR/khZRmjpprl69jLHMn9RMGXzXvK DnTVFI7/QvIEf9Ew2tcSwu3L5s0MuxLUBHVSOw6DCi8jIyyefCoMiQ6h6MZw1S+0Q5ff ZiE/N8zBhSlxg3PnKSMRFzBsldBC1GUtjcybghggM6QCExYpyyYViYYFESA5uuCtRYOW XRyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:message-id:subject:mime-version; bh=DQhNoY8I1NAUT97+g62bqpIpAqipkPmmgkOYIGIHjFI=; b=VILc3Ii1pK7MmJq1KUKqPgeXcJ+RR6nfjrj9UgIVbzFV5MUEAXL99TzMhoytcCrL8V QUo2iL0dhZqfjdRHcZKd+MaQ90CpadF2jFq9b1M3qeMmrOr323OTtPOjGC9QdxtJR9pq PhWoOW+iDYennfW8tTJddsYEO0f0RDe3CTNwtKjuL42xrc4LPFqnunKvTYhbUTD41Pj1 Veagtownu85J904vIstrjils5jBWmsnuACtZawLUeL0pzmFk5/u9aUsAUmw22lugMipq KmVQ58oWxNKPosX83X6o0vLJGoYe1EwwGbkmexFE1p950M+3jeLuLdo9FbLZC28Kptct 1zNQ== X-Gm-Message-State: AOAM531Vf7kzNic3h+yo3NzK/GBUn2rZ4Ou8XEravSDbo00RrRkjAV2h 3IeXk1MMrIfD/0JMG7ch3J5LRiT9 X-Google-Smtp-Source: ABdhPJy0GzfZlImIUR7TUDF168AhWp0bxMsfGj5z3iiZhMF9wEEbjN5GS74PMp15DOWV2D6ykaA0bw== X-Received: by 2002:a62:760e:: with SMTP id r14mr15400103pfc.92.1589785846307; Mon, 18 May 2020 00:10:46 -0700 (PDT) Received: from tranquillity (180-150-91-8.b4965b.per.nbn.aussiebb.net. [180.150.91.8]) by smtp.gmail.com with ESMTPSA id d2sm8020194pfc.7.2020.05.18.00.10.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 May 2020 00:10:45 -0700 (PDT) Date: Mon, 18 May 2020 15:10:42 +0800 From: Timothy To: "=?utf-8?Q?emacs-orgmode=40gnu.org?=" Message-ID: <96F65862-F480-4723-83FB-1AFA63583C8F@getmailspring.com> Subject: (Feature Request) customise LaTeX-preview regex X-Mailer: Mailspring MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="5ec234f2_1234319c_8a9" Received-SPF: pass client-ip=2607:f8b0:4864:20::52a; envelope-from=tecosaur@gmail.com; helo=mail-pg1-x52a.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: -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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Mailman-Approved-At: Tue, 19 May 2020 08:17:10 -0400 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=hwYpPKXD; 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: 2.00 X-TUID: vc+5l8Yl/H31 --5ec234f2_1234319c_8a9 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Another email, another request =F0=9F=98=80 Hoping that you aren't tired of me yet, I have =E2=80=A6 (drum-roll) anot= her feature request=21 This time, I'm wanting to be able to use the lovely org latex preview fun= ctionality for more than just the default blocks. =46or instance, I'm interested in applying it to mhchem =5Cce=7B =E2=80=A6= =7D fragments, as well as siunitx =5CSI=7B =E2=80=A6 =7D=7B =E2=80=A6 =7D= . I thought modifying org-latex-regexps may do the trick, yet despite tryin= g a few different things, I was confused when unable to get it to work. I= t looks like I'm being confounded by the fact that org-format-latex doesn= 't even reference org-latex-regexps, and instead uses it's own hard-coded= regexps. Hopefully it may be possible to tweak this so that once can preview more = than just the defaults hardcoded into org-format-latex. Warm regards, tecosaur --5ec234f2_1234319c_8a9 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Another email, another request =F0=9F=98=80

Hoping that you aren't tired of me yet= , I have =E2=80=A6 (drum-roll) another feature request=21
<= div>This time, I'm wanting to be able to use the lovely org latex preview= functionality for more than just the default blocks.
=46or ins= tance, I'm interested in applying it to mhchem =5Cce=7B =E2=80=A6 =7D fra= gments, as well as siunitx =5CSI=7B =E2=80=A6 =7D=7B =E2=80=A6 =7D.
=
I thought modifying org-latex-regexps may do the trick, yet desp= ite trying a few different things, I was confused when unable to get it t= o work. It looks like I'm being confounded by the fact that org-format-la= tex doesn't even reference org-latex-regexps, and instead uses it's own h= ard-coded regexps.

Hopefully it may be possible to tweak th= is so that once can preview more than just the defaults hardcoded into or= g-format-latex.

Warm regards,

tecosaur
--5ec234f2_1234319c_8a9--