ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* url compared to hyperref
@ 2006-10-24 21:06 Marko Schütz
  2006-10-25  9:01 ` Taco Hoekwater
  0 siblings, 1 reply; 9+ messages in thread
From: Marko Schütz @ 2006-10-24 21:06 UTC (permalink / raw)



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

When using hyperref and displaying the resulting PDF in xpdf, I see
links that are active. 

I tried achieving the same with useURL, url and goto, but the
resulting links aren't active in xpdf. I have to use acroread to have
active links.

Is there a compelling reason for this behavior?

Thanks,

Marko

[-- Attachment #1.2: Type: application/pgp-signature, Size: 186 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] 9+ messages in thread

* Re: url compared to hyperref
  2006-10-24 21:06 url compared to hyperref Marko Schütz
@ 2006-10-25  9:01 ` Taco Hoekwater
  2006-10-25 22:07   ` Marko Schütz
  0 siblings, 1 reply; 9+ messages in thread
From: Taco Hoekwater @ 2006-10-25  9:01 UTC (permalink / raw)



Hi Marko,

Marko Schütz wrote:
> When using hyperref and displaying the resulting PDF in xpdf, I see
> links that are active. 
> 
> I tried achieving the same with useURL, url and goto, but the
> resulting links aren't active in xpdf. I have to use acroread to have
> active links.
> 
> Is there a compelling reason for this behavior?

Quick test here works fine. Can you post a small example file?

Taco

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

* Re: url compared to hyperref
  2006-10-25  9:01 ` Taco Hoekwater
@ 2006-10-25 22:07   ` Marko Schütz
  2006-10-26  4:03     ` Aditya Mahajan
  2006-10-26 12:07     ` Sanjoy Mahajan
  0 siblings, 2 replies; 9+ messages in thread
From: Marko Schütz @ 2006-10-25 22:07 UTC (permalink / raw)



[-- Attachment #1.1.1: Type: text/plain, Size: 838 bytes --]

Dear Taco,

At Wed, 25 Oct 2006 11:01:06 +0200,
Taco Hoekwater wrote:
> 
> 
> Hi Marko,
> 
> Marko Schütz wrote:
> > When using hyperref and displaying the resulting PDF in xpdf, I see
> > links that are active. 
> > 
> > I tried achieving the same with useURL, url and goto, but the
> > resulting links aren't active in xpdf. I have to use acroread to have
> > active links.
> > 
> > Is there a compelling reason for this behavior?
> 
> Quick test here works fine. Can you post a small example file?

below I attach a LaTeX and a ConTeXt version. In xpdf the LaTeX
version gives me the link that launches urlCommand, whereas the
ConTeXt version presents the url text, but does not make it a link. In
acroread both documents result in links, however they are presented
slightly different.

Thanks,

Marko



[-- Attachment #1.1.2: test-context.tex --]
[-- Type: application/x-tex, Size: 164 bytes --]

[-- Attachment #1.1.3: Type: text/plain, Size: 1 bytes --]



[-- Attachment #1.1.4: test-latex.tex --]
[-- Type: application/x-tex, Size: 154 bytes --]

[-- Attachment #1.1.5: Type: text/plain, Size: 1 bytes --]



[-- Attachment #1.1.6: test-context.pdf --]
[-- Type: application/pdf, Size: 11552 bytes --]

[-- Attachment #1.1.7: Type: text/plain, Size: 1 bytes --]



[-- Attachment #1.1.8: test-latex.pdf --]
[-- Type: application/pdf, Size: 13815 bytes --]

[-- Attachment #1.2: Type: application/pgp-signature, Size: 186 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] 9+ messages in thread

* Re: url compared to hyperref
  2006-10-25 22:07   ` Marko Schütz
