Re: Using org-latex-preview in other major modes

2024-04-22 Thread Tony Zorman
happen :)) > 3. How to force precompilation to occur in the default-directory instead >of in /tmp: > >Based on 1 and 2, the easiest way would be to add an \input{} or >\include{} statement to the preamble. The current test is very >simple, you can even place it in a LaTeX comment and it should work. This does indeed work; thanks! Tony -- Tony Zorman | https://tony-zorman.com/

Re: Using org-latex-preview in other major modes

2024-04-21 Thread Tony Zorman
On Tue, Apr 09 2024 22:06, Tony Zorman wrote: > As a very brief summary, one currently needs to—in addition to supplying > a preamble and a way to recognise maths and environments—patch the > following functions: > > · org-latex-preview--place-from-elements > · org-

Re: Using org-latex-preview in other major modes

2024-04-09 Thread Tony Zorman
nudged to more easily facilitate this kind of integration. After that I guess there's still the issue of caching and numbering, but I'll cross that bridge once we get to it :) Tony -- Tony Zorman | https://tony-zorman.com/

Re: Using org-latex-preview in other major modes

2024-04-08 Thread Tony Zorman
Then again, maybe I'm being too negative—after taking another quick look at the code I think you're right in that this should not be impossible to overcome. I'll try to conjure up some time this week to get live previews up and running; will report back if I hit any unforeseen major bumps. Tony -- Tony Zorman | https://tony-zorman.com/

Using org-latex-preview in other major modes

2024-04-07 Thread Tony Zorman
the way. Tony [1]: https://abode.karthinks.com/org-latex-preview/latex-preview-everywhere.html latex-latex-preview.el Description: application/emacs-lisp -- Tony Zorman | https://tony-zorman.com/

Re: The org--math-p advice around texmathp

2024-03-16 Thread Tony Zorman
point. I guess I would wish for more granular advice, but I recognise the difficulty in getting this exactly right. Thanks for your patience! Tony -- Tony Zorman | https://tony-zorman.com/

Re: The org--math-p advice around texmathp

2024-03-15 Thread Tony Zorman
On Fri, Mar 15 2024 14:14, Ihor Radchenko wrote: > Tony Zorman writes: > >>> Because Org mode syntax is not LaTeX and `texmathp' assumes that we are >>> inside >>> LaTeX buffer. So, we first check using Org syntax whether the point is >>> inside latex f

Re: The org--math-p advice around texmathp

2024-03-14 Thread Tony Zorman
On Wed, Mar 13 2024 12:58, Ihor Radchenko wrote: > Tony Zorman writes: > >> I recently stumbled upon the fact that Org has some around advice for >> texmathp: org--math-p. For reasons that aren't entirely clear to me, >> this has some special handling for cdlatex-mat

The org--math-p advice around texmathp

2024-03-12 Thread Tony Zorman
? I'm asking because I wrote a small package to switch between environments, and the position information that texmathp-why provides is very useful in choosing the closest environment. Thanks! Tony -- Tony Zorman | https://tony-zorman.com/

Re: [Pre-PATCH] Overhaul of the LaTeX preview system

2023-03-28 Thread Tony Zorman
s a rendered LaTeX fragment. This is very convenient when, for example, going through a rendered document by pressing C-n or , as unprettifying in this case is (at least in my case) a mistake more often than not. Thanks! Tony -- Tony Zorman | https://tony-zorman.com/