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


Reply via email to