From mboxrd@z Thu Jan 1 00:00:00 1970 From: Riccardo Romoli Subject: Re: AUCTex within org-babel Date: Wed, 8 Feb 2012 15:51:26 +0100 Message-ID: References: <87ty31csgh.fsf@gmx.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf30334fb7b894d304b8750796 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:41212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rv8rp-0001Ig-Cy for emacs-orgmode@gnu.org; Wed, 08 Feb 2012 09:51:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rv8ro-0001Gq-6U for emacs-orgmode@gnu.org; Wed, 08 Feb 2012 09:51:29 -0500 Received: from mail-qy0-f169.google.com ([209.85.216.169]:38136) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rv8ro-0001Gj-1Y for emacs-orgmode@gnu.org; Wed, 08 Feb 2012 09:51:28 -0500 Received: by qcsd16 with SMTP id d16so397479qcs.0 for ; Wed, 08 Feb 2012 06:51:27 -0800 (PST) In-Reply-To: <87ty31csgh.fsf@gmx.com> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: emacs-orgmode@gnu.org --20cf30334fb7b894d304b8750796 Content-Type: text/plain; charset=ISO-8859-1 Hi Eric, thanks a lot for your answer!! I completely ignore that C-c' lunch the small buffer for all the code within the src blocks. I belive it was used only for ESS.... Best Riccardo 2012/2/8 Eric Schulte > Riccardo Romoli writes: > > > Hi, is there a way to include the AUCTeX function (i.e. to create a > figure > > or a table or insert a font...) and markup color, within an org-babel > > document? > > > > If I understand your question correctly you want AUCTeX mode to be > active in an Org-mode document. Generally this is not possible as > Org-mode is the active mode and AUCTeX and Org would conflict in many > ways. > > If you want syntax highlighting for a particular chunk of latex code, > you can may it in a src block > > #+begin_src latex > your latex here... > #+end_src > > and then customize the `org-src-fontify-natively' variable. Pressing > C-c ' from withing the code block will then launch a small buffer in > AUCTeX mode. > > Best, > > > > > Best > > Riccardo > > -- > Eric Schulte > http://cs.unm.edu/~eschulte/ > --20cf30334fb7b894d304b8750796 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Eric,
thanks a lot for your answer!! I completely ignore that C-c'= ; lunch the small buffer for all the code within the src blocks. I belive i= t was used only for ESS....

Best
Riccardo

2012/2/8 Eric Schulte <eric.schulte@gmx.com>
Riccardo Romoli <ric.romoli@gmail.com> writes:

> Hi, is there a way to include the AUCTeX function (i.e. to create a fi= gure
> or a table or insert a font...) and markup color, =A0within an org-bab= el
> document?
>

If I understand your question correctly you want AUCTeX mode to= be
active in an Org-mode document. =A0Generally this is not possible as
Org-mode is the active mode and AUCTeX and Org would conflict in many
ways.

If you want syntax highlighting for a particular chunk of latex code,
you can may it in a src block

#+begin_src latex
=A0your latex here...
#+end_src

and then customize the `org-src-fontify-natively' variable. =A0Pressing=
C-c ' from withing the code block will then launch a small buffer in AUCTeX mode.

Best,

>
> Best
> Riccardo

--
Eric Schulte
http://cs.unm.= edu/~eschulte/

--20cf30334fb7b894d304b8750796--