ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problem with understanding \doifemptyelse
@ 2002-03-22 11:26 Gilles Pérez-Lambert
  2002-03-23  9:55 ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Gilles Pérez-Lambert @ 2002-03-22 11:26 UTC (permalink / raw)


Hello,

I'm trying to setup headers in such a manner that on the left pages I 
have the chapter title and on the right the section one; but if there's 
no section, I want the chapter one...

I tried:
%%%%%%%%
\setupheadertexts
[][{%
\inframed[align=middle,frame=off,bottomframe=on,width=\makeupwidth]%
{\itx\hfill%
\doifemptyelse{\getmarking[section]}%%% If section header is empty
{\getmarking[chapter]}% Take the chapter one
{\getmarking[section]}}% else we take the section header
}]
[{\inframed[align=middle,frame=off,bottomframe=on,width=\makeupwidth]{\itx\
getmarking[chapter]\hfill\null}}][]
%%%%%%%%

I know I must miss something: \getmarking[section] is surely not that 
empty when there's nothing but my TeX knowledge is not that deep.

Another little problem: how not to have the headers on the beginning 
page of a chapter; i tried many things but didn't find the right one.

Thanks,

Gilles.


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

end of thread, other threads:[~2002-03-25 13:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-22 11:26 Problem with understanding \doifemptyelse Gilles Pérez-Lambert
2002-03-23  9:55 ` Hans Hagen
2002-03-25 11:22   ` texexec --module problem (was Re: Problem with understanding\doifemptyelse) Daniel Pittman
2002-03-24  0:30     ` texexec --module problem (was Re: Problem with understanding \doifemptyelse) Hans Hagen
2002-03-25 13:57     ` Patrick Gundlach

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