[NTG-context] Re: Wrap a url
Willi Egger
w.egger at boede.nl
Sun Dec 5 18:51:06 CET 2004
Hi,
thanks Patrick for the example. The only thing is, that \useURL does not
hypenate.
In Context there is also a command \hyphenatedurl:
From:
\hyphenatedurl{http://www.perseus.tufts.edu/cgi-bin/ptext?doc=Perseus:text:1999.01.0218:book=1:line=1}
However you will loose the interactivity.
Another approach is then to use Patrick's example like
\setupoutput[pdftex]
\setupcolors
[state=start]
\setupinteraction
[state=start,color=blue]
\useURL
[hyphenated]
[{http://www.perseus.tufts.edu/cgi-bin/ptext?doc=Perseus:text:1999.01.0218:book=1:line=1}]
[]
[\tex{Odysee from Homeros on the Internet}]
\starttext
Read once from:
\hyphenatedurl{http://www.perseus.tufts.edu/cgi-bin/ptext?doc=Perseus:text:1999.01.0218:book=1:line=1}
Read also from \from[hyphenated]!
\stoptext
Don not to forget to enclose the very long URL in braces! - Otherwise
the requested page is not loaded.
Willi
Patrick Gundlach wrote:
> [...]
>
>
>>I am seeing here and there that the syntax for \useURL is:
>>
>>\useURL[][][][]
>
>
> Hi, I have put an example in texshow-web
> (http://texshow.contextgarden.net/cmd=useURL)
>
> Patrick
More information about the ntg-context
mailing list