ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan Bowen <acbowen@princeton.edu>
Subject: Re: wrapping a long URL without added spaces
Date: Thu, 13 Apr 2006 08:03:32 -0400	[thread overview]
Message-ID: <96E463D4-7746-4145-9476-38E2D2DEC281@princeton.edu> (raw)
In-Reply-To: <443E3628.9070902@wxs.nl>

Hans—

The problem arises if one has

[Campbell]
[{http://www.very.long.edu/very/very/long/url/2002dp1.pdf}]
[]
[{\hyphenatedurl{http://www.very.long.edu/very/very/long/url/
2002dp1.pdf}}]

and then tries \from[Campbell] with \setupinteraction[state=start,]

But I see now that I that I can get the desired wrapping using \goto  
rather than \hyphenatedurl and \from.

Two questions

•  Which is preferred, \useURL or \useurl?

• Is there a “\setupgoto”? I need to make the typeface in the  
printed URL the same as that in the body text.

and thanks.

Alan


On Apr 13, 2006, at 7:29 AM, Hans Hagen wrote:

> Alan Bowen wrote:
>> I can wrap a long URL using \hyphenatedurl, but not without getting
>> some unwanted spaces before the numerous �/�s in the URL.
>>
>> I expect that I have missed something elementary, again. Still, my
>> efforts to avoid the spaces have thus far been unsuccessful, so any
>> help would be gratefully received.
>>
>> My current setup is
>>
>> [Campbell]
>> [{http://www.very.long.edu/very/very/long/url/2002dp1.pdf}]
>> []
>> [{\hyphenatedurl{http://www.very.long.edu/very/very/long/url/
>> 2002dp1.pdf}}]
>>
>> I also have
>> \setupinteraction[state=start,color=blue,style=rm]
>>
> can you be more specific ...
>
> \showframe
>
> \setupinteraction[state=start]
>
> \starttext
>
> \useurl
>   [Campbell]
>   [http://www.very.long.edu/very/very/long/url/2002dp1.pdf]
>   []
>   [http://www.very.long.edu/very/very/long/url/2002dp1.pdf]
>
> \hsize2mm\goto{\url[Campbell]}[url(Campbell)]
>
> \stoptext
>
> i see no spaces
>
> Hans
>
> -----------------------------------------------------------------
>                                           Hans Hagen | PRAGMA ADE
>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
>                                              | www.pragma-pod.nl
> -----------------------------------------------------------------
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

  reply	other threads:[~2006-04-13 12:03 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-11 22:33 Alan Bowen
2006-04-12  8:04 ` Taco Hoekwater
2006-04-12 11:47   ` Alan Bowen
2006-04-12 12:45     ` Taco Hoekwater
2006-04-13 11:53       ` Alan Bowen
2006-04-13 11:29 ` Hans Hagen
2006-04-13 12:03   ` Alan Bowen [this message]
2006-04-13 13:00     ` Hans Hagen
2006-04-13 19:15       ` Alan Bowen
2006-04-14 18:21         ` Johannes Graumann
2006-04-14 18:35           ` Hans Hagen
2006-04-14 18:36             ` Johannes Graumann
2006-04-14 18:55           ` Alan Bowen
2006-04-14 18:58             ` Johannes Graumann

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=96E463D4-7746-4145-9476-38E2D2DEC281@princeton.edu \
    --to=acbowen@princeton.edu \
    --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).