@ 2006-10-26  4:03     ` Aditya Mahajan
  2006-10-26 21:49       ` Marko Schütz
  2006-10-26 12:07     ` Sanjoy Mahajan
  1 sibling, 1 reply; 9+ messages in thread
From: Aditya Mahajan @ 2006-10-26  4:03 UTC (permalink / raw)


On Thu, 26 Oct 2006, Marko Schütz wrote:

> Dear Taco,
>
> At Wed, 25 Oct 2006 11:01:06 +0200,
> Taco Hoekwater wrote:
>>
>>
>> Hi Marko,
>>
>> Marko Schütz wrote:
>>> When using hyperref and displaying the resulting PDF in xpdf, I see
>>> links that are active.
>>>
>>> I tried achieving the same with useURL, url and goto, but the
>>> resulting links aren't active in xpdf. I have to use acroread to have
>>> active links.
>>>
>>> Is there a compelling reason for this behavior?
>>
>> Quick test here works fine. Can you post a small example file?
>
> below I attach a LaTeX and a ConTeXt version. In xpdf the LaTeX
> version gives me the link that launches urlCommand, whereas the
> ConTeXt version presents the url text, but does not make it a link.

Add

\setupinteraction[state=start]

in the beginning of the file.

> In acroread both documents result in links, however they are 
> presented slightly different.

That is because acroread tries to guess the url from the text.

Aditya

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

* Re: url compared to hyperref
  2006-10-25 22:07   ` Marko Schütz
  2006-10-26  4:03     ` Aditya Mahajan
@ 2006-10-26 12:07     ` Sanjoy Mahajan
  2006-10-26 23:13       ` Marko Schütz
  1 sibling, 1 reply; 9+ messages in thread
From: Sanjoy Mahajan @ 2006-10-26 12:07 UTC (permalink / raw)


Your demimed ConTeXt source:

==================================
\starttext
\useURL[imara-web-page][http://imara.csail.mit.edu][http://imara.csail.mit.edu]
An interesting project can be found at \url[imara-web-page].
\stoptext
==================================

(by the way, I find it easiest if example tex code is placed inline in
a message, unless it needs attaching due to strange character codes or
whitespace issues, in which case quoted-printable encoding makes it
easier to scan than base64 encoding does.)

>From an earlier message in this thread:

  Here is an example that I put on the wiki (because I kept forgetting
  how to do it and wanted one place to find it again, but I never can
  find it quickly there anyway, so now it's in the list archives at
  least):

  \setupcolors[state=start]
  \setupinteraction[state=start,color=middlered]
  \useURL [garden][http://contextgarden.net][][Context garden]
  \starttext
  The \from[garden] is useful.
  \stoptext

  I just tested it on the live context and it works fine with an active
  link in the pdf file.  But it didn't work in the 2006.10.05 beta (the
  space in the "Context garden" caused problems).

  Maybe your example didn't have \setupinteraction[state=start] ?

Which looks like one of the problems.  For the other, you need to
replace \url with \from, giving:

\setupinteraction[state=start]
\starttext
\useURL[imara-web-page][http://imara.csail.mit.edu][http://imara.csail.mit.edu]
An interesting project can be found at \from[imara-web-page].
\stoptext

which works fine here.  If you want colored links (green by default), add

  \setupcolors[state=start]

And to change the link color, use the color= option to \setupinteraction:

  \setupinteraction[state=start,color=middlered]

-Sanjoy

`Never underestimate the evil of which men of power are capable.'
         --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.

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

* Re: url compared to hyperref
  2006-10-26  4:03     ` Aditya Mahajan
@ 2006-10-26 21:49       ` Marko Schütz
  0 siblings, 0 replies; 9+ messages in thread
From: Marko Schütz @ 2006-10-26 21:49 UTC (permalink / raw)



