[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 03:30:09 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
address@hidden (Thomas S. Dye) writes:
Hi Thomas,
> Thorsten Jolitz <address@hidden> writes:
>
>> Hi List,
>>
>> with this org file
>>
>> ,----
>> | #+name: project-name
>> | #+header: :exports none
>> | #+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()
>> | some text
>> |
>> | * Sourcedir
>> | more text
>> `----
>>
>> I get this when exporting to ascii (excerpt):
>>
>> ,----
>> | Table of Contents
>> | _________________
>> |
>> | 1 `Testdir'
>> | 2 Sourcedir
>> |
>> |
>> | 1 `Testdir'
>> | ===========
>> |
>> | some text
>> |
>> |
>> | 2 Sourcedir
>> | ===========
>> |
>> | more text
>> `----
>>
>> and this when exporting to latex (excerpt):
>>
>> ,----
>> | \section{\texttt{Testdir}}
>> | \label{sec-1}
>> | some text
>> |
>> | \section{Sourcedir}
>> | \label{sec-2}
>> | more text
>> `----
>>
>> How do I achieve that the string returned by the src-block call is
>> treated just like normal text?
>>
>> I tried using (format ...) as well as several :results options, even
>> (intern ...), but to no avail.
>
> Here :results raw achieves what I think you want.
Unfortunately not, I tried that before, and now again, same outpout as
shown above. Did it work for you?
--
cheers,
Thorsten