From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22239 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: Setting header texts (second) Date: Wed, 31 Aug 2005 17:58:45 +0200 Message-ID: <6faad9f005083108583cd6d78f@mail.gmail.com> References: <20050826100117.GA27668@blackowl.org> <4312E88B.1050805@wxs.nl> <20050829132001.GA1758@blackowl.org> <43155E8A.60606@wxs.nl> <43157089.5070603@virgilio.it> <431572C5.7090903@virgilio.it> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1125504109 22256 80.91.229.2 (31 Aug 2005 16:01:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 31 Aug 2005 16:01:49 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 31 18:01:40 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1EAUzE-0006IZ-LN for gctc-ntg-context-518@m.gmane.org; Wed, 31 Aug 2005 17:58:52 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 70A6712826; Wed, 31 Aug 2005 17:58:52 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03615-02-3; Wed, 31 Aug 2005 17:58:48 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E760C1281F; Wed, 31 Aug 2005 17:58:48 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 32C321281F for ; Wed, 31 Aug 2005 17:58:48 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03615-02-2 for ; Wed, 31 Aug 2005 17:58:47 +0200 (CEST) Original-Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.196]) by ronja.ntg.nl (Postfix) with ESMTP id 4FE2C1281C for ; Wed, 31 Aug 2005 17:58:46 +0200 (CEST) Original-Received: by nproxy.gmail.com with SMTP id n15so60836nfc for ; Wed, 31 Aug 2005 08:58:45 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tntLyOSb/eWUX5KGZtjiqH5iKw7t8pHgEOO9NDhnF+IY/YilIE4QiOE8ne9aL0gwe55ORcoWbZEPsFGCWYc3ijWQOroX2HHiSXhjZcFJkX/9uqUeuHAT/23LomIm3RYzn/0g0VHMjOwwAThcal638Iip/GDqAflGpNEuokgIjDk= Original-Received: by 10.48.108.4 with SMTP id g4mr59167nfc; Wed, 31 Aug 2005 08:58:45 -0700 (PDT) Original-Received: by 10.48.247.14 with HTTP; Wed, 31 Aug 2005 08:58:45 -0700 (PDT) Original-To: mailing list for ConTeXt users In-Reply-To: <431572C5.7090903@virgilio.it> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:22239 Archived-At: Jilani Khaldi wrote: > Hi All, >=20 > Having set this header text: >=20 > \setupheadertexts > [\vbox{\hbox{AAA}} > \hbox{BBB}}}] > [{CCC}] >=20 > the result is: > AAA in the top left corner, > BBB just under AAA > CCC in the top right corner > with the page number in the center >=20 > What I want to have is: > 1. AAA =3D the title of the chapter > 2. BBB =3D the title of the section > 3. CCC in the top right corner but containing the page number You already got the answer to this one I guess, just to sum it up: \setupheadertexts [{\framed[align=3Dflushleft,frame=3Doff,offset=3D0pt]{\getmarking[chapter]\= crlf\getmarking[section]}}] [pagenumber] % or empty % and one of the two commands: %----- % this one overwrites the second argument above %\setuppagenumbering[location=3D{header,right}] % this one only removes page number from the center %\setuppagenumbering[location=3D] > 4. Just below all this a long line to separate the page header from its > content \setupbackgrounds[header][text][frame=3Doff,bottomframe=3Don] (You probably have to adjust some parameters in \setuplayout: header height and distance between header and text.) Mojca