[***SPAM***] How to break lines with \type{}?
![](https://secure.gravatar.com/avatar/cedc4d83943006afe3994fb0a0455f82.jpg?s=120&d=mm&r=g)
Hello, How can I teach \type{} to break lines just as \hyphenatedurl{} does? \starttext \hsize1pt \type{C:bla/blub/foo/bar} \hyphenatedurl{C:bla/blub/foo/bar} \stoptext TIA for any help! Peter -- Contact information: http://pmrb.free.fr/contact/
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 26-8-2010 11:02, Peter Münster wrote:
Hello,
How can I teach \type{} to break lines just as \hyphenatedurl{} does?
\starttext \hsize1pt \type{C:bla/blub/foo/bar} \hyphenatedurl{C:bla/blub/foo/bar} \stoptext
not, but there is \typ for normal text 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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/cedc4d83943006afe3994fb0a0455f82.jpg?s=120&d=mm&r=g)
On Thu, Aug 26 2010, Hans Hagen wrote:
On 26-8-2010 11:02, Peter Münster wrote:
Hello,
How can I teach \type{} to break lines just as \hyphenatedurl{} does?
\starttext \hsize1pt \type{C:bla/blub/foo/bar} \hyphenatedurl{C:bla/blub/foo/bar} \stoptext
not, but there is \typ for normal text
Hello Hans, \typ does not break: \starttext \hsize1pt \typ{c:bla/blub} \stoptext But I've found the solution: % \definetype[Code][style=tt, color=darkblue, align=hyphenated] % not working \def\Code#1{\bgroup\tt\color[darkblue]\hyphenatedurl{#1}\egroup} \starttext \hsize1pt \Code{c:bla/blub} \stoptext Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/
participants (2)
-
Hans Hagen
-
Peter Münster