From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95373 Path: news.gmane.org!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: \currentheadnumber does not work Date: Sat, 9 Jul 2016 11:12:38 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5756450423487435832==" X-Trace: ger.gmane.org 1468055618 7748 80.91.229.3 (9 Jul 2016 09:13:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Jul 2016 09:13:38 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jul 09 11:13:26 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bLoKD-0004rz-R4 for gctc-ntg-context-518@m.gmane.org; Sat, 09 Jul 2016 11:13:25 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 18C6B10C6B; Sat, 9 Jul 2016 11:12:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HO5a6P7fzIeJ; Sat, 9 Jul 2016 11:12:53 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 538BB11432; Sat, 9 Jul 2016 11:12:53 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 287FB10C6B for ; Sat, 9 Jul 2016 11:12:52 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id y5z4jq7y3ulG for ; Sat, 9 Jul 2016 11:12:51 +0200 (CEST) Original-Received: from mail-io0-f177.google.com (mail-io0-f177.google.com [209.85.223.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id A1AF110C69 for ; Sat, 9 Jul 2016 11:12:40 +0200 (CEST) Original-Received: by mail-io0-f177.google.com with SMTP id q83so247784iod.1 for ; Sat, 09 Jul 2016 02:12:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=Gm5EmeJT23YlZKGk1l8WOoK1FAni5TyVjeP+VW/Yzr0=; b=0xMIUe++YGxBNS/z5zClnjYWBokc5O5IU8aMXZcRrv0UDb+PXSsEffGAnuKhFI+4iW 3tFESSGAPjHtRmtlgJ9dC/GQMKkm0G6T99MEI+/Kt6tYDtgg+zMjszOGxua/McuOoOKv bRH8zsyRMKlj32tpezATSRvBU3Qhkv6J9vSQ6kj4vvFLCB3UT+ubJRhBwORNdqSsQEiF XicjxuBzpDxmT6Zxz8RA3vyobrBtBXkBtkcfjQCboP0akbY1KqGP2MpxIcb+126vt/bR /9l3XfEEdMuZXyGsKcojv2MxiLgMktKZBqk10EwzIyepUxrqZ2ov4BRcyAF0bg2d5VQc giRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Gm5EmeJT23YlZKGk1l8WOoK1FAni5TyVjeP+VW/Yzr0=; b=PVap0pm0n+sFdKYCd9N16IL8mW4UR6dMDwJB5y2znnmJ20RfIF6F2PfNzfYHwC0Q6E o6v+UgAgrHFXtJXM83IVTbPFVxda4LBbQHhOLZc6ImQDcPB1fcDsHheLwXenvU9kjh8q sR/eIh/F0bKO/vxpG+BoPCNlnwsiGZONb61+K48H2QNH1fqmh6U9YiFElrEMXSMwRPWU 7iGlkDKuqvZ8E3//BJZ9rBPfyFRKU09Y6WzNw/QEbr9fZZsvE2bzOwrqcBUuF8EdaYjO Dfq6Drd9LN2hwuPilh8XawKRe9oikgs0tolI1jw2bj5Gwxx/FKfuu+Gyv+M7lI9H3iyT xH7Q== X-Gm-Message-State: ALyK8tJjAgwsoB2Et5+bJu2SaGkJDaUq/oK7TlwUhgKeUYxsMKpqegkj5JFhlkCt9RuhKjK1mJlt05OFiTzMjw== X-Received: by 10.107.9.42 with SMTP id j42mr3939408ioi.33.1468055558644; Sat, 09 Jul 2016 02:12:38 -0700 (PDT) Original-Received: by 10.64.10.2 with HTTP; Sat, 9 Jul 2016 02:12:38 -0700 (PDT) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:95373 Archived-At: --===============5756450423487435832== Content-Type: multipart/alternative; boundary=001a113df6ac156b440537305226 --001a113df6ac156b440537305226 Content-Type: text/plain; charset=UTF-8 Hello, In this command, I have two problems : - \currentheadnumber does not work - the chapter number appears in black thank you, Fabrice \setuppagenumbering[location=footer] \startuseMPgraphic{head} pickup pencircle scaled 1mm ; drawoptions(withcolor lightgray) ; fill unitsquare scaled 1cm smoothed 1.2 ; \stopuseMPgraphic \defineoverlay[head][\uniqueMPgraphic{head}] \def\Headed#1% {\framed [background=head,frame=off,offset=overlay] {\color[white]{#1}}} \unexpanded\def\HeadTitle#1#2% {\framed [frame=off, bottomframe=on, width=broad, align={broad,nothyphenated,left}] {#1\blank[white]#2}} \setuphead [chapter] [command=\HeadTitle, headstyle=\ss, numbercommand=\Headed{\currentheadnumber}] \starttext \startchapter [title={Fist chapter}] \input knuth \stopchapter \startchapter [title={Second chapter}] \input knuth \stopchapter \startchapter [title={Third chapter}] \input knuth \stopchapter \stoptext --001a113df6ac156b440537305226 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,
In this command
, I have two problems<= /span> :

- \currentheadnumber does not work

- the chapter number appears in b= lack

thank you,
Fabrice

\setuppagenumber= ing[location=3Dfooter]

\startuseMPgraphic{head}
=C2=A0 pickup pen= circle scaled 1mm ;
=C2=A0 drawoptions(withcolor lightgray) ;
=C2=A0 = fill unitsquare scaled 1cm smoothed 1.2 ;
\stopuseMPgraphic

\defi= neoverlay[head][\uniqueMPgraphic{head}]

\def\Headed#1%
=C2=A0 {\f= ramed
=C2=A0=C2=A0=C2=A0=C2=A0 [background=3Dhead,frame=3Doff,offset=3Do= verlay]
=C2=A0=C2=A0=C2=A0=C2=A0 {\color[white]{#1}}}


\unexpa= nded\def\HeadTitle#1#2%
=C2=A0 {\framed
=C2=A0=C2=A0=C2=A0 [frame=3Do= ff,
=C2=A0=C2=A0=C2=A0 bottomframe=3Don,
=C2=A0=C2=A0=C2=A0 width=3Db= road,
=C2=A0=C2=A0=C2=A0 align=3D{broad,nothyphenated,left}]
=C2=A0= =C2=A0=C2=A0 {#1\blank[white]#2}}

\setuphead
=C2=A0=C2=A0 [chapte= r]
=C2=A0=C2=A0 [command=3D\HeadTitle,
=C2=A0=C2=A0=C2=A0 headstyle= =3D\ss,
=C2=A0=C2=A0=C2=A0 numbercommand=3D\Headed{\currentheadnumber}]<= br>
\starttext

\startchapter
=C2=A0 [title=3D{Fist chapter}]
\input knuth

\stopchapter

\startchapter
=C2=A0 [titl= e=3D{Second chapter}]

\input knuth

\stopchapter

\start= chapter
=C2=A0 [title=3D{Third chapter}]

\input knuth

\sto= pchapter

\stoptext

--001a113df6ac156b440537305226-- --===============5756450423487435832== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============5756450423487435832==--