Difference between revisions of "Command/setupspacing"
< Command
Jump to navigation
Jump to search
m (moved Reference/en/setupspacing to Command/setupspacing: Text replace - "Reference/en/" to "Command/") |
(autosyntax, category) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 5: | Line 5: | ||
== [[Help:Reference|Syntax]] == | == [[Help:Reference|Syntax]] == | ||
− | < | + | <syntax>setupspacing</syntax> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | </ | ||
== Description == | == Description == | ||
+ | Setup the spacing rules. Punctuation, for this command, is the set {{code|. ? ! : ; ,}}. | ||
+ | {|class=wikitable | ||
+ | |- | ||
+ | | fixed || equal spaces everywhere | ||
+ | |- | ||
+ | | packed || equal spaces between words, equal slightly larger spaces after punctuation | ||
+ | |- | ||
+ | | broad || more space after some punctuation | ||
+ | |} | ||
== Example == | == Example == | ||
− | <! | + | <context mode=mkiv source=yes> |
+ | \def\X{\blackrule[width=0.1cm]} | ||
+ | |||
+ | \setupspacing[fixed] | ||
+ | So \X? \X! \X. \X: \X; \X, \X{} (fixed) | ||
+ | |||
+ | \setupspacing[packed] | ||
+ | So \X? \X! \X. \X: \X; \X, \X{} (packed) | ||
+ | |||
+ | \setupspacing[broad] | ||
+ | So \X? \X! \X. \X: \X; \X, \X{} (broad) | ||
+ | |||
+ | \stopcolumns | ||
+ | </context> | ||
== See also == | == See also == | ||
− | + | * {{cmd|setupalign}} for more spacing-related settings | |
+ | * {{src|spac-hor.mkiv}} for the source code | ||
+ | |||
+ | == Help from ConTeXt-Mailinglist/Forum == | ||
+ | All issues with: | ||
+ | {{Forum|{{SUBPAGENAME}}}} | ||
− | [[Category: | + | [[Category:Command/Whitespace|setupspacing]] |
Latest revision as of 20:39, 23 September 2019
\setupspacing
Syntax
\setupspacing[...] | |
[...] | fixed packed broad |
Description
Setup the spacing rules. Punctuation, for this command, is the set . ? ! : ; ,
.
fixed | equal spaces everywhere |
packed | equal spaces between words, equal slightly larger spaces after punctuation |
broad | more space after some punctuation |
Example
\def\X{\blackrule[width=0.1cm]} \setupspacing[fixed] So \X? \X! \X. \X: \X; \X, \X{} (fixed) \setupspacing[packed] So \X? \X! \X. \X: \X; \X, \X{} (packed) \setupspacing[broad] So \X? \X! \X. \X: \X; \X, \X{} (broad) \stopcolumns
See also
- \setupalign for more spacing-related settings
- spac-hor.mkiv for the source code
Help from ConTeXt-Mailinglist/Forum
All issues with: