From mboxrd@z Thu Jan 1 00:00:00 1970 From: coroa@online.de (Jonas =?utf-8?Q?H=C3=B6rsch?=) Subject: Re: AUCTex within org-babel Date: Thu, 09 Feb 2012 18:11:48 +0100 Message-ID: <87ehu4dj8r.fsf@gmail.com> References: <87ty31csgh.fsf@gmx.com> <874nv1gil3.fsf@gmail.com> <87k43wf5lx.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:36165) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvXXV-0003hi-30 for emacs-orgmode@gnu.org; Thu, 09 Feb 2012 12:12:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RvXXQ-0004kJ-6c for emacs-orgmode@gnu.org; Thu, 09 Feb 2012 12:12:09 -0500 Received: from plane.gmane.org ([80.91.229.3]:52050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvXXQ-0004k3-09 for emacs-orgmode@gnu.org; Thu, 09 Feb 2012 12:12:04 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1RvXXM-00080q-Pj for emacs-orgmode@gnu.org; Thu, 09 Feb 2012 18:12:00 +0100 Received: from kafka.exp.univie.ac.at ([131.130.102.14]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 09 Feb 2012 18:12:00 +0100 Received: from coroa by kafka.exp.univie.ac.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 09 Feb 2012 18:12:00 +0100 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: emacs-orgmode@gnu.org On Thu, Feb 09 2012, Riccardo Romoli wrote: > I have a further question: how can I export a code like this: > > #+begin_src latex > \begin{figure} > \centering > \includegraphics[width=1\textwidth]{foo.jpg} > \caption{Figure example} > \label{fig:foo} > \end{figure} > #+end_src > > to LaTeX to obtain a "working" figure code?? > it seems to do what you want, when you instead use #+begin_latex ... #+end_latex C-' also still does the same. only the native fontification in the org buffer doesn't work irrespective of the org-src-fontify-natively setting. perhaps there is another variable for that. mind that you could also use org constructs, for instance #+CAPTION: Figure example #+LABEL: fig:foo [[foo.jpg]] exports to something rather similar. cheers, jonas