From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95374 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: \currentheadnumber does not work Date: Sat, 09 Jul 2016 11:32:35 +0200 Message-ID: <5780C4B3.5050809@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8997499535302013041==" X-Trace: ger.gmane.org 1468056803 23600 80.91.229.3 (9 Jul 2016 09:33:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Jul 2016 09:33:23 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jul 09 11:33:12 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 1bLodL-0004mh-Ub for gctc-ntg-context-518@m.gmane.org; Sat, 09 Jul 2016 11:33:12 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D1CE711572; Sat, 9 Jul 2016 11:32:51 +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 ZoqjjbsYagnp; Sat, 9 Jul 2016 11:32:49 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id E327911573; Sat, 9 Jul 2016 11:32:49 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9165911571 for ; Sat, 9 Jul 2016 11:32:48 +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 e_A4rUCrab9t for ; Sat, 9 Jul 2016 11:32:46 +0200 (CEST) Original-Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) (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 A044211570 for ; Sat, 9 Jul 2016 11:32:36 +0200 (CEST) Original-Received: by mail-wm0-f42.google.com with SMTP id f126so38172281wma.1 for ; Sat, 09 Jul 2016 02:32:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=0UGLrUsqRe29xrDFqui3+h1uDpzvQP0PF5G82KVpDRc=; b=ypCWnTIg7V60SS1eMPw71szoqJMYftyKoV4ksatCn/hXA86dil7YBAD5lGPA9627zA HXuI7vk5DjF5MryMoohVaC2qFQwgzDawc7i5u630kGIb5Ff0kggvWVkQPkReq8eDOdDN TpDbaZv2FMRoPecm4eiGR8W/C7UW+/wO1bSgdtplR8HQhC0IYDFTTyi56irQr2kH1Ry/ VoFSirUJ46qpUb//4/V19DRWyEC1eAxcWsTGwDJ8I+tkMRgFEdTSWxKIzocYWqK5mgQY wo4s7t70/69CB4+dz2Oc2LfyPXnwfmnzFchMlj22P3C3jFKOX5dDXRV3UZs5M4C3JAFY vSHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=0UGLrUsqRe29xrDFqui3+h1uDpzvQP0PF5G82KVpDRc=; b=C4JUMVwPyqjv/rNXgKpDJ701rTu+CdHeX8iSXvzNJjaDdCjQO039J5VOYKllV3GbEe PWxdwcyH37n3QwJcCN807wRWAm6GHMINPyevg6ksJWNy1WJLo+XBI0hLEIOde844Gd7q N1r7ZE0L2PvSLX/3o5nBGuekg+2hti0DmYCKx6piQ0lWMdi0yAbTcpPfjNzNf/JlEDDV ggXBvaSzTP8m2oytTHCLgWPx9qR43IgRU8bFBa69OW5RXdh0m5kL4bLliNObmFSTW40K mKjkf25vxLb1NrIou+7da5mMmiqSNhTZR6xq5Oa9xiF583cuXeudZIbQTP+b5TUTOksq ZWGA== X-Gm-Message-State: ALyK8tJDAX2oIwM18eRWwFxZAL/XHoDtVrIZHjtvLKlAyJV8GS2BTbkE6/odq/dTqN2o7g== X-Received: by 10.28.209.79 with SMTP id i76mr2008539wmg.95.1468056756115; Sat, 09 Jul 2016 02:32:36 -0700 (PDT) Original-Received: from keima.localdomain (x2f2bc54.dyn.telefonica.de. [2.242.188.84]) by smtp.gmail.com with ESMTPSA id t67sm1397942wma.1.2016.07.09.02.32.35 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 09 Jul 2016 02:32:35 -0700 (PDT) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: 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:95374 Archived-At: This is a multi-part message in MIME format. --===============8997499535302013041== Content-Type: multipart/alternative; boundary="------------010000070501050902090103" This is a multi-part message in MIME format. --------------010000070501050902090103 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > Fabrice Couvreur > 9. Juli 2016 um 11:12 > Hello, > In this command, I have two problems: > > - \currentheadnumber does not work You need \determineheadnumber[chapter] before you can access the value with \currentheadnumber > - the chapter number appears in black You need this setup: \setuphead [chapter] [numbercommand=\Headed] Wolfgang --------------010000070501050902090103 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
9.= =20 Juli 2016 um 11:12
Hello,=
In this command, I have two problem= s :

- \currentheadnumber does not work
You need

=C2=A0=C2=A0=C2=A0 \determineheadnumber[chapter]

before you can access the value with

=C2=A0=C2=A0=C2=A0 \currentheadnumber
- the chapter= =20 number appears in black
You need this setup:

\setuphead
=C2=A0=C2=A0 [chapter]
=C2=A0=C2=A0 [numbercommand=3D\Headed]

Wolfgang
--------------010000070501050902090103-- --===============8997499535302013041== 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= --===============8997499535302013041==--