emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jay Kerns <gjkernsysu@gmail.com>
To: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: inline Babel calls in math environments and table cells
Date: Tue, 12 Mar 2013 11:35:45 -0400	[thread overview]
Message-ID: <CAFiLVradHDuv+U2hUJYMaW8-MSUd9kacX+YD4xDZuQiEcwpqkA@mail.gmail.com> (raw)
In-Reply-To: <CAFiLVrak=ffFjSNNn6o-J6odzQpc_Nj78fuj5Op6Dh2yvu2M5g@mail.gmail.com>

Hello,

I went back and spent some time to rethink how I was approaching my
problem.  Instead of inline src blocks like this:

\( SRC_R{blah} \)

or this

| SRC_R{blah} |

or even this

\begin{equation}
SRC_R{blah}
\end{equation}

I could get by doing noweb substitution like this:

#+NAME: foo
#+BEGIN_SRC R
blah
#+END_SRC

then elsewhere

#+BEGIN_SRC latex :noweb yes
Here is a bunch <<foo()>> of LaTeX markup
#+END_SRC

This method works. I think it would be cool if it were possible to
evaluate inline src blocks all over the place but on the other hand
there are other tools which might be better suited for that kind of
work. At least for the time being.  :-)

-- 
Jay

  reply	other threads:[~2013-03-12 15:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-11 20:54 inline Babel calls in math environments and table cells Jay Kerns
2013-03-11 21:08 ` Jay Kerns
2013-03-11 21:26 ` Eric Schulte
2013-03-11 23:10   ` Jay Kerns
2013-03-12 15:35     ` Jay Kerns [this message]
2013-03-13  2:31       ` Charles Berry
2013-03-13  3:02         ` Jay Kerns

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=CAFiLVradHDuv+U2hUJYMaW8-MSUd9kacX+YD4xDZuQiEcwpqkA@mail.gmail.com \
    --to=gjkernsysu@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).