From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [Feature request] LaTeX blocks preview Date: Sat, 19 Aug 2017 10:57:12 +0200 Message-ID: <87378olytz.fsf@nicolasgoaziou.fr> References: <9ec2ba3edfeedf8fb05ec988b8669411@openmail.cc> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43304) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dizZD-0007fL-RB for emacs-orgmode@gnu.org; Sat, 19 Aug 2017 04:57:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dizZC-00039y-P2 for emacs-orgmode@gnu.org; Sat, 19 Aug 2017 04:57:15 -0400 Received: from relay2-d.mail.gandi.net ([2001:4b98:c:538::194]:48050) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dizZC-00039b-Hb for emacs-orgmode@gnu.org; Sat, 19 Aug 2017 04:57:14 -0400 In-Reply-To: <9ec2ba3edfeedf8fb05ec988b8669411@openmail.cc> (edgar@openmail.cc's message of "Mon, 14 Aug 2017 20:33:36 +0000") 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: edgar@openmail.cc Cc: emacs-orgmode@gnu.org Hello, edgar@openmail.cc writes: > I would like to ask if it is possible to preview latex blocks. Something > like this (replace EXPORT with SRC, if you wish): > > #+BEGIN_EXPORT latex > \begin{align} > I_{0} > & > \max{(\lambda_{f}^{2})} > \\ > & > 2^{2} > \\ > I_{0} & > 4 > \end{align} > #+END_EXPORT > > to be previewed in the same way as > > \begin{align} > I_{0} > & > \max{(\lambda_{f}^{2})} > \\ > & > 2^{2} > \\ > I_{0} & > 4 > \end{align} It is not possible in the general case. The export block is not guaranteed to contain a complete environment; it isn't necessarily displayable either. > - Related :: > - org-edit-latex-mode > There is org-edit-latex-mode, but it requires some extra work: > 1. org-edit-special (C-') > 2. org-edit-latex-preview-at-point (C-c C-p C-p) > 3. org-edit-src-exit (C-') > > Besides, the preview does not stay in the original Org-mode buffer, > but it's lost with step 3. I think this is an acceptable workaround. I think AucTeX has its own previewing mechanism, so step 2 may not be required. Regards, -- Nicolas Goaziou