Thank you Edward I guess it must be a simpler solution. Let me explain
once again.
I have for example the following structure:
|-@rst myplan.tex
|- myplan-node1
|- myplan-node2
|-@rst mylist.tex
|- mylist-node1
|- mylist-node2
if I call `rst3` on the `mylist-node2` node Leo compiles a
`mylist.tex.rst` file. I am generally not interested in the full path
but only in the file name which always changes according to the node I
am in. This name is located in `v.h` in one if `p.self_and_parents()` nodes.
Apparently it is stored in the root property of RstCommands-class
as you pointed out.
But how can I access `RstCommands.root.h` in a @btn script?
When I do a g.es_print(p.h) I only get the headline of the current
node whereas I need the head of the current rst root node...
Sorry, I don't quite get it.
Thank you.
-franz