On 10/7/2013 10:30 AM, Peter Münster wrote:
On Mon, Oct 07 2013, Hans Hagen wrote:
If not, here my feature request: something like \definetype[xxx][linebreaks=yes, breakpoints=compound]
this should be redefined:
\unexpanded\def\specialstretchedspace{\hskip.5\interwordspace\s!plus.125\interwordspace\relax}
Hi Hans,
Unfortunately it does not work:
--8<---------------cut here---------------start------------->8--- \unprotect \unexpanded\def\specialstretchedspace{\hskip.5\interwordspace\s!plus.125\interwordspace\relax} \protect \definetype[whatever][lines=yes, space=stretch] \setbreakpoints[compound] \starttext \hsize4cm \whatever{fasdfjkl-fjsdkal-jskla-fjksdla-fjksdl-afjksdla} fasdfjkl-fjsdkal-jskla-fjksdla-fjksdl-afjksdla \stoptext --8<---------------cut here---------------end--------------->8---
What am I doing wrong please?
I uploaded a bit more robust variant: \starttext \setuplayout[width=4cm] \showframe \setupalign[stretch,verytolerant] \definetype[whatever][lines=hyphenated,space=stretch] A quote from ward: \expanded{\whatever{\cldloadfile{ward}}} That's it. \definetype[whatever][lines=normal,space=stretch] A quote from ward: \expanded{\whatever{\cldloadfile{ward}}} That's it. \stoptext Should work ok. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------