Karthik Chikmagalur <karthikchikmaga...@gmail.com> 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 from the same performance issues as setting > org-highlight-latex-and-related to '(native).
I just checked, and I believe that it should not. At least, export blocks are not using that crazy regexp for matching. >> So this observation is really about my work-style, and why I prefer to >> use export latex blocks. > > `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 TAB +1 I do not think that trying to replicate org-cdlatex in Org mode is a good idea. >> The question about why export latex blocks are not available for preview >> remains. > > This requires changes in several places across org-latex-preview.el, but > they can be made available if Ihor thinks they should. To minimize > breaking changes, in the LaTeX preview rewrite we are following the > previous org-latex-preview behavior, which ignores export LaTeX blocks. That will be a new user-facing feature. Not a big deal given that you are already rolling out a new big user-facing feature. We may be extra safe and also give some kind of toggle to control which block types to preview. But I do not think that it is necessary. I am much more concerned about affects on export and other non-interactive behaviors. That's were people may be caught by surprise and get things broken. Changes in interactive behavior are much more obvious and will be noticed. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>