From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: How to treat string results of src-block calls like text in export? Date: Wed, 25 Jun 2014 02:00:40 +0200 Message-ID: <8738etuac7.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48819) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wzae7-0000LM-Mk for emacs-orgmode@gnu.org; Tue, 24 Jun 2014 20:01:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wzae0-0003Kw-7Q for emacs-orgmode@gnu.org; Tue, 24 Jun 2014 20:01:03 -0400 Received: from plane.gmane.org ([80.91.229.3]:33550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wzae0-0003Ki-0B for emacs-orgmode@gnu.org; Tue, 24 Jun 2014 20:00:56 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Wzady-0005ZT-DN for emacs-orgmode@gnu.org; Wed, 25 Jun 2014 02:00:54 +0200 Received: from e178188029.adsl.alicedsl.de ([85.178.188.29]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Jun 2014 02:00:54 +0200 Received: from tjolitz by e178188029.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Jun 2014 02:00:54 +0200 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: emacs-orgmode@gnu.org 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. -- cheers, Thorsten