emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Schulte <eric.schulte@gmx.com>
To: Michael Bach <phaebz@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: inline src_R also in latex src block
Date: Mon, 02 Jan 2012 10:49:33 -0700	[thread overview]
Message-ID: <87pqf2c6q7.fsf@gmx.com> (raw)
In-Reply-To: 4efdfe43.c9330e0a.78cb.ffff9b12@mx.google.com

Michael Bach <phaebz@gmail.com> 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/

  reply	other threads:[~2012-01-02 18:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-30 18:13 inline src_R also in latex src block Michael Bach
2012-01-02 17:49 ` Eric Schulte [this message]
2012-01-10 12:25   ` Michael Bach
2012-01-10 13:00     ` Andreas Leha
2012-01-10 23:25       ` Michael Bach
2012-01-11  7:54         ` Sebastien Vauban
2012-01-12 11:57           ` Michael Bach
2012-01-11  8:41         ` Andreas Leha
2012-01-12 12:00           ` Michael Bach

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pqf2c6q7.fsf@gmx.com \
    --to=eric.schulte@gmx.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=phaebz@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).