Am 18.03.22 um 01:48 schrieb jbf via ntg-context:
I thought this should work, since \structurelistuservariable{author}
works fine to call the author name into the TOC, but the same does not
work for header texts it seems:
\setupheadertexts
[{\hfill\getmarking[\structurelistuservariable{author}]\hfill}][]
[{\hfill\documentvariable{metadata:title}\hfill}][]
But it doesn't. What am I doing wrong?
The *list* variables work only in lists.
There’s also \structurevariable and \structureuservariable.
Make sure you use setups for the header, otherwise the variable gets
expanded only once at the beginning.
Like in:
\setuppagenumbering[alternative=doublesided]
\setupheadertexts[] % empty
\setupheadertexts[\setups{text right}][][][\setups{text left}]
\startsetups[text right]
\rlap{\pagenumber}
\hfill
\getmarking[chapter]
\hfill
\llap{Un Nom}
\stopsetups
\startsetups[text left]
\rlap{Una Person}
\hfill
\getmarking[section]
\hfill
\llap{\pagenumber}
\stopsetups
HTH
Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________