Difference between revisions of "Command/setupspacing"

From Wiki
Jump to navigation Jump to search
m (Text replace - "[[Category:Commands|" to "== ConTeXt-Forum == {{Forum|{{SUBPAGENAME}}}} [[Category:Commands|")
(autosyntax, category)
 
(5 intermediate revisions by 2 users not shown)
Line 5: Line 5:
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
<table cellspacing="4" cellpadding="2" class="cmd">
+
<syntax>setupspacing</syntax>
  <tr>
 
    <td colspan="2" class="cmd">\setupspacing<span class="first" >[...]</span></td>
 
  </tr>
 
  <tr valign="top" class="first">
 
    <td class="cmd">[...]</td>
 
    <td>broad packed </td>
 
  </tr>
 
</table>
 
  
  
 
== 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 ==
<!-- Please fill in an example if you can -->
+
<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 ==
<!-- something like [[cmd:goto|\goto]] -->
+
* {{cmd|setupalign}} for more spacing-related settings
 +
* {{src|spac-hor.mkiv}} for the source code
  
== ConTeXt-Forum ==
+
== Help from ConTeXt-Mailinglist/Forum ==
 +
All issues with:
 
{{Forum|{{SUBPAGENAME}}}}
 
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Commands|setupspacing]]
+
[[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

Help from ConTeXt-Mailinglist/Forum

All issues with: