From mboxrd@z Thu Jan 1 00:00:00 1970 From: Phil Regier Subject: Re: Named latex blocks for inline execution? Date: Fri, 14 Mar 2014 12:42:07 -0500 (CDT) Message-ID: <64601713.635453.1394818927590.JavaMail.zimbra@ittc.ku.edu> References: <1549029341.634736.1394809114208.JavaMail.zimbra@ittc.ku.edu> <772126696.634943.1394810757105.JavaMail.zimbra@ittc.ku.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39594) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOWQI-000846-KD for emacs-orgmode@gnu.org; Fri, 14 Mar 2014 14:01:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WOWQD-0004gE-0l for emacs-orgmode@gnu.org; Fri, 14 Mar 2014 14:01:34 -0400 Received: from [129.237.125.220] (port=44862 helo=stephens.ittc.ku.edu) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOWQC-0004fl-Sg for emacs-orgmode@gnu.org; Fri, 14 Mar 2014 14:01:28 -0400 In-Reply-To: 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: "Thomas S. Dye" Cc: org mode 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" To: "Phil Regier" Cc: "org mode" 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