emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: coroa@online.de (Jonas Hörsch)
To: emacs-orgmode@gnu.org
Subject: Re: AUCTex within org-babel
Date: Thu, 09 Feb 2012 18:11:48 +0100	[thread overview]
Message-ID: <87ehu4dj8r.fsf@gmail.com> (raw)
In-Reply-To: CAHiM-bMiH7S9Ebu-CThBA+oBq-m=dX3x+=Lfa7P_z2G_ZxXS+w@mail.gmail.com

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

  reply	other threads:[~2012-02-09 17:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-08 10:07 AUCTex within org-babel Riccardo Romoli
2012-02-08 14:25 ` Eric Schulte
2012-02-08 14:51   ` Riccardo Romoli
2012-02-08 20:45     ` Jonas Hörsch
2012-02-09 14:07       ` Riccardo Romoli
2012-02-09 14:23         ` Jonas Hörsch
2012-02-09 15:48           ` Riccardo Romoli
2012-02-09 17:11             ` Jonas Hörsch [this message]
2012-02-09 21:31               ` Riccardo Romoli
2012-02-10 12:11                 ` Jonas Hörsch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ehu4dj8r.fsf@gmail.com \
    --to=coroa@online.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).