reference to structureuservariable
![](https://secure.gravatar.com/avatar/cedc4d83943006afe3994fb0a0455f82.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/b79687264c3e06cba13b54d05b12a9f5.jpg?s=120&d=mm&r=g)
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