Re: [PATCH] org-manual and cdlatex url (was Re: org-latex-preview and font-locking)

2025-04-19 Thread Ihor Radchenko
Leo Butler writes: > My intention was to replace the broken link > (https://staff.fnwi.uva.nl/c.dominik/Tools/cdlatex/) with an uptodate > one. > > I understand your reservation, so I have excised the reference to the > github repo. > > Take 3. Applied, onto main. https://git.savannah.gnu.org/cg

Re: [PATCH] org-manual and cdlatex url (was Re: org-latex-preview and font-locking)

2025-04-18 Thread Leo Butler
On Thu, Apr 17 2025, Ihor Radchenko wrote: > Leo Butler writes: > >>> Better https://elpa.nongnu.org/nongnu/cdlatex.html >> >> Take 2. >> -from [[https://elpa.nongnu.org/][NonGNU ELPA]] with the >> [[https://www.gnu.org/software/emacs/manual/html_node/emacs/Package-Installation.html][Emacs >> pa

Re: [PATCH] org-manual and cdlatex url (was Re: org-latex-preview and font-locking)

2025-04-17 Thread Ihor Radchenko
Leo Butler writes: >> Better https://elpa.nongnu.org/nongnu/cdlatex.html > > Take 2. > -from [[https://elpa.nongnu.org/][NonGNU ELPA]] with the > [[https://www.gnu.org/software/emacs/manual/html_node/emacs/Package-Installation.html][Emacs > packaging system]] or alternatively from > -[[https://

Re: org-latex-preview and font-locking

2025-04-17 Thread Ihor Radchenko
Karthik Chikmagalur writes: >>> For syntax highlighting in LaTeX environments you can use >>> >>> (setq org-highlight-latex-and-related '(native)) >> >> Ok, thanks, that works nicely. Why isn't that the default? > > Ihor, I'm curious to know if the fontification of LaTeX export blocks > suffers

Re: org-latex-preview and font-locking

2025-04-16 Thread Leo Butler
On Tue, Apr 15 2025, Karthik Chikmagalur wrote: > `org-cdlatex-mode' provides several ways to quick-insert environments > and LaTeX macros. With this mode enabled, there are many equivalents of > C-c C-e in LaTeX buffers: > > - C-c { > - Type in "beg" and press TAB > - Type in "env" and press TA

Re: org-latex-preview and font-locking

2025-04-15 Thread Karthik Chikmagalur
>> For syntax highlighting in LaTeX environments you can use >> >> (setq org-highlight-latex-and-related '(native)) > > Ok, thanks, that works nicely. Why isn't that the default? Ihor, I'm curious to know if the fontification of LaTeX export blocks suffers from the same performance issues as set

Re: [PATCH] org-manual and cdlatex url (was Re: org-latex-preview and font-locking)

2025-04-15 Thread Leo Butler
On Tue, Apr 15 2025, Ihor Radchenko wrote: > Leo Butler writes: > >> Subject: [PATCH] doc/org-manual.org: update CDLaTeX url >> ... >> -[[https://staff.fnwi.uva.nl/c.dominik/Tools/cdlatex/]]. Do not use >> +[[https://github.com/cdominik/cdlatex][CDLaTeX's Github repository]]. Do >> not use >

Re: [PATCH] org-manual and cdlatex url (was Re: org-latex-preview and font-locking)

2025-04-15 Thread Ihor Radchenko
Leo Butler writes: > Subject: [PATCH] doc/org-manual.org: update CDLaTeX url > ... > -[[https://staff.fnwi.uva.nl/c.dominik/Tools/cdlatex/]]. Do not use > +[[https://github.com/cdominik/cdlatex][CDLaTeX's Github repository]]. Do > not use Better https://elpa.nongnu.org/nongnu/cdlatex.html --

[PATCH] org-manual and cdlatex url (was Re: org-latex-preview and font-locking)

2025-04-15 Thread Leo Butler
On Tue, Apr 15 2025, Yu Huang wrote: > You may give a try to org-cdlatex-mode, provided by cdlatex.el. It > offers plenty of useful and convenient snippets (functions) for > inserting latex environment in org-mode. Thanks for the suggestion, I will give it a try. Patch to org-manual.org attache

Re: org-latex-preview and font-locking

2025-04-15 Thread Ihor Radchenko
Rudolf Adamkovič writes: > Leo Butler writes: > >> Ok, thanks, that works nicely. Why isn't that the default? > > I would like to ask the same question. :) 1. It can significantly degrade performance 2. Not everyone is keen on too much fontification -- Ihor Radchenko // yantar92, Org mode mai

Re: org-latex-preview and font-locking

2025-04-15 Thread Rudolf Adamkovič
Leo Butler writes: > Ok, thanks, that works nicely. Why isn't that the default? I would like to ask the same question. :) Rudy -- "Chop your own wood and it will warm you twice." --- Henry Ford; Francis Kinloch, 1819; Henry David Thoreau, 1854 Rudolf Adamkovič [he/him] http://adamkovic.org

Re: org-latex-preview and font-locking

2025-04-14 Thread Yu Huang
> Due to various conveniences, it means typing about 2/3 less. Consider > > C-c C-, l ;; insert a latex export block > C-c C-' ;; open an editing buffer > C-c C-e ;; select an environment > al TAB * RET > > versus > > \begin{align*};; insert literal text > > \end{align*} ;;

Re: org-latex-preview and font-locking

2025-04-14 Thread Leo Butler
On Sun, Apr 13 2025, Karthik Chikmagalur wrote: >>> Q: Why does `org-latex-preview' not work on blocks like: >>> >>> #+begin_export latex >>> \begin{equation} >>> x^2 + y^2 = z^2 >>> \end{equation} >>> #+end_export >>> >>> I use these blocks to take advantage of syntax highlighting (and it is >>>

Re: org-latex-preview and font-locking

2025-04-13 Thread Ihor Radchenko
Leo Butler writes: > Q: Why does `org-latex-preview' not work on blocks like: > > #+begin_export latex > \begin{equation} > x^2 + y^2 = z^2 > \end{equation} > #+end_export > > I use these blocks to take advantage of syntax highlighting (and it is > quicker to write than not including the export b

Re: org-latex-preview and font-locking

2025-04-13 Thread Karthik Chikmagalur
>> Q: Why does `org-latex-preview' not work on blocks like: >> >> #+begin_export latex >> \begin{equation} >> x^2 + y^2 = z^2 >> \end{equation} >> #+end_export >> >> I use these blocks to take advantage of syntax highlighting (and it is >> quicker to write than not including the export block around