From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?SsOpcsOpbWllIEp1c3Rl?= Subject: latex preview in latex block Date: Wed, 13 Apr 2016 11:32:07 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1142e70eb64ae105305a7417 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53225) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqH9z-0006dL-Ih for emacs-orgmode@gnu.org; Wed, 13 Apr 2016 05:32:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aqH9v-0007TC-MW for emacs-orgmode@gnu.org; Wed, 13 Apr 2016 05:32:31 -0400 Received: from mail-yw0-x235.google.com ([2607:f8b0:4002:c05::235]:35590) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqH9v-0007Sw-Hz for emacs-orgmode@gnu.org; Wed, 13 Apr 2016 05:32:27 -0400 Received: by mail-yw0-x235.google.com with SMTP id i84so60827339ywc.2 for ; Wed, 13 Apr 2016 02:32:27 -0700 (PDT) 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-org list , mail@nicolasgoaziou.fr --001a1142e70eb64ae105305a7417 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, > > J=C3=A9r=C3=A9mie Juste writes: > >> Is it possible to activate the latex preview in org-mode within in latex >> bloc? Nicolas Goaziou writes: > > It isn't possible out of the box. Org doesn't look at the contents of > src blocks, which are supposed to be written in a foreign language. > > However, you can probably write a function for your own use, starting > from `org-format-latex'. > > Regards, Actually, there is a simpler way of previewing the latex code from the output of a babel source block. We just need to specify :results output raw. For example #+begin_src R :results output raw #+end_src Best regards Jeremie Juste --001a1142e70eb64ae105305a7417 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,
&= gt;
> J=C3=A9r=C3=A9mie Juste <jeremiejuste@gmail.com> writes:
>
>> Is it pos= sible to activate the latex preview in org-mode within in latex
>>= bloc?

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
>
> It isn't possib= le out of the box. Org doesn't look at the contents of
> src bloc= ks, which are supposed to be written in a foreign language.
>
>= However, you can probably write a function for your own use, starting
&= gt; from `org-format-latex'.
>
> Regards,


Actually, there is a simpler way of previewing the latex code from th= e output of a babel source block. We just need to specify=C2=A0=C2=A0 :resu= lts output raw. For example

#+begin_src R :results output raw
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <some code that will output a l= atex table>
#+end_src

Best = regards

Jeremie Juste
--001a1142e70eb64ae105305a7417--