Many thanks, Tom; these are all variations I had not thought to try. I will try them out and see what combination works best for me.
Phil ----- Original Message ----- From: "Thomas S. Dye" <t...@tsdye.com> To: "Phil Regier" <preg...@ittc.ku.edu> Cc: "org mode" <emacs-orgmode@gnu.org> Sent: Friday, March 14, 2014 11:54:04 AM Subject: Re: Named latex blocks for inline execution? Aloha Phil, Org mode has its own macros, which might work in this instance. The variable org-babel-inline-result-wrap is set to "=%s=" by default. Setting it as follows will get rid of the surrounding = symbols: #+begin_src emacs-lisp (setq org-babel-inline-result-wrap "%s") #+end_src Alternatively, on my setup at least, call_Smx()[:results raw] will also get rid of the surrounding = symbols. The capitalization of "pi" seems to be related to capitalization of the variable name "Contents". This is new to me and I don't recall reading about it in the documentation, but I haven't looked lately. At any rate, if I name the variable "contents" then I get a lowercase "pi" in the output. My guess about the "backslash" part is that Org mode is expecting an inline LaTeX math snippet to be on one line. At any rate, this seems to work for me: #+name: Smx #+begin_src latex :var contents="\\\\pi" \begin{equation} \left[ \begin{smallmatrix} contents \end{smallmatrix} \right] \end{equation} #+end_src hth, Tom