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