Re: (Feature Request) customise LaTeX-preview regex

2020-06-15 Thread Eric S Fraga
On Sunday, 14 Jun 2020 at 21:53, TEC wrote: > Hi All, > > Just a quick note: I'm yet to resolve this, so any further > comments/help on this would be much appreciated :) If you put the snippet in a math environment, it works with LaTeX preview: \(\ce{CO2}\) Of course, this only applies to things

Re: (Feature Request) customise LaTeX-preview regex

2020-06-14 Thread Nicolas Goaziou
Hello, TEC writes: > Just a quick note: I'm yet to resolve this, so any further > comments/help on this would be much appreciated :) You're only able to preview LaTeX code supported by Org, so something like `org-latex-regexp' is not really meant to be extended. Org has limited support for La

Re: (Feature Request) customise LaTeX-preview regex

2020-06-14 Thread TEC
Hi All, Just a quick note: I'm yet to resolve this, so any further comments/help on this would be much appreciated :) Thanks, Timothy.

Re: (Feature Request) customise LaTeX-preview regex

2020-05-19 Thread Timothy
On May 19 2020, at 7:45 pm, Eric S Fraga wrote: > You probably need to add this to =org-latex-packages-alist= in your emacs configuration: > (add-to-list 'org-latex-packages-alist '("version=3" "mhchem")) I tried adding that. Didn't change anything. > Also, you might be interested in using the

(Feature Request) customise LaTeX-preview regex

2020-05-19 Thread Timothy
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

Re: (Feature Request) customise LaTeX-preview regex

2020-05-19 Thread Eric S Fraga
On Tuesday, 19 May 2020 at 15:49, Timothy wrote: > #+LATEX_HEADER: \usepackage{mhchem} > \ce{CO2} @@latex:\ce{CO2}@@ You probably need to add this to =org-latex-packages-alist= in your emacs configuration: (add-to-list 'org-latex-packages-alist '("version=3" "mhchem")) Also, you might be inter

Re: (Feature Request) customise LaTeX-preview regex

2020-05-19 Thread Timothy
Hi Nicolas, Thanks for getting back to me on this. With regard to > I think you can preview \ce{...} just fine, with appropriate LaTeX headers. I'm entirely likely to be missing something, however from a minimal test in a document I'm unable to get org-latex-preview to do anything with the follo

Re: (Feature Request) customise LaTeX-preview regex

2020-05-19 Thread Nicolas Goaziou
Hello, Timothy writes: > 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 think you can preview \ce{...}

(Feature Request) customise LaTeX-preview regex

2020-05-18 Thread Timothy
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