From: "Gilles Pérez-Lambert" <Gilles.Perez@univ-montp3.fr>
Subject: Problem with understanding \doifemptyelse
Date: Fri, 22 Mar 2002 12:26:49 +0100 [thread overview]
Message-ID: <B3A95C8C-3D87-11D6-A5F5-000A27B468AA@univ-montp3.fr> (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.
next reply other threads:[~2002-03-22 11:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-22 11:26 Gilles Pérez-Lambert [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=B3A95C8C-3D87-11D6-A5F5-000A27B468AA@univ-montp3.fr \
--to=gilles.perez@univ-montp3.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).