[-- Attachment #1.1.1: Type: text/plain, Size: 1464 bytes --]

Dear Aditya,

At Thu, 26 Oct 2006 00:03:44 -0400 (EDT),
Aditya Mahajan wrote:
> 
> On Thu, 26 Oct 2006, Marko Schütz wrote:
> 
> > Dear Taco,
> >
> > At Wed, 25 Oct 2006 11:01:06 +0200,
> > Taco Hoekwater wrote:
> >>
> >>
> >> Hi Marko,
> >>
> >> Marko Schütz wrote:
> >>> When using hyperref and displaying the resulting PDF in xpdf, I see
> >>> links that are active.
> >>>
> >>> I tried achieving the same with useURL, url and goto, but the
> >>> resulting links aren't active in xpdf. I have to use acroread to have
> >>> active links.
> >>>
> >>> Is there a compelling reason for this behavior?
> >>
> >> Quick test here works fine. Can you post a small example file?
> >
> > below I attach a LaTeX and a ConTeXt version. In xpdf the LaTeX
> > version gives me the link that launches urlCommand, whereas the
> > ConTeXt version presents the url text, but does not make it a link.
> 
> Add
> 
> \setupinteraction[state=start]

I tried your recommendation (see attached files), but did not obtain
the desired results.

Best regards,

Marko

> in the beginning of the file.
> 
> > In acroread both documents result in links, however they are 
> > presented slightly different.
> 
> That is because acroread tries to guess the url from the text.
> 
> Aditya
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 

[-- Attachment #1.1.2: test-context.tex --]
[-- Type: application/x-tex, Size: 196 bytes --]

[-- Attachment #1.1.3: Type: text/plain, Size: 1 bytes --]



[-- Attachment #1.1.4: test-context.pdf --]
[-- Type: application/pdf, Size: 11831 bytes --]

[-- Attachment #1.2: Type: application/pgp-signature, Size: 186 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] 9+ messages in thread

* Re: url compared to hyperref
  2006-10-26 12:07     ` Sanjoy Mahajan
@ 2006-10-26 23:13       ` Marko Schütz
  0 siblings, 0 replies; 9+ messages in thread
From: Marko Schütz @ 2006-10-26 23:13 UTC (permalink / raw)



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

Dear Sanjoy,

At Thu, 26 Oct 2006 13:07:22 +0100,
Sanjoy Mahajan wrote:
[..]
> Which looks like one of the problems.  For the other, you need to
> replace \url with \from, giving:

thank you very much: the \from did the trick!

> \setupinteraction[state=start]
> \starttext
> \useURL[imara-web-page][http://imara.csail.mit.edu][http://imara.csail.mit.edu]
> An interesting project can be found at \from[imara-web-page].
> \stoptext
> 
> which works fine here.  If you want colored links (green by default), add

here too. 

Thanks,

Marko

[-- Attachment #1.2: Type: application/pgp-signature, Size: 186 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] 9+ messages in thread

* Re: url compared to hyperref
  2006-10-20  0:34 Marko Schütz
@ 2006-10-20 13:16 ` Sanjoy Mahajan
  0 siblings, 0 replies; 9+ messages in thread
From: Sanjoy Mahajan @ 2006-10-20 13:16 UTC (permalink / raw)


Here is an example that I put on the wiki (because I kept forgetting
how to do it and wanted one place to find it again, but I never can
find it quickly there anyway, so now it's in the list archives at
least):

\setupcolors[state=start]
\setupinteraction[state=start,color=middlered]
\useURL [garden][http://contextgarden.net][][Context garden]
\starttext
The \from[garden] is useful.
\stoptext

I just tested it on the live context and it works fine with an active
link in the pdf file.  But it didn't work in the 2006.10.05 beta (the
space in the "Context garden" caused problems).

Maybe your example didn't have \setupinteraction[state=start] ?

-Sanjoy

`Never underestimate the evil of which men of power are capable.'
         --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.

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

* url compared to hyperref
@ 2006-10-20  0:34 Marko Schütz
  2006-10-20 13:16 ` Sanjoy Mahajan
  0 siblings, 1 reply; 9+ messages in thread
From: Marko Schütz @ 2006-10-20  0:34 UTC (permalink / raw)



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

When using hyperref and displaying the resulting PDF in xpdf, I see
links that are active. 

I tried achieving the same with useURL, url and goto, but the
resulting links aren't active in xpdf. I have to use acroread to have
active links.

Is there a compelling reason for this behavior?

Thanks,

Marko

[-- Attachment #1.2: Type: application/pgp-signature, Size: 186 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] 9+ messages in thread

end of thread, other threads:[~2006-10-26 23:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-24 21:06 url compared to hyperref Marko Schütz
2006-10-25  9:01 ` Taco Hoekwater
2006-10-25 22:07   ` Marko Schütz
2006-10-26  4:03     ` Aditya Mahajan
2006-10-26 21:49       ` Marko Schütz
2006-10-26 12:07     ` Sanjoy Mahajan
2006-10-26 23:13       ` Marko Schütz
  -- strict thread matches above, loose matches on Subject: below --
2006-10-20  0:34 Marko Schütz
2006-10-20 13:16 ` Sanjoy Mahajan

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