[NTG-context] markings and syncing

Thomas A. Schmitz thomas.schmitz at uni-bonn.de
Thu Oct 22 13:51:22 CEST 2015


I'm trying to set up a header: if a page contains only one marking, it 
should display this, if it has more than one, display the first and 
last. Here's what I tried, unsuccessfully:

\definemarking [test]

\startsetups [test header]
\doifelse {\expanded{\getmarking[test][top]}} 
	{\getmarking[test][top] and \getmarking[test][bottom]}

\setupheadertexts [\setups{test header}]


\marking[test] {One}

\input knuth

\marking [test] {Two}


\marking [test] {Three}

\input tufte


How can I make the \doifelse work? I'm not sure I understand the 
keywords top/bottom, first/last, and previous/next.


More information about the ntg-context mailing list