ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Willi Egger <w.egger@boede.nl>
Subject: Re: Re: Wrap a url
Date: Sun, 05 Dec 2004 18:52:08 +0100	[thread overview]
Message-ID: <41B34AC8.5070201@boede.nl> (raw)
In-Reply-To: <m2d5xr1mjy.fsf@levana.de>

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

  parent reply	other threads:[~2004-12-05 17:52 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-30 21:22 David Arnold
2004-11-02  9:34 ` Willi Egger
2004-11-02 14:17   ` David Arnold
2004-11-02 16:24     ` Hans Hagen
2004-11-02 17:47       ` David Arnold
2004-11-02 18:02         ` Hans Hagen
2004-12-03 14:30         ` Patrick Gundlach
2004-12-05 17:51           ` Willi Egger
2004-12-05 22:17             ` Patrick Gundlach
2004-12-06 21:19               ` Willi Egger
2004-12-05 17:52           ` Willi Egger [this message]
2004-12-06 12:40           ` using fonts Wolfgang Zillig
2004-12-06 13:41             ` Patrick Gundlach
2004-12-06 14:52               ` Adam Lindsay
2004-12-06 21:30                 ` Re: using fonts -- installation Rob Ermers
2004-12-06 21:50                   ` Adam Lindsay
2004-12-06 23:19                     ` Rob Ermers
2004-12-06 23:23                     ` h h extern
2004-12-06 23:27                   ` h h extern
2004-12-07  8:09                     ` r.ermers
2004-12-07  8:18                       ` Adam Lindsay
2004-12-07  8:17                   ` Adam Lindsay
2005-01-10 16:12               ` Problem with backgrounds and page breaks Matthias Weber
2005-01-10 17:49                 ` Hans Hagen
2005-01-10 18:35                   ` Matthias Weber
2005-01-10 18:57                     ` Hans Hagen
2005-01-10 19:29                       ` Matthias Weber
2004-12-06 14:45             ` using fonts Adam Lindsay
2004-12-06 14:50               ` Patrick Gundlach

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41B34AC8.5070201@boede.nl \
    --to=w.egger@boede.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).