reference to structureuservariable
Hi, How can I read a structureuservariable at the end of the section, when there are subsections? Example: --8<---------------cut here---------------start------------->8--- \starttext \startsection[title=sec][foo=bar] % \edef\myFoo{\structureuservariable{foo}} % workaround \startsubsection[title=sub 1] sub 1 \stopsubsection \startsubsection[title=sub 2] sub 2 \stopsubsection \par foo is \structureuservariable{foo}. % foo is \myFoo. % workaround \stopsection \startsection[title=sec][foo=bar] no subsections...\par foo is \structureuservariable{foo}. \stopsection \stoptext --8<---------------cut here---------------end--------------->8--- Is there a clean way or do I need to use something like the above workaround? TIA for any hints, -- Peter
Hi Peter,
you can use \namedstructureuservariable{section}{foo} to access the foo variable of the section.
Wolfgang
On 20.01.2014 10:39:01, Peter Münster
participants (2)
-
Peter Münster
-
Wolfgang Schuster