From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Controlling the space between the number and the title in heads
Date: Sun, 13 Feb 2011 18:50:16 +0100 [thread overview]
Message-ID: <43355BD4-79F2-4185-A29E-515BE4F359D8@gmail.com> (raw)
In-Reply-To: <87oc6fn8rl.fsf@micropit.couberia.bzh>
[-- Attachment #1.1: Type: text/plain, Size: 962 bytes --]
Am 13.02.2011 um 18:29 schrieb Peter Münster:
> 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]
distance=\spaceamount
> % 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{ }"?
http://www.ntg.nl/pipermail/ntg-context/2007/024390.html
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 1731 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2011-02-13 17:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-11 2:30 \blank[reset] in MkIV Ogam
2011-02-13 14:07 ` Stoppers in captions also appear in references maggyero
2011-02-13 15:30 ` Two stopper bugs (tables of contents and head titles) maggyero
[not found] ` <4D57E951.2030703@gmail.com>
2011-02-13 14:26 ` Controlling the space between the number and the title in heads maggyero
2011-02-13 17:29 ` Peter Münster
2011-02-13 17:50 ` Wolfgang Schuster [this message]
2011-02-13 19:41 ` Peter Münster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43355BD4-79F2-4185-A29E-515BE4F359D8@gmail.com \
--to=schuster.wolfgang@googlemail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).