Hi there,
thanks to Thomas and Eric.
I actually found a rather stupid mistake: I was already using a var (for
the png filename generation) and the header did not read the next
:var. So I added ,fs=fontsize to the first :var and now it works.
I will have a look Eric's function of how to get the
Aloha Johanna May,
This works:
#+name: fs
#+BEGIN_SRC emacs-lisp
10
#+END_SRC
#+RESULTS: fs
: 10
#+header: :var fontsize=fs() :results output
#+begin_src python
print(fontsize)
#+end_src
#+RESULTS:
: 10
Note "fs()" instead of "fs".
All the best,
Tom
--
Thomas S. Dye
http://tsdye.online/tsd
Hi Johanna,
> I have various files that go together in one document, either
> chapterwise or the whole book. And just as with tikz (latex) I want the font
> size of python plots to change automatically when the context changes.
What I do, for a similar use case, is to define values using properti
Dear org-mode fans,
I have various files that go together in one document, either
chapterwise or the whole book. And just as with tikz (latex) I want the font
size of python plots to change automatically when the context changes.
So I tried to define a variable in one of the header files like thi