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/ ___________________________________________________________________________________ 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 ___________________________________________________________________________________