ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* RE: Activating urls
@ 2005-04-07 22:43 Idris Samawi Hamid
  2005-04-08  0:11 ` Nikolai Weibull
  2005-04-08  9:02 ` Patrick Gundlach
  0 siblings, 2 replies; 10+ messages in thread
From: Idris Samawi Hamid @ 2005-04-07 22:43 UTC (permalink / raw)


Thank you Nikolai (and Patrick too!)

The following outputs the url but I don't get a hyperlink:

=================================================
% output=pdf interface=en

\useURL
[Adobe]
[http://partners.adobe.com/public/developer/en/font/5091.Design_MM_Fonts.pdf]
\setupinteraction[state=start]

\starttext

\url[Adobe].

\stoptext
=================================================

Am I missing yet something else?

Best
Idris

============================
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Activating urls
  2005-04-07 22:43 Activating urls Idris Samawi Hamid
@ 2005-04-08  0:11 ` Nikolai Weibull
  2005-04-08  0:49   ` Robert Ullrey
  2005-04-08  9:02 ` Patrick Gundlach
  1 sibling, 1 reply; 10+ messages in thread
From: Nikolai Weibull @ 2005-04-08  0:11 UTC (permalink / raw)


Idris Samawi Hamid, April 7:

> Am I missing yet something else?

How are you viewing this?  Perhaps your application doesn’t support
hyperlinks, or they have been disabled in it?,
        nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Activating urls
  2005-04-08  0:11 ` Nikolai Weibull
@ 2005-04-08  0:49   ` Robert Ullrey
  0 siblings, 0 replies; 10+ messages in thread
From: Robert Ullrey @ 2005-04-08  0:49 UTC (permalink / raw)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Idris,
[First, sorry if you get this twice. I first mailed it from my wrong 
account]

Not exactly sure what you are after, do you want to "print" the url
out, or make an active link that clicking on will take you to.

If you want to print the url, then

\setupcolors
	[state=start]
\setupinteraction
   	[state=start,color=blue]
%  To use a url,
\useURL
     [mypage] << the cite you will use
     [http://www.webpage.edu] << the actual web address
     [] << if you were linking to a file
     [\tex{My Web page}] << What you want the link to print in the
document

\starttext
This is an example of link usage in \ConTeXt. If the link works, you
should see that My Web Page is repeated here \from[mypage] and is
highlighted in blue and that the link works. An alternative would be to
list the link as a url as in here, \url[mypage]. However, using the url
command gets a printing of the url, e.g,. http://www.webpage.edu.
\stoptext

Hope that helps.
Robert


On Apr 7, 2005, at 5:11 PM, Nikolai Weibull wrote:

> Idris Samawi Hamid, April 7:
>
>> Am I missing yet something else?
>
> How are you viewing this?  Perhaps your application doesn’t support
> hyperlinks, or they have been disabled in it?,
>         nikolai
>
> -- 
> Nikolai Weibull: now available free of charge at http://bitwi.se/!
> Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
> main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.1

iQA/AwUBQlXVDmO1AQX/YDblEQIXqACgxuUYXNPThkTc4mx+EFdRcOezaz8AnR08
JT3TPhxB8/lJJjA3t7GNI/6V
=WsTR
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Activating urls
  2005-04-07 22:43 Activating urls Idris Samawi Hamid
  2005-04-08  0:11 ` Nikolai Weibull
@ 2005-04-08  9:02 ` Patrick Gundlach
  2005-04-08 11:52   ` Nikolai Weibull
  2005-04-08 11:55   ` Nikolai Weibull
  1 sibling, 2 replies; 10+ messages in thread
From: Patrick Gundlach @ 2005-04-08  9:02 UTC (permalink / raw)


Hi Idris,

> The following outputs the url but I don't get a hyperlink:

I get a 'half working' hyperlink. Try to replace '\url' by '\from'.

Patrick

--------------------------------------------------
\useURL
[Adobe]
[http://partners.adobe.com/public/developer/en/font/5091.Design_MM_Fonts.pdf]

\setupinteraction[state=start]

\starttext

\from[Adobe].

\stoptext
--------------------------------------------------

-- 
ConTeXt wiki and more: http://contextgarden.net

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Re: Activating urls
  2005-04-08  9:02 ` Patrick Gundlach
@ 2005-04-08 11:52   ` Nikolai Weibull
  2005-04-08 11:57     ` Patrick Gundlach
  2005-04-08 11:55   ` Nikolai Weibull
  1 sibling, 1 reply; 10+ messages in thread
From: Nikolai Weibull @ 2005-04-08 11:52 UTC (permalink / raw)


Patrick Gundlach, April 8:

> \from[Adobe].

Aha, is that the right way to do it?  I actually get fully working
hyperlinks with \url (as far as I can tell), but perhaps \from is the
right macro.  Sorry about confusion,
        nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Re: Activating urls
  2005-04-08  9:02 ` Patrick Gundlach
  2005-04-08 11:52   ` Nikolai Weibull
@ 2005-04-08 11:55   ` Nikolai Weibull
  2005-04-08 15:02     ` Patrick Gundlach
  1 sibling, 1 reply; 10+ messages in thread
From: Nikolai Weibull @ 2005-04-08 11:55 UTC (permalink / raw)


Patrick Gundlach, April 8:

> I get a 'half working' hyperlink. Try to replace '\url' by '\from'.

Actually, for me, both work in acroread (7),
        nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Activating urls
  2005-04-08 11:52   ` Nikolai Weibull
@ 2005-04-08 11:57     ` Patrick Gundlach
  0 siblings, 0 replies; 10+ messages in thread
From: Patrick Gundlach @ 2005-04-08 11:57 UTC (permalink / raw)


Hi,

>> \from[Adobe].
>
> Aha, is that the right way to do it?  

I'd say yes, but my knowledge is only based on practice and not the
source/documentation. (Too lazy to look at it right now.)

> I actually get fully working hyperlinks with \url (as far as I can
> tell), but perhaps \from is the right macro. Sorry about confusion,


I tried Idris' example and found out that it lead to the wrong
destination, and the printed hyperlink looked fine (but the real one
wasn't). Then I tried \from instead of \url and that gave me the
correct behaviour. 

Pat
-- 
ConTeXt wiki and more: http://contextgarden.net

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Activating urls
  2005-04-08 11:55   ` Nikolai Weibull
@ 2005-04-08 15:02     ` Patrick Gundlach
  2005-04-09 12:15       ` Nikolai Weibull
  0 siblings, 1 reply; 10+ messages in thread
From: Patrick Gundlach @ 2005-04-08 15:02 UTC (permalink / raw)



>> I get a 'half working' hyperlink. Try to replace '\url' by '\from'.
>
> Actually, for me, both work in acroread (7),

I think that there is some magic in acroread 7. it parses the text and
if it sees a http://someth.ing  it will make that active. 

When looking at the pdf file from the code below, there is only one
real annotation object (well, split in 14 sub-objects) coming from the
\from-statement. The url generated by the \url command is not correct.

--------------------------------------------------
\pdfcompresslevel=0
\setuppagenumbering[location=]

\useURL
[Adobe]
[http://partners.adobe.com/public/developer/en/font/5091.Design_MM_Fonts.pdf]

\setupinteraction[state=start]

\startbuffer
\url[Adobe]

\from[Adobe]
\stopbuffer
\starttext
\typebuffer
\getbuffer
\stoptext
--------------------------------------------------

Patrick
-- 
ConTeXt wiki and more: http://contextgarden.net

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Re: Activating urls
  2005-04-08 15:02     ` Patrick Gundlach
@ 2005-04-09 12:15       ` Nikolai Weibull
  0 siblings, 0 replies; 10+ messages in thread
From: Nikolai Weibull @ 2005-04-09 12:15 UTC (permalink / raw)


Patrick Gundlach, April 8:

> > > I get a 'half working' hyperlink. Try to replace '\url' by
> > > '\from'.

> > Actually, for me, both work in acroread (7),

> I think that there is some magic in acroread 7. it parses the text and
> if it sees a http://someth.ing  it will make that active. 

You are right,
        nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Re: Activating urls
  2005-04-07 19:47 ` Patrick Gundlach
@ 2005-04-07 21:37   ` Robert Ullrey
  0 siblings, 0 replies; 10+ messages in thread
From: Robert Ullrey @ 2005-04-07 21:37 UTC (permalink / raw)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Idris,

Not exactly sure what you are after, do you want to "print" the url 
out, or make an active link that clicking on will take you to.

If you want to print the url, then

\setupcolors
	[state=start]
\setupinteraction
  	[state=start,color=blue]
%  To use a url,
\useURL
    [mypage] << the cite you will use
    [http://www.webpage.edu] << the actual web address
    [] << if you were linking to a file
    [\tex{My Web page}] << What you want the link to print in the 
document

\starttext
This is an example of link usage in \ConTeXt. If the link works, you 
should see that My Web Page is repeated here \from[mypage] and is 
highlighted in blue and that the link works. An alternative would be to 
list the link as a url as in here, \url[mypage]. However, using the url 
command gets a printing of the url, e.g,. http://www.webpage.edu.
\stoptext

Hope that helps.
Robert


-----BEGIN PGP SIGNATURE-----
Version: PGP 8.1

iQA/AwUBQlWoN/FTYcwurb3FEQJ98wCeIYP/PyhUp2/4LY6GBvT5UamEFGUAoPty
3sZ4KCQKalOiUAZFjmJ0cJo9
=HswA
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-04-09 12:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-07 22:43 Activating urls Idris Samawi Hamid
2005-04-08  0:11 ` Nikolai Weibull
2005-04-08  0:49   ` Robert Ullrey
2005-04-08  9:02 ` Patrick Gundlach
2005-04-08 11:52   ` Nikolai Weibull
2005-04-08 11:57     ` Patrick Gundlach
2005-04-08 11:55   ` Nikolai Weibull
2005-04-08 15:02     ` Patrick Gundlach
2005-04-09 12:15       ` Nikolai Weibull
  -- strict thread matches above, loose matches on Subject: below --
2005-04-07 18:45 Idris Samawi Hamid
2005-04-07 19:47 ` Patrick Gundlach
2005-04-07 21:37   ` Robert Ullrey

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).