emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Bug: Add option to fontify latex blocks [9.1.9 (release_9.1.9-65


From: Carlos Pita
Subject: Re: [O] Bug: Add option to fontify latex blocks [9.1.9 (release_9.1.9-65-g5e4542 @ /home/carlos/local/stow/emacs-26/share/emacs/26.1.50/lisp/org/)]
Date: Tue, 27 Nov 2018 21:14:22 -0300

> > 1. #+BEGIN_LATEX could be changed to honor current fontification
> > setting
>
> This construct doesn't exist in Org.

Yes, I realized after posting, it was suggested in reddit but I was
unable to find any reference to it in the source code. Maybe it did
exist in the past since it's often mentioned in stackexchange and
reddit.

> > 2. #+BEGIN_EXPORT latex should be changed to allow inline preview
> It is not a bug. Why would it be one?

The behavior of

   (P) previews,
   (E) C-c ' editing and
   (F) native fontification

is very inconsistent for latex:

1. $xxx$ and $$xxx$$ no (F) no (E) but (P)

2. \begin{xxx}...\end{xxx} no (F) but (E) and (P)

3. #+BEGIN_EXPORT latex and #+LATEX  no (P) but (E) and (F)

I understand the limited behavior of $...$ since it's intended to be
for short snippets.

The lack of features for $$...$$ is more questionable. And you can do
\begin{displaymath}, which is exactly the same, and get (E).

Anyway, if there were an option for long code fragments to be
correctly folded, fontified, edited and previewed I would pay the
price of the "#+BEGIN_EXPORT latex" extra typing. The only problem is
that previews are not working there. So why not activate previews
inside export environments of latex type to get the full combo?

Regards
--
Carlos





>
> Regards,
>
> --
> Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]