[NTG-context] \definetype[xxx][linebreaks=yes, breakpoints=name]

Peter Münster pmlists at free.fr
Tue Oct 29 15:19:02 CET 2013


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,
-- 
           Peter


More information about the ntg-context mailing list