From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: inline src_R also in latex src block Date: Tue, 10 Jan 2012 14:00:06 +0100 Message-ID: <877h0z7lwp.fsf@med.uni-goettingen.de> References: <4efdfe43.c9330e0a.78cb.ffff9b12@mx.google.com> <87pqf2c6q7.fsf@gmx.com> <4f0c2d36.812f0e0a.303f.738e@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkbJb-0001cV-Ko for emacs-orgmode@gnu.org; Tue, 10 Jan 2012 08:00:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RkbJQ-0005sP-Ni for emacs-orgmode@gnu.org; Tue, 10 Jan 2012 08:00:35 -0500 Received: from lo.gmane.org ([80.91.229.12]:58864) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkbJQ-0005rz-Bs for emacs-orgmode@gnu.org; Tue, 10 Jan 2012 08:00:24 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RkbJP-0000V6-4b for emacs-orgmode@gnu.org; Tue, 10 Jan 2012 14:00:23 +0100 Received: from genepi110.genepi.med.uni-goettingen.de ([134.76.140.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Jan 2012 14:00:23 +0100 Received: from andreas.leha by genepi110.genepi.med.uni-goettingen.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Jan 2012 14:00:23 +0100 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@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Michael Bach writes: > Eric Schulte writes: > > >> I don't know of a way to evaluate inline code blocks which are already >> inside of regular code blocks. > > Thanks for your thoughts on this, Eric. This would be *really* > convenient for me. Too bad the christmas wishlist was processed > already. > >> You could try direct begin_latex code blocks, but in-buffer font lock >> support may simply not be possible in this situation. >> > > Sadly, direct begin_latex code blocks get fontified with `org-block' and > also export the inline `src_R' snippets literally. > > What I was looking for is latex code fontified as AUCTeX and inline > `src_R' snippets evaluated prior to exporting. The only working > combination I got right now is inline `src_R' evaluation and no AUCTeX > font-lock. This is only a minor itch and not too bad considering what > org-mode already does for me. > > Best Regards, > Michael Hi Michael, would this noweb-based approach work for you: #+name: inner_test #+begin_src R 4 + 4 #+end_src #+name: test #+begin_src latex :noweb yes \begin{equation} <> \end{equation} #+end_src Cheers, Andreas