emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Named latex blocks for inline execution?


From: Phil Regier
Subject: Re: [O] Named latex blocks for inline execution?
Date: Fri, 14 Mar 2014 12:42:07 -0500 (CDT)

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" <address@hidden>
To: "Phil Regier" <address@hidden>
Cc: "org mode" <address@hidden>
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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]