|
From: | Charles C. Berry |
Subject: | Re: [O] macro expansion in #+begin_latex |
Date: | Sun, 14 Jun 2015 10:04:18 -0700 |
User-agent: | Alpine 2.11 (OSX 23 2013-08-11) |
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_SRCThe `(buffer-file-name)' can be altered to use any function that returns suitable text or be a call to another src block.
HTH, Chuck
[Prev in Thread] | Current Thread | [Next in Thread] |