From mboxrd@z Thu Jan 1 00:00:00 1970 From: Riccardo Romoli Subject: Re: AUCTex within org-babel Date: Thu, 9 Feb 2012 22:31:07 +0100 Message-ID: References: <87ty31csgh.fsf@gmx.com> <874nv1gil3.fsf@gmail.com> <87k43wf5lx.fsf@gmail.com> <87ehu4dj8r.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00235429dfa4e3cd1704b88eba04 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:49671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rvba9-0002bh-FY for emacs-orgmode@gnu.org; Thu, 09 Feb 2012 16:31:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rvba8-0000qs-1S for emacs-orgmode@gnu.org; Thu, 09 Feb 2012 16:31:09 -0500 Received: from mail-qy0-f169.google.com ([209.85.216.169]:41205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rvba7-0000qc-Sf for emacs-orgmode@gnu.org; Thu, 09 Feb 2012 16:31:07 -0500 Received: by qcsd16 with SMTP id d16so1421404qcs.0 for ; Thu, 09 Feb 2012 13:31:07 -0800 (PST) In-Reply-To: <87ehu4dj8r.fsf@gmail.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: =?ISO-8859-1?Q?Jonas_H=F6rsch?= Cc: emacs-orgmode@gnu.org --00235429dfa4e3cd1704b88eba04 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks Jonas!! I do not understand why the code works only if I use: #+begin_latex .... #+end-latex instead of : #+begin_src latex :exports results :results latex .... #+end_src mind that you could also use org constructs, for instance > > #+CAPTION: Figure example > #+LABEL: fig:foo > [[foo.jpg]] > I prefer to use the "original" LaTeX code!! Best Riccardo 2012/2/9 Jonas H=F6rsch > 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=3D1\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 > > > --00235429dfa4e3cd1704b88eba04 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks Jonas!!
I do not understand why the code works only if I use:
#+begin_latex
....
#+end-latex

instead of :

#+begi= n_src latex :exports results :results latex
....
#+end_src


mind that you could also use org constructs, for instance

#+CAPTION: Figure example
#+LABEL: fig:foo
[[foo.jpg]]

I prefer to use the "original" LaTeX code!!

Best
Ri= ccardo


2012/2/9 Jonas H=F6rsch <coroa@online.de>
On Thu, Feb 09 2012, Riccardo Romoli wrote:

> I have a further question: how can I export a = code like this:
>
> #+begin_src latex
> =A0 \begin{figure}
> =A0 =A0 \centering
> =A0 =A0 \includegraphics[width=3D1\textwidth]{foo.jpg}
> =A0 =A0 \caption{Figure example}
> =A0 =A0 \label{fig:foo}
> =A0 \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<= br> 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



--00235429dfa4e3cd1704b88eba04--