all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* (Feature Request) customise LaTeX-preview regex
@ 2020-05-19  1:59 Timothy
  2020-05-19  7:26 ` Nicolas Goaziou
  0 siblings, 1 reply; 9+ messages in thread
From: Timothy @ 2020-05-19  1:59 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 828 bytes --]

Another email, another request 😀

Hoping that you aren't tired of me yet, I have … (drum-roll) another feature request!
This time, I'm wanting to be able to use the lovely org latex preview functionality for more than just the default blocks.
For instance, I'm interested in applying it to mhchem \ce{ … } fragments, as well as siunitx \SI{ … }{ … }.

I thought modifying org-latex-regexps may do the trick, yet despite trying a few different things, I was confused when unable to get it to work. It 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,
Timothy


[-- Attachment #2: Type: text/html, Size: 2449 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread
* (Feature Request) customise LaTeX-preview regex
@ 2020-05-18  7:10 Timothy
  0 siblings, 0 replies; 9+ messages in thread
From: Timothy @ 2020-05-18  7:10 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 825 bytes --]

Another email, another request 😀

Hoping that you aren't tired of me yet, I have … (drum-roll) another feature request!
This time, I'm wanting to be able to use the lovely org latex preview functionality for more than just the default blocks.
For instance, I'm interested in applying it to mhchem \ce{ … } fragments, as well as siunitx \SI{ … }{ … }.

I thought modifying org-latex-regexps may do the trick, yet despite trying a few different things, I was confused when unable to get it to work. It 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

[-- Attachment #2: Type: text/html, Size: 964 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-06-15  9:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-19  1:59 (Feature Request) customise LaTeX-preview regex Timothy
2020-05-19  7:26 ` Nicolas Goaziou
2020-05-19  7:49   ` Timothy
2020-05-19 11:45     ` Eric S Fraga
2020-05-19 14:27       ` Timothy
2020-06-14 13:53         ` TEC
2020-06-14 17:30           ` Nicolas Goaziou
2020-06-15  9:04           ` Eric S Fraga
  -- strict thread matches above, loose matches on Subject: below --
2020-05-18  7:10 Timothy

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.