[NTG-context] change interwordspace twice

Andreas Harder aharder at uni-koblenz.de
Sat Mar 12 13:04:26 CET 2011


Am 12.03.2011 um 10:01 schrieb Steffen Wolfrum:

> 
> Am 11.03.2011 um 19:56 schrieb Wolfgang Schuster:
> 
>> 
>> Am 11.03.2011 um 12:36 schrieb Steffen Wolfrum:
>> 
>>> Hi,
>>> 
>>> one time it works, the second it doesn't:
>>> 
>>> \starttext
>>> 
>>> \interwordspace 20.7pt Big Space
>>> 
>>> \par
>>> 
>>> \interwordspace 2.7pt Big Space
>>> 
>>> \par
>>> 
>>> \interwordspace 20.7pt Big Space
>>> 
>>> \stoptext
>>> 
>>> Does someone can explain how and when interwordspace is successfully set?
>> 
>> That’s the only context way to change it:
>> 
>> \starttext
>> 
>> text text text
>> 
>> \setuptolerance[space]
>> 
>> text text text text
>> 
>> \stoptext
> 
> 
> Is there only one "space" or s is possible to set more fine-tuned values?

You can define your own space.

\definetolerancemethod
  [horizontal]
  [smallspace]
  {\spaceskip.2em plus.1em minus.05em\relax}

\definetolerancemethod
  [horizontal]
  [mediumspace]
  {\spaceskip.33em plus.25em minus.1em\relax}

\definetolerancemethod
  [horizontal]
  [bigspace]
  {\spaceskip.5em plus.25em minus.25em\relax}

\starttext  \showframe[text]
  \start \setuptolerance[smallspace]  \input tufte \par \stop \blank
  \start \setuptolerance[mediumspace] \input tufte \par \stop \blank
  \start \setuptolerance[bigspace]    \input tufte \par \stop \blank
  % default:
  \input tufte 
\stoptext

Greeting
	Andreas


More information about the ntg-context mailing list