Re: [NTG-context] change interwordspace twice

2011-03-13 Thread Steffen Wolfrum
Just as a last question on the ratio interwordspace/spaceskip:

When I read the info from \showpardata. And it says, eg.:

lmroman12-regular 
interwordspace: 3.912pt 
interwordstretch: 1.956pt 
inerwordshrink: 1.304pt


Does that mean, I would achieve exactly the same (default) by writing this?

\spaceskip3.912pt plus1.956pt minus1.304pt


Steffen
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] change interwordspace twice

2011-03-12 Thread 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?

Steffen
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] change interwordspace twice

2011-03-12 Thread Andreas Harder

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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] change interwordspace twice

2011-03-12 Thread Wolfgang Schuster

Am 12.03.2011 um 13:04 schrieb Andreas Harder:

 Am 12.03.2011 um 10:01 schrieb Steffen Wolfrum:
 
 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}

Yes this is a possibility but i would prefer something like this:

\definespace[smallspace][width=.2em,shrink=.05em,stretch=.1em]

\starttext
...
\setupspace[smallspace] % Better \enablespace[smallspace] or 
\setspace[smallspace]?
...
\stoptext

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] change interwordspace twice

2011-03-12 Thread Andreas Harder

Am 12.03.2011 um 17:00 schrieb Wolfgang Schuster:

 
 Am 12.03.2011 um 13:04 schrieb Andreas Harder:
 
 Am 12.03.2011 um 10:01 schrieb Steffen Wolfrum:
 
 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}
 
 Yes this is a possibility but i would prefer something like this:
 
 \definespace[smallspace][width=.2em,shrink=.05em,stretch=.1em]

Me too.

 \starttext
 ...
 \setupspace[smallspace] % Better \enablespace[smallspace] or 
 \setspace[smallspace]?
 ...
 \stoptext
 
 Wolfgang
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] change interwordspace twice

2011-03-12 Thread Steffen Wolfrum

Am 12.03.2011 um 17:04 schrieb Andreas Harder:

 
 Am 12.03.2011 um 17:00 schrieb Wolfgang Schuster:
 
 
 Am 12.03.2011 um 13:04 schrieb Andreas Harder:
 
 Am 12.03.2011 um 10:01 schrieb Steffen Wolfrum:
 
 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}
 
 Yes this is a possibility but i would prefer something like this:
 
 \definespace[smallspace][width=.2em,shrink=.05em,stretch=.1em]
 
 Me too.

Yes. Looks even more contextish :o)

Steffen
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] change interwordspace twice

2011-03-11 Thread Steffen Wolfrum
Here is an even more absurd example:


\starttext

\interwordspace  =40.70pt

wide: test\footnote{note note} test test.
%Big Space

\interwordspace  =2.70pt


wide: test\footnote{note note} test test.
%Big Space

\interwordspace  =40.70pt

test test\footnote{note note} test test.
%Big Space

\stoptext



As long as the three lines contain footnotes the interwordspace is changed 
correctly.
But comment these lines and uncomment the Big Space lines instead ... the 
interwordspace is not set a second time!!!


Bug or magic?

Steffen

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] change interwordspace twice

2011-03-11 Thread Steffen Wolfrum

The idea is: 

To use an alternative interwordspace/-stretch/-shrink
in certain situations (TOC, quote environments etc.)
and afterwards let it switch back to normal again.

Who can this be achieved?

Steffen



Am 11.03.2011 um 12:55 schrieb Steffen Wolfrum:

 Here is an even more absurd example:
 
 
 \starttext
 
\interwordspace  =40.70pt
 
 wide: test\footnote{note note} test test.
 %Big Space
 
\interwordspace  =2.70pt
 
 
 wide: test\footnote{note note} test test.
 %Big Space
 
\interwordspace  =40.70pt
 
 test test\footnote{note note} test test.
 %Big Space
 
 \stoptext
 
 
 
 As long as the three lines contain footnotes the interwordspace is changed 
 correctly.
 But comment these lines and uncomment the Big Space lines instead ... the 
 interwordspace is not set a second time!!!
 
 
 Bug or magic?
 
 Steffen
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] change interwordspace twice

2011-03-11 Thread 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

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___