From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlos Pita Subject: Re: 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 Message-ID: References: <87h8g2kv81.fsf@gmail.com> <87lg5ershk.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39015) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRnV2-0004gx-HX for emacs-orgmode@gnu.org; Tue, 27 Nov 2018 19:14:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gRnV1-0000v7-Ey for emacs-orgmode@gnu.org; Tue, 27 Nov 2018 19:14:40 -0500 Received: from mail-yw1-xc31.google.com ([2607:f8b0:4864:20::c31]:36351) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gRnUz-0000sm-Ee for emacs-orgmode@gnu.org; Tue, 27 Nov 2018 19:14:38 -0500 Received: by mail-yw1-xc31.google.com with SMTP id y194so9974503ywg.3 for ; Tue, 27 Nov 2018 16:14:36 -0800 (PST) In-Reply-To: <87lg5ershk.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org > > 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