Re: [NTG-context] Controlling the space between the number and the title in heads

2011-02-13 Thread Peter Münster
maggy...@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
___


Re: [NTG-context] Controlling the space between the number and the title in heads

2011-02-13 Thread Wolfgang Schuster

Am 13.02.2011 um 18:29 schrieb Peter Münster:

 maggy...@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

___
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
___


Re: [NTG-context] Controlling the space between the number and the title in heads

2011-02-13 Thread Peter Münster
Wolfgang Schuster schuster.wolfg...@googlemail.com writes:

 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

Thanks! So it seems, that there is nothing like that in the core.

Little feature request: could you add something like
\widthof{}, \heightof{}, \depthof{} and \heightanddepthof{}
to the core?

-- 
   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
___