From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/7427 Path: main.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Gilles_P=E9rez-Lambert?= Newsgroups: gmane.comp.tex.context Subject: Problem with understanding \doifemptyelse Date: Fri, 22 Mar 2002 12:26:49 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (Apple Message framework v481) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035397891 19157 80.91.224.250 (23 Oct 2002 18:31:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:31:31 +0000 (UTC) Original-To: ntg-context@ntg.nl Xref: main.gmane.org gmane.comp.tex.context:7427 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:7427 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.