From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: inline src_R also in latex src block Date: Mon, 02 Jan 2012 10:49:33 -0700 Message-ID: <87pqf2c6q7.fsf@gmx.com> References: <4efdfe43.c9330e0a.78cb.ffff9b12@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:46259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RhmOk-0004Qj-4e for emacs-orgmode@gnu.org; Mon, 02 Jan 2012 13:14:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RhmOj-0002jd-1K for emacs-orgmode@gnu.org; Mon, 02 Jan 2012 13:14:14 -0500 Received: from mailout-us.gmx.com ([74.208.5.67]:55592) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RhmOi-0002jZ-OR for emacs-orgmode@gnu.org; Mon, 02 Jan 2012 13:14:13 -0500 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: Michael Bach Cc: emacs-orgmode@gnu.org Michael Bach writes: > Hello, > > I am using org-mode version 7.8.02 > > I can successfully do inline `src_R' e.g. via > > \begin{equation} > src_R{4 + 4} > \end{equation} > > where `8' is put into the equation environment on export. Sadly, there > is no LaTeX font lock in the org file this way. But when I do it inside > a latex src block providing font lock, e.g. > > #+name: test > #+begin_src latex > \begin{equation} > src_R{4 + 4} > \end{equation} > #+end_src > > the `src_R' is put in literally on latex export. > > Is there a way of preprocessing this latex src block with babel for R > prior to exporting? > I don't know of a way to evaluate inline code blocks which are already inside of regular code blocks. You could try direct begin_latex code blocks, but in-buffer font lock support may simply not be possible in this situation. Best, > > Thanks in advance, > Michael > > -- Eric Schulte http://cs.unm.edu/~eschulte/