From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: How to treat string results of src-block calls like text in export? Date: Wed, 25 Jun 2014 05:01:27 +0200 Message-ID: <87simt1ym0.fsf@gmail.com> References: <8738etuac7.fsf@gmail.com> <87simtsrmm.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47374) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzdT5-0001oX-0l for emacs-orgmode@gnu.org; Tue, 24 Jun 2014 23:01:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzdSz-0002NT-Hj for emacs-orgmode@gnu.org; Tue, 24 Jun 2014 23:01:50 -0400 Received: from plane.gmane.org ([80.91.229.3]:45818) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzdSz-0002Ky-BO for emacs-orgmode@gnu.org; Tue, 24 Jun 2014 23:01:45 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WzdSy-0005jt-22 for emacs-orgmode@gnu.org; Wed, 25 Jun 2014 05:01:44 +0200 Received: from e178059054.adsl.alicedsl.de ([85.178.59.54]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Jun 2014 05:01:44 +0200 Received: from tjolitz by e178059054.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Jun 2014 05:01:44 +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 tsd@tsdye.com (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 ), now it works like a charm. Thanks! -- cheers, Thorsten