emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Riccardo Romoli <ric.romoli@gmail.com>
To: "Jonas Hörsch" <coroa@online.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: AUCTex within org-babel
Date: Thu, 9 Feb 2012 22:31:07 +0100	[thread overview]
Message-ID: <CAHiM-bNnXZuWPSk16ryuk3Np83RGHhtx5MdqLOUqs94qiPGygQ@mail.gmail.com> (raw)
In-Reply-To: <87ehu4dj8r.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1339 bytes --]

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örsch <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
> >   \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
>
>
>

[-- Attachment #2: Type: text/html, Size: 1944 bytes --]

  reply	other threads:[~2012-02-09 21:31 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
2012-02-09 21:31               ` Riccardo Romoli [this message]
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=CAHiM-bNnXZuWPSk16ryuk3Np83RGHhtx5MdqLOUqs94qiPGygQ@mail.gmail.com \
    --to=ric.romoli@gmail.com \
    --cc=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).