[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] How to treat string results of src-block calls like text in expo
From: |
Thorsten Jolitz |
Subject: |
Re: [O] How to treat string results of src-block calls like text in export? |
Date: |
Wed, 25 Jun 2014 05:01:27 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
address@hidden (Thomas S. Dye) writes:
Hi Thomas,
> I use this a lot in my work, but hadn't tried it in a headline. I tried
> it with the call line in a headline and that works, too. This subtree
> is in a file called personal.org.
>
> * Jolitz
>
> #+name: project-name
> #+header: :exports none :results raw
> #+begin_src emacs-lisp
> (mapconcat
> 'capitalize
> (split-string
> (file-name-nondirectory
> (directory-file-name
> (file-name-directory
> (buffer-file-name (current-buffer)))))
> "-" 'OMIT-NULLS)
> " ")
> #+end_src
>
> ** call_project-name()[:results raw]
>
> ** Impersonal
>
> The LaTeX export looks like this, in part:
>
> \section{Personal}
> \label{sec-1}
>
> \section{Impersonal}
> \label{sec-2}
> % Emacs 24.3.1 (Org mode beta_8.3)
>
> Alternatively, you can put :results raw in a header-args property of the
> subtree and then just call_project-name().
,----
| ** call_project-name()[:results raw]
`----
Thats it, I used :results raw for the called block, not for the caller
(like in <end header arguments>), now it works like a charm.
Thanks!
--
cheers,
Thorsten