* [***SPAM***] How to break lines with \type{}?
@ 2010-08-26 9:02 Peter Münster
2010-08-26 10:22 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Peter Münster @ 2010-08-26 9:02 UTC (permalink / raw)
To: ConTeXt list
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/
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [***SPAM***] How to break lines with \type{}?
2010-08-26 9:02 [***SPAM***] How to break lines with \type{}? Peter Münster
@ 2010-08-26 10:22 ` Hans Hagen
2010-08-26 11:14 ` Peter Münster
0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2010-08-26 10:22 UTC (permalink / raw)
To: ConTeXt list
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to break lines with \type{}?
2010-08-26 10:22 ` Hans Hagen
@ 2010-08-26 11:14 ` Peter Münster
0 siblings, 0 replies; 3+ messages in thread
From: Peter Münster @ 2010-08-26 11:14 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-08-26 11:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-26 9:02 [***SPAM***] How to break lines with \type{}? Peter Münster
2010-08-26 10:22 ` Hans Hagen
2010-08-26 11:14 ` Peter Münster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).