Hi all,

I found this blog post: https://rgoswami.me/posts/org-arb-tex/ and
wanted to use the trick with an Elisp source block to add something to
`org-latex-classes' (and make some other adjustments).  However, I can't
get it to work.  I suspect I'm making some stupid mistake, but can't
find it...

Here is my Org file, exported on `emacs -Q':

--8<---------------cut here---------------start------------->8---
* Preamble
#+begin_src elisp :exports none :results none :eval yes
  (setq my-var (format-time-string "%FT%T"))
#+end_src

* Contents
Lorem ipsum.
--8<---------------cut here---------------end--------------->8---

When I export it, say, to LaTeX (`C-c C-e l l'), the code is not
evaluated - `M-: my-var' results in `(void-variable my-var)' error.

What am I missing?

TIA,

-- 
Marcin Borkowski
https://mbork.pl

Reply via email to