From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Fabrice Niessen" Subject: Re: How do I specify the language for a :results code block Date: Wed, 04 Dec 2013 21:06:27 +0100 Message-ID: <86li00l6t8.fsf@somewhere.org> References: <8661r7ze4y.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hello Alan, Alan Schmitt wrote: > I tried to apply the drawer trick to the :wrap src but it does not work, > unfortunately. I like your approach better anyway as it allows me to spec= ify > not only the language used by the output source block, but other properti= es > (such as whether it should be evaluated) which wrap does not let me do. Not sure this is true. Look at the following tricky example from my slides = for the "stage LaTeX de Dunkerque 2013" [1]: #+begin_src org :results latex replace :wrap "SRC latex :exports code" :exp= orts results <> #+end_src It does eval as: #+results: #+BEGIN_SRC latex :exports code \begin{itemize} \item Premier =C3=A9l=C3=A9ment \begin{itemize} \item Niveau plus profond \end{itemize} \item Autre =C3=A9l=C3=A9ment \item Dernier =C3=A9l=C3=A9ment \end{itemize} #+END_SRC which in turn evals (for the export) into the results: #+results: #+BEGIN_LaTeX \begin{itemize} \item Premier =C3=A9l=C3=A9ment \begin{itemize} \item Niveau plus profond \end{itemize} \item Autre =C3=A9l=C3=A9ment \item Dernier =C3=A9l=C3=A9ment \end{itemize} #+END_LaTeX So, you definitely can pass extra options to the wrap header argument... Best regards, Fabrice [1] See http://www.slideshare.net/fniessen/org-modelatexexport or https://github.com/fniessen/stage-latex-dunkerque-2013/. --=20 Fabrice Niessen Leuven, Belgium