From: Marco Pessotto <melmothx@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: Typesetting url's in ConTeXt?
Date: Sun, 10 Apr 2011 20:48:41 +0200 [thread overview]
Message-ID: <87vcymq6wm.fsf@universe.krase.net> (raw)
In-Reply-To: <alpine.LNX.2.01.1104092051580.3220@ybpnyubfg.ybpnyqbznva>
Aditya Mahajan <adityam@umich.edu> writes:
> On Sun, 10 Apr 2011, Alasdair McAndrew wrote:
>
>> There's a wiki page all about typesetting url's, but I can't seem to get
>> them to work. All I want to do is to display a url in a typewriter font,
>> for document printing - I don't need a live link. What I want is for the
>> output to be similar to that provided by LaTeX's url package, so that, for
>> example: \url{https://This_is_a_url.html} would be appropriately typeset,
>> including all such ascii characters as underscores.
>>
>> What's the canonical way to do this?
>
> \hyphenatedurl{....}
>
> Aditya
Try this:
\setupinteraction[state=start]
\starttext
\goto{\hyphenatedurl{http://domain.tdl:6666/id=15&ln=test\letterpercent 20_test\#2}}[url(http://domain.tdl:6666/id=15&ln=test\%20_test\#2)]
\stoptext
IIRC there has been a discussion about the percent (%) in url, so maybe
this workaround isn't needed anymore. Anyway, this is what I usually use.
--
Marco
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2011-04-10 18:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-10 0:29 Alasdair McAndrew
2011-04-10 0:52 ` Aditya Mahajan
2011-04-10 18:48 ` Marco Pessotto [this message]
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=87vcymq6wm.fsf@universe.krase.net \
--to=melmothx@gmail.com \
--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).