* Typesetting url's in ConTeXt?
@ 2011-04-10 0:29 Alasdair McAndrew
2011-04-10 0:52 ` Aditya Mahajan
0 siblings, 1 reply; 3+ messages in thread
From: Alasdair McAndrew @ 2011-04-10 0:29 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 597 bytes --]
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?
Thanks,
Alasdair
--
Blog: http://amca01.wordpress.com
Web: http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew
[-- Attachment #1.2: Type: text/html, Size: 848 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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: Typesetting url's in ConTeXt?
2011-04-10 0:29 Typesetting url's in ConTeXt? Alasdair McAndrew
@ 2011-04-10 0:52 ` Aditya Mahajan
2011-04-10 18:48 ` Marco Pessotto
0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2011-04-10 0:52 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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: Typesetting url's in ConTeXt?
2011-04-10 0:52 ` Aditya Mahajan
@ 2011-04-10 18:48 ` Marco Pessotto
0 siblings, 0 replies; 3+ messages in thread
From: Marco Pessotto @ 2011-04-10 18:48 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-04-10 18:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-10 0:29 Typesetting url's in ConTeXt? Alasdair McAndrew
2011-04-10 0:52 ` Aditya Mahajan
2011-04-10 18:48 ` Marco Pessotto
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).