Difference between revisions of "Command/setupspacing"

From Wiki
Jump to navigation Jump to search
m (Text replace - "\[\[cmd:(.*)\|(.*)\]\]" to "{{cmd|$1}}")
Line 11: Line 11:
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">
 
     <td class="cmd">[...]</td>
 
     <td class="cmd">[...]</td>
     <td>broad packed </td>
+
     <td>
 +
{|class=wikitable
 +
|-
 +
| fixed || equal spaces everywhere
 +
|-
 +
| packed || equal spaces between words, equal slightly larger spaces after punctuation
 +
|-
 +
| broad || more space after some punctuation
 +
|}
 +
    </td>
 
   </tr>
 
   </tr>
 
</table>
 
</table>
Line 17: Line 26:
  
 
== Description ==  
 
== Description ==  
 +
Setup the spacing rules. Punctuation, for this command, is the set {{code|. ? ! : ; ,}}.
  
 +
== 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)
  
== Example ==
+
\stopcolumns
<!-- Please fill in an example if you can -->
+
</context>
  
 
== See also ==
 
== See also ==
<!-- something like {{cmd|goto}} -->
+
* {{cmd|setupalign}} for more spacing-related settings
 +
* {{src|spac-hor.mkiv}} for the source code
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==

Revision as of 09:34, 26 April 2013

\setupspacing

Syntax

\setupspacing[...]
[...]
fixed equal spaces everywhere
packed equal spaces between words, equal slightly larger spaces after punctuation
broad more space after some punctuation


Description

Setup the spacing rules. Punctuation, for this command, is the set . ? ! : ; ,.

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: