ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: pmlists@free.fr (Peter Münster)
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:29:02 +0100	[thread overview]
Message-ID: <87oc6fn8rl.fsf@micropit.couberia.bzh> (raw)
In-Reply-To: <4D57EA30.4090905@gmail.com> (maggyero@gmail.com's message of "Sun, 13 Feb 2011 15:26:56 +0100")

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
___________________________________________________________________________________


  reply	other threads:[~2011-02-13 17:29 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 [this message]
2011-02-13 17:50       ` Wolfgang Schuster
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=87oc6fn8rl.fsf@micropit.couberia.bzh \
    --to=pmlists@free.fr \
    --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).