On 10/29/2013 3:19 PM, Peter Münster wrote:
Hello Hans,
Is it also possible, to break inside the \type{} only at well defined characters and without hyphenation?
Example:
--8<---------------cut here---------------start------------->8--- \definebreakpoint[compound][_] \setuplayout[width=25mm] \startsetups Test \setbreakpoints[compound] \stopsetups \definetype[Test][lines=hyphenated, setups=Test, space=stretch] \showframe \starttext hellohello hellohello % should break like this: hel- lohello (ok)
hellohello \Test{hel_lohello} % should break like this: hel_ lohello (not ok)
hellohello \Test{hellohello} % should not break at all (not ok) \stoptext --8<---------------cut here---------------end--------------->8---
TIA for any help,
\setuplayout [width=25mm] \definebreakpoint [compound] [_] \definetype [Test] [lines=hyphenated, setups=Test, space=stretch, style={\tttf\setbreakpoints[compound]}] \showframe \starttext hellohello hellohello hellohello \Test{hel_lohello} hellohello \Test{hellohello} \stoptext ----------------------------------------------------------------- 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 -----------------------------------------------------------------