[Top][All Lists]

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

Re: [O] Does org export have something like Lisp quasiquote and unquote?

From: Alan Schmitt
Subject: Re: [O] Does org export have something like Lisp quasiquote and unquote?
Date: Thu, 20 Feb 2014 22:48:25 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin)

Eric Schulte <address@hidden> writes:

> Oleh <address@hidden> writes:
>>> Think of code blocks as macros with optional interactive expansion.  If
>>> you don't execute the code block you need not ever see the results,
>>> however with an additional ":exports results" header argument the code
>>> block will be executed and replaced with it's results on export.
>>> Take a look at the (info "(org) Working With Source Code") portion of
>>> the Org-mode manual.
>> Thanks, I'll look there.
>> Is it possible to have a code block that evals to a string wrapped in
>> #+BEGIN_HTML, #+END_HTML and be treated as a HTML block on export?
> Yes, see (info "(org) results").

As Eric suggested, the simplest is something like ":results value html"
or ":results output html". But if you need something more involved,
please keep reading.

I recently had to use something similar, where the result of a code
block would need to be wrapped in #+begin_src / #+end_src. After much
help from this list, I ended up with this solution:

You can ignore / replace the "fetchsrc" bit with the code you want to
evaluate, and adapt the "wrap-coq" to your setting.


reply via email to

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