Re: [O] AUCTex within org-babel

2012-02-10 Thread Jonas Hörsch
hi riccardo, On Thu, Feb 09 2012, Riccardo Romoli wrote: I do not understand why the code works only if I use: #+begin_src latex :exports results :results latex #+end_src for this to work you have to add (latex . t) to org-babel-load-languages. but it's actually thought to be used to

Re: [O] AUCTex within org-babel

2012-02-09 Thread Riccardo Romoli
Hi, Jonas if you enter in the AUCTeX buffer (C-c') and than you use the AUCTeX C-c C-e, you can choose the environment you need in the emacs minibuffer such as in LaTeX. Best Riccardo 2012/2/8 Jonas Hörsch co...@online.de Hi list, On Wed, Feb 08 2012, Riccardo Romoli wrote: thanks a lot

Re: [O] AUCTex within org-babel

2012-02-09 Thread Jonas Hörsch
hi riccardo, On Thu, Feb 09 2012, Riccardo Romoli wrote: if you enter in the AUCTeX buffer (C-c') and than you use the AUCTeX C-c C-e, you can choose the environment you need in the emacs minibuffer such as in LaTeX. yes, indeed. and my claim was, that the completion facility of AUCTeX then

Re: [O] AUCTex within org-babel

2012-02-09 Thread Riccardo Romoli
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?? Best Riccardo

Re: [O] AUCTex within org-babel

2012-02-09 Thread Jonas Hörsch
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

Re: [O] AUCTex within org-babel

2012-02-09 Thread Riccardo Romoli
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

Re: [O] AUCTex within org-babel

2012-02-08 Thread Eric Schulte
Riccardo Romoli ric.rom...@gmail.com writes: Hi, is there a way to include the AUCTeX function (i.e. to create a figure or a table or insert a font...) and markup color, within an org-babel document? If I understand your question correctly you want AUCTeX mode to be active in an Org-mode

Re: [O] AUCTex within org-babel

2012-02-08 Thread Riccardo Romoli
Hi Eric, thanks a lot for your answer!! I completely ignore that C-c' lunch the small buffer for all the code within the src blocks. I belive it was used only for ESS Best Riccardo 2012/2/8 Eric Schulte eric.schu...@gmx.com Riccardo Romoli ric.rom...@gmail.com writes: Hi, is there a way

Re: [O] AUCTex within org-babel

2012-02-08 Thread Jonas Hörsch
Hi list, On Wed, Feb 08 2012, Riccardo Romoli wrote: thanks a lot for your answer!! I completely ignore that C-c' lunch the small buffer for all the code within the src blocks. I belive it was used only for ESS the only remaining problem is that the AUCTeX mode tries to be smart about