From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66017 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Controlling the space between the number and the title in heads Date: Sun, 13 Feb 2011 18:50:16 +0100 Message-ID: <43355BD4-79F2-4185-A29E-515BE4F359D8@gmail.com> References: <4D549F59.1070002@gmail.com> <4D57E951.2030703@gmail.com> <4D57EA30.4090905@gmail.com> <87oc6fn8rl.fsf@micropit.couberia.bzh> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: multipart/mixed; boundary="===============0495825892==" X-Trace: dough.gmane.org 1297619466 28010 80.91.229.12 (13 Feb 2011 17:51:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 13 Feb 2011 17:51:06 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Feb 13 18:51:00 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 1Pog65-0002gc-MX for gctc-ntg-context-518@m.gmane.org; Sun, 13 Feb 2011 18:50:57 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8577BCA95C; Sun, 13 Feb 2011 18:50:56 +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 r-WcyRqb52Tr; Sun, 13 Feb 2011 18:50:43 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 84BA3CA952; Sun, 13 Feb 2011 18:50:43 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0E6BACA952 for ; Sun, 13 Feb 2011 18:50:42 +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 ctHF313Yhezh for ; Sun, 13 Feb 2011 18:50:21 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 0168ACA676 for ; Sun, 13 Feb 2011 18:50:20 +0100 (CET) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p1DHoKlX006170 for ; Sun, 13 Feb 2011 18:50:20 +0100 Original-Received: by fxm12 with SMTP id 12so4797215fxm.14 for ; Sun, 13 Feb 2011 09:50:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:from:mime-version:content-type:subject:date :in-reply-to:to:references:message-id:x-mailer; bh=kmoJzYGfnLmdg3jByX7yET/uQyS0dRifu47ioGH19Ww=; b=X0lk5E2hRD/fJNs0Du8y4WH8cklrCqnzgSXU0ovv0vyEbEOEN9Y4KmtvyFQ8GxnCMc 2iav1pt5FkbH7h4QpJo4TepBxk+cJ6w5bC7N2PGeOfpJ4WjDDDCHBuBLC7+2MyaPgPkv Oyt6BFjOOXm3PZDQMR9brae0Ynbl26M+531j4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer; b=q7M80n6ZQwmibEKIsQAN3V4O5ATAL3HMnjTJn3l3bEkVZTHyU5Bv2NYdP0HNNkUWXP F2zWv/jcE4MCC5i5rfy0NcelGsu+EAWU4m51nbUTSnP8OII3KkJ6yCYLw3ruVBv2TD2w +qBW9wHmus5bJo1d8j0XuMxDFbk0VsukK0XFA= Original-Received: by 10.223.95.199 with SMTP id e7mr3371519fan.39.1297619419835; Sun, 13 Feb 2011 09:50:19 -0800 (PST) Original-Received: from [192.168.2.23] (p5B29707A.dip.t-dialin.net [91.41.112.122]) by mx.google.com with ESMTPS id e6sm672059fav.8.2011.02.13.09.50.17 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 13 Feb 2011 09:50:19 -0800 (PST) In-Reply-To: <87oc6fn8rl.fsf@micropit.couberia.bzh> X-Mailer: Apple Mail (2.1082) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0bE7tOkgz - b0e2652bf875 - 20110213 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:66017 Archived-At: --===============0495825892== Content-Type: multipart/alternative; boundary=Apple-Mail-1--662846944 --Apple-Mail-1--662846944 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Am 13.02.2011 um 18:29 schrieb Peter M=FCnster: > maggyero@gmail.com writes: >=20 >> 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=3D.]). Example: >>=20 >> 1. Title (what I get) >> 1. Title (what I want) >=20 > % if you know how to get the width of 1 space: > \setuphead[section][stopper=3D., distance=3DWidthOf1Space] distance=3D\spaceamount > % if you don't know, workaround: > \setuphead[section][stopper=3D.~\strut, distance=3D0pt] >=20 > \starttext > \startsection[title=3Dtest] > bla > \stopsection > \stoptext >=20 > Related question: is there a macro, that returns the width of some > content, so that one can use "distance=3D\widthof{ }"? http://www.ntg.nl/pipermail/ntg-context/2007/024390.html Wolfgang --Apple-Mail-1--662846944 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1
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=3D.]). 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=3D., = distance=3DWidthOf1Space]

distan= ce=3D\spaceamount

% if you don't = know, workaround:
\setuphead[section][stopper=3D.~\strut, = distance=3D0pt]

\starttext
\startsection[title=3Dtest]
=  bla
\stopsection
\stoptext

Related question: is there = a macro, that returns the width of some
content, so that one can use = "distance=3D\widthof{ }"?


<= div>Wolfgang

= --Apple-Mail-1--662846944-- --===============0495825892== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0495825892==--