Felix schrieb am 16.09.2024 um 16:24:
[...]
This code shows how I am getting the default spacing between the words from
itemize, description, and the spacing between the roman numeral and the section
title. I tried figuring out how to get the spacing for all of these to be set
to a single space worth but it seems to not be possible with `distance`,
because it asks for a dimension. How can I get a `\space`'s worth of spacing to
be the default in descriptions, itemizations, and sections? for itemizations
and descriptions the spacing seems to vary and I really don't like that. I
would be thankful to know if there's a way to change the spacing.
Please remove everything from your examples which isn't necessary to
show the problem, in your example you can get rid of
- the page layout,
- the font settings,
- the title page and
- all settings from \setupdescription and \setuphead unrelated to the
space between number/title and the text.
The value you're looking for is \spaceamount which can be used with the
distance-key to set the width of a space as separator.
For descriptions you have to set the value of the width to fit and use
the distance key to set a fixed
value for the space between the title and following text, to ensure the
space doesn't increase set
also the shrink and stretch values to 0.
%%%% begin example
\definedescription
[description]
[alternative=serried,
width=fit,
distance=\spaceamount,
stretch=0,
shrink=0]
\starttext
\startdescription [title={I'm not a fan of the}]
default spacing
\stopdescription
\stoptext
%%%% end example
For itemize you can use the fit keyword but be aware once you have more
than 9 entries you get
a bigger space between the number and content because the environment
set the width of all
entries to width of the widest number.
%%%% begin example
\starttext
\startitemize[n,fit][distance=\spaceamount]
\startitem
I'm not a fan of the default spacing
\stopitem
\stopitemize
\stoptext
%%%% end example
For section titles you just have to change the distance value.
%%%% begin example
\setuphead
[section]
[distance=\spaceamount]
\starttext
\startsection[title={I'm not a fan of the}]
default spacing
\stopsection
\stoptext
%%%% end example
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________