From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: macro expansion in #+begin_latex Date: Sun, 14 Jun 2015 10:04:18 -0700 Message-ID: References: <87ioarzgtf.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4BKf-00012v-Nw for emacs-orgmode@gnu.org; Sun, 14 Jun 2015 13:04:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z4BKb-0002d4-KG for emacs-orgmode@gnu.org; Sun, 14 Jun 2015 13:04:29 -0400 Received: from iport-bcv2-out.ucsd.edu ([132.239.0.73]:54099) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4BKb-0002Qm-C9 for emacs-orgmode@gnu.org; Sun, 14 Jun 2015 13:04:25 -0400 In-Reply-To: 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: wero_sacero Cc: emacs-orgmode@gnu.org On Sun, 14 Jun 2015, wero_sacero wrote: > Thank you for the reply. > > But I don't think it's a good idea. For example: what can I do if want > to put a text like the title of my file in the latex header? is there > an other way? In addition to the suggestions you already have, you can construct the `#+TITLE:' line like this: #+header: :var bfn=(buffer-file-name) #+BEGIN_SRC emacs-lisp :exports results :results value raw (concat "#+TITLE: FileName: " bfn) #+END_SRC The `(buffer-file-name)' can be altered to use any function that returns suitable text or be a call to another src block. HTH, Chuck