ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* another question about markings
@ 2017-05-08 12:45 Thomas A. Schmitz
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas A. Schmitz @ 2017-05-08 12:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Aaaand here's another question about markings: how could I compare the 
value of the top/bottom (or first/last) markings and have the header 
change accordingly? Example attached, it doesn't do what I (naively) 
expected it to do.

All best

Thomas

\setuppapersize [A5]

\definemarking[Head]

\startsetups Headersetup
 
\doifelse{\expanded{\getmarking[Head][top]}}{\expanded{\getmarking[Head][bottom]}}{\getmarking[Head][top]}{\getmarking[Head][top] 
– \getmarking[Head][bottom]}
\stopsetups

\setupheadertexts[\texsetup{Headersetup}]

\starttext

\dorecurse{6}{\marking[Head]{Tufte}\input tufte\par}

\dorecurse{6}{\marking[Head]{Knuth}\input knuth\par}

\dorecurse{6}{\marking[Head]{Tufte}\input tufte\par}

\stoptext
___________________________________________________________________________________
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
___________________________________________________________________________________

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

* another question about markings
@ 2020-07-26 16:03 Joey McCollum
  0 siblings, 0 replies; 2+ messages in thread
From: Joey McCollum @ 2020-07-26 16:03 UTC (permalink / raw)
  To: thomas.schmitz; +Cc: mailing list for ConTeXt users

[-- Attachment #1: Type: text/html, Size: 3206 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

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

end of thread, other threads:[~2020-07-26 16:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-08 12:45 another question about markings Thomas A. Schmitz
2020-07-26 16:03 Joey McCollum

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).