[***SPAM***] How to break lines with \type{}?
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/
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 -----------------------------------------------------------------
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