Controlling the space between the number and the title in heads
Hi, 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)
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
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
Wolfgang Schuster
Related question: is there a macro, that returns the width of some content, so that one can use "distance=\widthof{ }"?
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
participants (3)
-
maggyero@gmail.com
-
pmlists@free.fr
-
Wolfgang Schuster