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; 15+ 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] 15+ 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; 15+ 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] 15+ messages in thread

* Re: Activating urls
  2005-04-08  0:11 ` Nikolai Weibull
@ 2005-04-08  0:49   ` Robert Ullrey
  0 siblings, 0 replies; 15+ 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] 15+ 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; 15+ 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] 15+ 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; 15+ 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] 15+ 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; 15+ 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] 15+ messages in thread

* Re: Activating urls
  2005-04-08 11:52   ` Nikolai Weibull
@ 2005-04-08 11:57     ` Patrick Gundlach
  0 siblings, 0 replies; 15+ 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] 15+ 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; 15+ 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] 15+ 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; 15+ 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] 15+ messages in thread

* Re: Activating urls
  2005-04-07 19:30 Loeghmon Tadayon Nejad
@ 2005-04-08  7:29 ` Willi Egger
  0 siblings, 0 replies; 15+ messages in thread
From: Willi Egger @ 2005-04-08  7:29 UTC (permalink / raw)


Hi,

In order to keep threads clean, would you mind to choose a new subject 
for a new issue?

Since you are posting to ConTeXt mailinglist ... Though there are 
several options to get started with tex I would recommend you to fetch a 
minimal distribution suitable for your OS from Pragma site 
(http://www.pragma-ade.com/). Install this distribution.
In order to get you started just study the beginners manual of ConTeXt.
For further reading there is a bunch of manuals available. There is a 
wiki, wich contains already a large collection of issues 
(http://contextgarden.net/Main_Page)

Willi

Loeghmon Tadayon Nejad wrote:
> Dear Everyone,
>  
> I am a really disenchanted user of MS Word and absolutely new to the world of Tex. Will someone virtually hold my hand and recommend a version of Tex and some tutorial that tells me how to install the program, compile a .tex file, execute, etc.? I hope I can learn enough in three months and ask better questions then! Thank you all.
> 
> Idris Samawi Hamid <ishamid@lamar.colostate.edu> wrote:
> Dear knights,
> 
> How do I get url hyperlinks? The following does not work, so I am missing 
> something:
> 
> \starttext
> 
> {\tt \useURL
> [Adobe]
> [http://partners.adobe.com/public/developer/en/font/5091.Design_MM_Fonts.pdf][
> ][]
> }.
> 
> \stoptext
> 
> Also, is there a manual that covers this topic?
> 
> Best
> Idris
> 
> ============================
> Professor Idris Samawi Hamid
> Department of Philosophy
> Colorado State University
> Fort Collins, CO 80523
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 
> 
> Regards,
> 
> Loeghmon Tadayon  Nejad
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

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

* RE: Activating urls
@ 2005-04-08  3:53 Idris Samawi Hamid
  0 siblings, 0 replies; 15+ messages in thread
From: Idris Samawi Hamid @ 2005-04-08  3:53 UTC (permalink / raw)


>===== Original Message From mailing list for ConTeXt users
<ntg-context@ntg.nl> =====
>How are you viewing this?  Perhaps your application doesn’t support
>hyperlinks, or they have been disabled in it?,

Hi (and thnx 4 your advice),

Upon compiling the following file, I get hyperlinks in the table of contents,
I get colors for both contents and hyperlinks, but the url hyperlink still
does not work. That is, Acrobat does not point out the link or allow me to
click on it.

Any idea what's missing? Is it a bug? I'm running the 3-16 mswincontext
version.

Best
Idris

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

\setupcolors[state=start]
\setupinteraction[state=start,color=darkgreen]
\setupurl [color=darkgreen]

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

\starttext

\placecontent

\page

\chapter{Test}

\section{Test}

\url[Adobe].

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

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

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

* Re: Activating urls
  2005-04-07 18:45 Idris Samawi Hamid
  2005-04-07 19:20 ` Nikolai Weibull
@ 2005-04-07 19:47 ` Patrick Gundlach
  1 sibling, 0 replies; 15+ messages in thread
From: Patrick Gundlach @ 2005-04-07 19:47 UTC (permalink / raw)


Hello Idris,

> How do I get url hyperlinks? The following does not work, so I am missing 
> something:

I have not tried your example, but have a look at texshow-web:

http://texshow.contextgarden.net/cmd=useURL

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

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

* Re: Activating urls
@ 2005-04-07 19:30 Loeghmon Tadayon Nejad
  2005-04-08  7:29 ` Willi Egger
  0 siblings, 1 reply; 15+ messages in thread
From: Loeghmon Tadayon Nejad @ 2005-04-07 19:30 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 1009 bytes --]

Dear Everyone,
 
I am a really disenchanted user of MS Word and absolutely new to the world of Tex. Will someone virtually hold my hand and recommend a version of Tex and some tutorial that tells me how to install the program, compile a .tex file, execute, etc.? I hope I can learn enough in three months and ask better questions then! Thank you all.

Idris Samawi Hamid <ishamid@lamar.colostate.edu> wrote:
Dear knights,

How do I get url hyperlinks? The following does not work, so I am missing 
something:

\starttext

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

\stoptext

Also, is there a manual that covers this topic?

Best
Idris

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

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


Regards,

Loeghmon Tadayon  Nejad

[-- Attachment #1.2: Type: text/html, Size: 1304 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

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

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

* Re: Activating urls
  2005-04-07 18:45 Idris Samawi Hamid
@ 2005-04-07 19:20 ` Nikolai Weibull
  2005-04-07 19:47 ` Patrick Gundlach
  1 sibling, 0 replies; 15+ messages in thread
From: Nikolai Weibull @ 2005-04-07 19:20 UTC (permalink / raw)


Idris Samawi Hamid, April 7:

> How do I get url hyperlinks? The following does not work, so I am
> missing something:

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

Enjoy,
        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] 15+ messages in thread

* Activating urls
@ 2005-04-07 18:45 Idris Samawi Hamid
  2005-04-07 19:20 ` Nikolai Weibull
  2005-04-07 19:47 ` Patrick Gundlach
  0 siblings, 2 replies; 15+ messages in thread
From: Idris Samawi Hamid @ 2005-04-07 18:45 UTC (permalink / raw)


Dear knights,

How do I get url hyperlinks? The following does not work, so I am missing 
something:

\starttext

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

\stoptext

Also, is there a manual that covers this topic?

Best
Idris

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

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

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

Thread overview: 15+ 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-08  3:53 Idris Samawi Hamid
2005-04-07 19:30 Loeghmon Tadayon Nejad
2005-04-08  7:29 ` Willi Egger
2005-04-07 18:45 Idris Samawi Hamid
2005-04-07 19:20 ` Nikolai Weibull
2005-04-07 19:47 ` Patrick Gundlach

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