From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/1744 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Chapter background Date: Sun, 12 Mar 2000 19:33:18 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20000312193318.01c75100@pop.wxs.nl> References: <20000307.14042565@mis.configured.host> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035392557 2862 80.91.224.250 (23 Oct 2002 17:02:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:02:37 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Dan Seracu In-Reply-To: <20000307.14042565@mis.configured.host> Xref: main.gmane.org gmane.comp.tex.context:1744 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:1744 At 02:04 PM 3/7/2000 GMT, Dan Seracu wrote: > Hello everyone! I have a few questions regarding page design. First: >how can I put a metapost background to chapter titles or to chapter >numbers? Like the ones in beginer manual to ConTeXt or in PPCHTeX manual? That's a multistep process: \startMPgraphic{Whatever} ... whatever ... using \overlaywidth and \overlayheight \stopMPgraphic \defineoverlay[Whatever][\useMPgraphic{Whatever}] \def\MyNumberCommand#1% {\framed[background=Whatever,frame=off]{#1}} \setuphead[chapter][numbercommand=\MyNumberCommand] >Second: How can I find out the chapter number (is there something like >\chapternumber)? Best regards from Oradea, Dan Seracu Say \determineheadnumber[chapter] and after that the number is available in \headnumber Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl -----------------------------------------------------------------