ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: John Grasty <johnpgrasty@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: goto reference
Date: Thu, 19 Apr 2018 09:57:43 +0200	[thread overview]
Message-ID: <A73F017C-52B4-4B25-846E-6A409A0752FE@gmail.com> (raw)
In-Reply-To: <475DD316-7417-4E3C-9FC9-EE4C1EA2E812@ziggo.nl>

Hello all,

Adobe seems to indicate (at least with Adobe Reader/Acrobat) that this isn't possible:

"If you use URLs containing local hard drive addresses (c:\folder\), you cannot link to page numbers or set destinations."

[https://helpx.adobe.com/acrobat/kb/link-html-pdf-page-acrobat.html]

Sorry to not be of more help,
John Grasty

> On 19 Apr 2018, at 09:37, Hans van der Meer <havdmeer@ziggo.nl> wrote:
> 
> The goto to the internet as given by Wolfgang works here too, but other configurations do not. Please ascertain my observations from the test given below. You should replace the absolute path by your own, of course. Three cases are programmed:
> (1) Wolfgang’s
> (2) full path ftp:// access opens file but at last page opened
> (3) local path does not open and brings up an Alert
> Run from TeXShop and also directly in Preview and Adobe Reader with the same results.
> 
> Thanks in advance.
> 
> dr. Hans van der Meer
> 
> 
> \starttext
> \currentdate-\currenttime\quad\ConTeXt-version=\contextversion\blank
> Testing directly from \ConTeXt:\blank
> \setupinteraction[state=start,color=blue,style=italic]
> \goto{Beginners manual called with http:// opens in browser as expected}[url(http://pragma-ade.com/general/manuals/mp-cb-en.pdf\letterhash page=50)]\blank
> file test.pdf sits in the current directory.\blank
> \goto{click test.pdf page10 with ftp:///Users/... (full path given) opens at last page opened not at page 10 in Apple's Preview}[url(file:///Users/hansm/TeX/Test-tex/gotopdf/test.pdf\letterhash page=10)]{\quad\bf Put your own path here!}\blank
> \goto{click test.pdf page10 with ftp://test.pdf (local path)) does not open}[url(file://test.pdf\letterhash page=10)]\blank
> \stoptext
> 
> 
>> On 19 Apr 2018, at 02:07, Otared Kavian <otared@gmail.com> wrote:
>> 
>> Hi,
>> 
>> On my Mac, running MacOS High Sierra 10.13.5 Beta, the example given by Wolfgang works fine: clicking on the link created by ConTeXt, from within TeXShop, Safari opens that document on the desired page, that is the physical page 58.
>> 
>> Best regards: OK
>> 
>>> On 18 Apr 2018, at 23:04, Hans van der Meer <havdmeer@ziggo.nl> wrote:
>>> 
>>> Thanks. But this seems not to work on my Macintosh. Not in Preview, not in Adobe Reader. 
>>> Typesetting resulted in valid-url.pdf#page=55 but the document opens at the last page remebered by the application. Are there other Macintosh users who can confirm this is not working on those machines or should I do something else?
>>> 
>>> dr. Hans van der Meer
>>> 
>>> 
>>>> On 18 Apr 2018, at 21:58, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:
>>>> 
>>>> For documents on the web you can add #page=<NUMBER> to the url.
>>>> 
>>>> \setupinteraction[state=start]
>>>> 
>>>> \starttext
>>>> \goto{Beginners manual}[url(http://pragma-ade.com/general/manuals/mp-cb-en.pdf\letterhash page=58)]
>>>> \stoptext
>>>> 
>>>> Wolfgang
>>>>> Hans van der Meer 18. April 2018 um 21:12
>>>>> I have the following question about referencing.
>>>>> 
>>>>> With \goto{typeset_the_text}[url(file://a_file_location_to_goto.pdf)] I can open a pdf from inside the document that has been typeset. It would, however, be nice if I could further specify on which page of the pdf to open. Is this possible? Or is this a wish not to be fulfilled?
>>>>> 
>>>>> dr. Hans van der Meer
>>>>> 
>>>>> 
>>>>> ___________________________________________________________________________________
>>>>> 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://context.aanhet.net
>>>>> archive : https://bitbucket.org/phg/context-mirror/commits/
>>>>> wiki : http://contextgarden.net
>>>>> ___________________________________________________________________________________
>>>> 
>>>> ___________________________________________________________________________________
>>>> 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://context.aanhet.net
>>>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>>>> wiki     : http://contextgarden.net
>>>> ___________________________________________________________________________________
>>> 
>>> ___________________________________________________________________________________
>>> 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://context.aanhet.net
>>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>>> wiki     : http://contextgarden.net
>>> ___________________________________________________________________________________
>> 
>> ___________________________________________________________________________________
>> 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://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki     : http://contextgarden.net
>> ___________________________________________________________________________________
> 
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2018-04-19  7:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-18 19:12 Hans van der Meer
2018-04-18 19:58 ` Wolfgang Schuster
2018-04-18 21:04   ` Hans van der Meer
2018-04-18 21:51     ` Wolfgang Schuster
2018-04-19  0:07     ` Otared Kavian
2018-04-19  7:37       ` Hans van der Meer
2018-04-19  7:57         ` John Grasty [this message]
2018-04-19  8:12         ` Otared Kavian
2018-04-19  8:55           ` Hans van der Meer
2018-04-19 10:05             ` Taco Hoekwater

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A73F017C-52B4-4B25-846E-6A409A0752FE@gmail.com \
    --to=johnpgrasty@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).