From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20775 Path: news.gmane.org!not-for-mail From: Nikolai Weibull Newsgroups: gmane.comp.tex.context Subject: [BUG] \setuphead style vs textstyle/numberstyle setting Date: Fri, 10 Jun 2005 03:39:43 +0200 Message-ID: <20050610013943.GA23019@puritan.pcp.ath.cx> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="ZGiS0Q5IWpPtfppv" X-Trace: sea.gmane.org 1118367363 14012 80.91.229.2 (10 Jun 2005 01:36:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Jun 2005 01:36:03 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Jun 10 03:35:59 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 1DgYQp-0007hf-P3 for gctc-ntg-context-518@m.gmane.org; Fri, 10 Jun 2005 03:35:35 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C4214127FD; Fri, 10 Jun 2005 03:39:51 +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 06682-05; Fri, 10 Jun 2005 03:39:47 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6030B127D9; Fri, 10 Jun 2005 03:39:47 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 73E16127D9 for ; Fri, 10 Jun 2005 03:39:45 +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 06759-04 for ; Fri, 10 Jun 2005 03:39:44 +0200 (CEST) Original-Received: from mxfep01.bredband.com (mxfep01.bredband.com [195.54.107.70]) by ronja.ntg.nl (Postfix) with ESMTP id 66EFB127CE for ; Fri, 10 Jun 2005 03:39:44 +0200 (CEST) Original-Received: from puritan.pcp.ath.cx ([213.112.43.228] [213.112.43.228]) by mxfep01.bredband.com with ESMTP id <20050610013941.BQKP19329.mxfep01.bredband.com@puritan.pcp.ath.cx> for ; Fri, 10 Jun 2005 03:39:41 +0200 Original-Received: by puritan.pcp.ath.cx (Postfix, from userid 1000) id 2D7FDADFEA; Fri, 10 Jun 2005 03:39:43 +0200 (CEST) Original-To: NTG-context List Mail-Followup-To: NTG-context List Content-Disposition: inline User-Agent: Mutt/1.5.8i 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:20775 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20775 --ZGiS0Q5IWpPtfppv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline It seems that one can't retrieve the textstyle or numberstyle settings from a \setuphead when using \placeheadnumber, as suggested in details.pdf (the example file is more or less a rip-off of the suggested layout at the end of that document). One way to fix this is to use \headnumber[chapter] and put the style directives before it in the \hbox, but that's not really a solution, just a workaround. I've looked through the sources involved in this, but I haven't been able to find anything wrong. Please advice; I'm beginning to become unhinged over here..., nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);} --ZGiS0Q5IWpPtfppv Content-Type: application/x-tex Content-Disposition: attachment; filename="title.tex" Content-Transfer-Encoding: quoted-printable \setupcolors[state=3Dstart]=0A\setuphead=0A [chapter]=0A [placehead=3Demp= ty,=0A header=3Dchapter,=0A textstyle=3Dslanted,=0A numberstyle=3D\os= ]=0A=0A\definetext=0A [chapter]=0A [header]=0A [\setups{chapter}]=0A []= =0A=0A\startsetups chapter=0A \setups[chapter:title]=0A \setups[chapter:n= umber]=0A \setups[chapter:finish]=0A\stopsetups=0A=0A\definelayer=0A [cha= pter]=0A [width=3D\dimexpr(\makeupwidth+\cutspace),=0A height=3D\headerh= eight]=0A=0A\startsetups chapter:title=0A \setlayerframed=0A [chapter]= =0A [x=3D\dimexpr(\makeupwidth+\cutspace),=0A location=3D{left,botto= m}]=0A [height=3D\headerheight,=0A foregroundcolor=3Dred,=0A fra= me=3Doff,=0A offset=3Dnone,=0A align=3D{right,lohi}]=0A {\hbox s= pread .5\cutspace=0A {\hss=0A \doiftextelse{\placeheadtext[cha= pter]}%=0A {\placeheadtext[chapter]}%=0A {\placeheadtext[= title]}=0A \hss}\space=0A \vskip.5cm}=0A\stopsetups=0A=0A\starts= etups chapter:number=0A \setlayerframed=0A [chapter]=0A [x=3D\dimexp= r(\makeupwidth+\cutspace),=0A y=3D\vsize,=0A location=3D{left,botto= m}]=0A [width=3D\dimexpr(\cutspace-\rightmargindistance),=0A height= =3D\dimexpr(\cutspace-\rightmargindistance),=0A foregroundcolor=3Dred,= =0A background=3Dcolor,=0A backgroundcolor=3Dgray,=0A frame=3Do= ff,=0A offset=3Dnone,=0A align=3D{middle,lohi}]=0A {\hbox to \hs= ize=0A {\hskip.5cm\hss=0A \doifmode{*bodypart}{\placeheadnumbe= r[chapter]}% % use \headnumber[chapter]=0A \hss}}=0A\stopsetups=0A= =0A\startsetups chapter:finish=0A \framed=0A [width=3D\makeupwidth,=0A = height=3D\headerheight,=0A background=3Dchapter,=0A frame=3Doff= ]=0A {}=0A\stopsetups=0A=0A\starttext=0A\startbodymatter=0A\chapter{This= is the First Chapter}=0AHello=0A\chapter{This is the Second Chapter}=0AHel= lo=0A\stopbodymatter=0A\stoptext=0A --ZGiS0Q5IWpPtfppv Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --ZGiS0Q5IWpPtfppv--