From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/60831 Path: news.gmane.org!not-for-mail From: Elias Oltmanns Newsgroups: gmane.comp.tex.context Subject: Trouble with customising section heads Date: Tue, 10 Aug 2010 17:02:34 +0200 Message-ID: <87bp9a8q9h.fsf@denkblock.local> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1281452569 13833 80.91.229.12 (10 Aug 2010 15:02:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 10 Aug 2010 15:02:49 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 10 17:02:46 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OiqLl-0006zn-RJ for gctc-ntg-context-518@m.gmane.org; Tue, 10 Aug 2010 17:02:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 30A62CA2AC; Tue, 10 Aug 2010 17:02:45 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id XPsyehL1G4V6; Tue, 10 Aug 2010 17:02:42 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 63BDDCA2AD; Tue, 10 Aug 2010 17:02:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 174A7CA2AD for ; Tue, 10 Aug 2010 17:02:41 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id PA-ReC7CjOcb for ; Tue, 10 Aug 2010 17:02:38 +0200 (CEST) Original-Received: from nebensachen.de (nebensachen.de [78.46.130.30]) by balder.ntg.nl (Postfix) with ESMTP id A7F98CA2AC for ; Tue, 10 Aug 2010 17:02:38 +0200 (CEST) Original-Received: from upstream.obscured ([192.168.0.1]) by mail.nebensachen.de (Postfix) with ESMTPSA id 81C7620DA24E for ; Tue, 10 Aug 2010 17:02:38 +0200 (CEST) X-Hashcash: 1:20:100810:ntg-context@ntg.nl::MyLslkLPafMbZgTs:00000000000000000000000000000000000000000002XGx Mail-Copies-To: nobody Mail-Followup-To: mailing list for ConTeXt users User-Agent: Gnus/5.13 (Gnus v5.13) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:60831 Archived-At: Hi again, sorry for bothering you so persistently, but I really did try to hard to find a solution -- and failed: In the attempt to customise my section headings by means of \setuphead[section][...command=] I followed the instructions at http://wiki.contextgarden.net/Figures_in_Headings#Figures_in_Headings . For the purposes of testing, I've installed a current minimals distribution. As it turns out, neither MkII nor MkIV processes the attached example as expected: MkII The table of contents is incomplete, even though the wiki says it shouldn't be; MkIV \currentheadnumber seems to be 0 all the time. There is a possibility, of course, that something is wrong with my setup of ConTeXt. But I just did another % ./first-setup.sh --context=current Thanks in advance for any hint, Elias %%%%%%%%%% \setuphead[section][textcommand=\Myhead,numbercommand=\Mynum] \def\Myhead#1{% Sect \currentheadnumber} \def\Mynum#1{} \starttext \completecontent \chapter{First chapter} \section{First section} Some text. \chapter{Second chapter} Introductory text. \section{First section} More text. \section{Second section} The end. \stoptext ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________