From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66016 Path: news.gmane.org!not-for-mail From: pmlists@free.fr (Peter =?utf-8?Q?M=C3=BCnster?=) Newsgroups: gmane.comp.tex.context Subject: Re: Controlling the space between the number and the title in heads Date: Sun, 13 Feb 2011 18:29:02 +0100 Message-ID: <87oc6fn8rl.fsf@micropit.couberia.bzh> References: <4D549F59.1070002@gmail.com> <4D57E951.2030703@gmail.com> <4D57EA30.4090905@gmail.com> 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 1297618188 21637 80.91.229.12 (13 Feb 2011 17:29:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 13 Feb 2011 17:29:48 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Feb 13 18:29:44 2011 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 1PoflY-0001Qj-Es for gctc-ntg-context-518@m.gmane.org; Sun, 13 Feb 2011 18:29:44 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BD0FFCA95C; Sun, 13 Feb 2011 18:29:43 +0100 (CET) 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 FFfWhNL7IFUq; Sun, 13 Feb 2011 18:29:29 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4901FCA952; Sun, 13 Feb 2011 18:29:29 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AB6CACA952 for ; Sun, 13 Feb 2011 18:29:27 +0100 (CET) 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 NLEoLbS3UHM5 for ; Sun, 13 Feb 2011 18:29:06 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 7C8AACA676 for ; Sun, 13 Feb 2011 18:29:06 +0100 (CET) Original-Received: from smtp.smtpout.orange.fr (smtp12.smtpout.orange.fr [80.12.242.134]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p1DHT5fJ027124 for ; Sun, 13 Feb 2011 18:29:05 +0100 Original-Received: from micropit.couberia.bzh ([90.59.253.104]) by mwinf5d35 with ME id 7VV41g0022Ful4S03VV4XN; Sun, 13 Feb 2011 18:29:05 +0100 Original-Received: by micropit.couberia.bzh (Postfix, from userid 1000) id 69C05160766; Sun, 13 Feb 2011 18:29:03 +0100 (CET) In-Reply-To: <4D57EA30.4090905@gmail.com> (maggyero@gmail.com's message of "Sun, 13 Feb 2011 15:26:56 +0100") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=80.12.242.134; country=FR; latitude=46.0000; longitude=2.0000; http://maps.google.com/maps?q=46.0000,2.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rE7tt5BU - 599f19c9c27d - 20110213 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:66016 Archived-At: maggyero@gmail.com writes: > How to control the space between the number and the title in heads? By default > it seems there is a space of about 1 em. I want to change that space and set a > normal space instead (a word space), since I've put a dot stopper after the > numbers (\setupheads[stopper=.]). Example: > > 1. Title (what I get) > 1. Title (what I want) % if you know how to get the width of 1 space: \setuphead[section][stopper=., distance=WidthOf1Space] % if you don't know, workaround: \setuphead[section][stopper=.~\strut, distance=0pt] \starttext \startsection[title=test] bla \stopsection \stoptext Related question: is there a macro, that returns the width of some content, so that one can use "distance=\widthof{ }"? -- Peter ___________________________________________________________________________________ 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 ___________________________________________________________________________________