Re: [NTG-context] Typesetting url's in ConTeXt?

2011-04-10 Thread Marco Pessotto
Aditya Mahajan adit...@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:/id=15ln=test\letterpercent 
20_test\#2}}[url(http://domain.tdl:/id=15ln=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
___


[NTG-context] Typesetting url's in ConTeXt?

2011-04-09 Thread Alasdair McAndrew
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
___
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
___

Re: [NTG-context] Typesetting url's in ConTeXt?

2011-04-09 Thread Aditya Mahajan

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
___