ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* markings and syncing
@ 2015-10-22 11:51 Thomas A. Schmitz
  2015-10-22 15:59 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas A. Schmitz @ 2015-10-22 11:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

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]}} 
{\expanded{\getmarking[test][bottom]}}
	{\getmarking[test][top]}
	{\getmarking[test][top] and \getmarking[test][bottom]}
\stopsetups

\setupheadertexts [\setups{test header}]

\starttext

\marking[test] {One}

\input knuth

\marking [test] {Two}

\page

\marking [test] {Three}

\input tufte

\stoptext

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

Thomas
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-10-22 17:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-22 11:51 markings and syncing Thomas A. Schmitz
2015-10-22 15:59 ` Wolfgang Schuster
2015-10-22 17:59   ` Thomas A. Schmitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).