From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/100657 Path: news.gmane.org!.POSTED!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: Re: goto reference Date: Thu, 19 Apr 2018 10:55:34 +0200 Message-ID: References: <3B63A4DE-F606-4EE6-9B97-D70D6E7B3432@ziggo.nl> <5AD7A36B.1000409@gmail.com> <8081EBD2-4EBA-4EF5-AA08-F79A7DA8703E@gmail.com> <475DD316-7417-4E3C-9FC9-EE4C1EA2E812@ziggo.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Content-Type: multipart/mixed; boundary="===============8067812570505106737==" X-Trace: blaine.gmane.org 1524128224 21463 195.159.176.226 (19 Apr 2018 08:57:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 19 Apr 2018 08:57:04 +0000 (UTC) To: NTG ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 19 10:57:00 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f95NC-0005RO-UO for gctc-ntg-context-518@m.gmane.org; Thu, 19 Apr 2018 10:56:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2AA36626285; Thu, 19 Apr 2018 10:55:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KtUSs9XoUK5i; Thu, 19 Apr 2018 10:55:37 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 4475C62628A; Thu, 19 Apr 2018 10:55:37 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 31BA5626285 for ; Thu, 19 Apr 2018 10:55:36 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nsfpM1ats8Aw for ; Thu, 19 Apr 2018 10:55:34 +0200 (CEST) Original-Received: from smtpq3.mnd.mail.iss.as9143.net (smtpq3.mnd.mail.iss.as9143.net [212.54.34.166]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id ECCFE626284 for ; Thu, 19 Apr 2018 10:55:34 +0200 (CEST) Original-Received: from [212.54.34.114] (helo=smtp6.mnd.mail.iss.as9143.net) by smtpq3.mnd.mail.iss.as9143.net with esmtp (Exim 4.86_2) (envelope-from ) id 1f95Lq-0006M9-S2 for ntg-context@ntg.nl; Thu, 19 Apr 2018 10:55:34 +0200 Original-Received: from 546a86c8.cm-12-3c.dynamic.ziggo.nl ([84.106.134.200] helo=[192.168.178.10]) by smtp6.mnd.mail.iss.as9143.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1f95Lq-0001f1-Nt for ntg-context@ntg.nl; Thu, 19 Apr 2018 10:55:34 +0200 In-Reply-To: X-Mailer: Apple Mail (2.3445.6.18) X-SourceIP: 84.106.134.200 X-Authenticated-Sender: havdmeer@ziggo.nl (via SMTP) X-Ziggo-spambar: / X-Ziggo-spamscore: 0.0 X-Ziggo-spamreport: CMAE Analysis: v=2.3 cv=HPnt6Llv c=1 sm=1 tr=0 a=wCstmS+ZHA3zSJXjQC+ubA==:17 a=9+rZDBEiDlHhcck0kWbJtElFXBc=:19 a=Kd1tUaAdevIA:10 a=pGLkceISAAAA:8 a=mZpwaWM1AAAA:8 a=MiNTnEJAAAAA:8 a=YEMqx4UAAAAA:8 a=ACQCx6kCAAAA:8 a=xtERp6CFAAAA:8 a=a3nu-2BBAAAA:8 a=ys5i-N5qHtekma6vMvoA:9 a=mEZ5G8_Rch_z0dR2:21 a=1jSMQmCy2XYIW_Yt:21 a=QEXdDO2ut3YA:10 a=PzprnwQ7ay5W4GNzOhgA:9 a=Qt-_r6gy5XlyUIZt:21 a=41PWtADlHh-OV0__:21 a=f4dEvZstkthvxg0S:21 a=_W_S_7VecoQA:10 a=ISYa5Sojvl8PbS4PXliW:22 a=LmrbSfiT3hecnSZifb5M:22 a=V0662LiR8DSfwiDagK97:22 a=Sab0UneHBzlWrQDlOuxD:22 a=ekCXXmE-vB8RPiJ3MEZb:22 none X-Ziggo-Spam-Status: No X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:100657 Archived-At: --===============8067812570505106737== Content-Type: multipart/alternative; boundary="Apple-Mail=_8F6DF2EB-68DE-4CDA-B4BA-36417A8CE585" --Apple-Mail=_8F6DF2EB-68DE-4CDA-B4BA-36417A8CE585 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Thanks, for verifying the behaviour. A pity it does not work as I hoped = for, but it is not disastrous, of course :-) dr. Hans van der Meer > On 19 Apr 2018, at 10:12, Otared Kavian wrote: >=20 > Hi, >=20 > I tested your example (after giving some local paths=E2=80=A6) and the = behaviour as follows: > (1) The full URL path with http:// opens the file at the desired page > (2) The full ftp:// local path opens my file at page 1 > (3) The local path file:// to afile sitting in the same directory does = not work at all. >=20 > I just saw that John Grasty gave an explanation from the = specifications of Adobe: maybe that is the reason. >=20 > Best regards: OK >=20 >> On 19 Apr 2018, at 09:37, Hans van der Meer > wrote: >>=20 >> 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=E2=80=99s >> (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. >>=20 >> Thanks in advance. >>=20 >> dr. Hans van der Meer >>=20 >>=20 >> \starttext >> \currentdate-\currenttime\quad\ConTeXt-version=3D\contextversion\blank >> Testing directly from \ConTeXt:\blank >> \setupinteraction[state=3Dstart,color=3Dblue,style=3Ditalic] >> \goto{Beginners manual called with http:// opens in browser as = expected}[url(http://pragma-ade.com/general/manuals/mp-cb-en.pdf\letterhas= h = page=3D50)]\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=3D10)]{\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=3D10)]\blank >> \stoptext >>=20 >>=20 >>> On 19 Apr 2018, at 02:07, Otared Kavian > wrote: >>>=20 >>> Hi, >>>=20 >>> 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. >>>=20 >>> Best regards: OK >>>=20 >>>> On 18 Apr 2018, at 23:04, Hans van der Meer > wrote: >>>>=20 >>>> Thanks. But this seems not to work on my Macintosh. Not in Preview, = not in Adobe Reader.=20 >>>> Typesetting resulted in valid-url.pdf#page=3D55 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? >>>>=20 >>>> dr. Hans van der Meer >>>>=20 >>>>=20 >>>>> On 18 Apr 2018, at 21:58, Wolfgang Schuster = > = wrote: >>>>>=20 >>>>> For documents on the web you can add #page=3D to the url. >>>>>=20 >>>>> \setupinteraction[state=3Dstart] >>>>>=20 >>>>> \starttext >>>>> \goto{Beginners = manual}[url(http://pragma-ade.com/general/manuals/mp-cb-en.pdf\letterhash = = page=3D58)] >>>>> \stoptext >>>>>=20 >>>>> Wolfgang >>>>>> Hans van der Meer 18. April 2018 um = 21:12 >>>>>> I have the following question about referencing. >>>>>>=20 >>>>>> 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? >>>>>>=20 >>>>>> dr. Hans van der Meer >>>>>>=20 >>>>>>=20 >>>>>> = __________________________________________________________________________= _________ >>>>>> If your question is of interest to others as well, please add an = entry to the Wiki! >>>>>>=20 >>>>>> 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 >>>>>> = __________________________________________________________________________= _________ >>>>>=20 >>>>> = __________________________________________________________________________= _________ >>>>> If your question is of interest to others as well, please add an = entry to the Wiki! >>>>>=20 >>>>> 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 >>>>> = __________________________________________________________________________= _________ >>>>=20 >>>> = __________________________________________________________________________= _________ >>>> If your question is of interest to others as well, please add an = entry to the Wiki! >>>>=20 >>>> 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 >>>> = __________________________________________________________________________= _________ >>>=20 >>> = __________________________________________________________________________= _________ >>> If your question is of interest to others as well, please add an = entry to the Wiki! >>>=20 >>> 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 >>> = __________________________________________________________________________= _________ >>=20 >> = __________________________________________________________________________= _________ >> If your question is of interest to others as well, please add an = entry to the Wiki! >>=20 >> 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 >> = __________________________________________________________________________= _________ >=20 > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ --Apple-Mail=_8F6DF2EB-68DE-4CDA-B4BA-36417A8CE585 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Thanks, for verifying the behaviour. A pity it does not work = as I hoped for, but it is not disastrous, of course :-)
dr. Hans van der Meer


On 19 Apr 2018, at 10:12, Otared Kavian <otared@gmail.com> = wrote:

Hi,

I tested your example (after giving = some local paths=E2=80=A6) and the behaviour as follows:
(1) The full URL path with http:// opens the file at the = desired page
(2) The full ftp:// local path opens = my file at page 1
(3) The local path file:// to = afile sitting in the same directory does not work at all.

I just saw that John = Grasty gave an explanation from the specifications of Adobe: maybe that = is the reason.

Best regards: OK

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=E2=80=99s
(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=3D\contextversio= n\blank
Testing directly from \ConTeXt:\blank
\setupinteraction[state=3Dstart,color=3Dblue,style=3Ditalic]
\goto{Beginners manual called with http:// opens in browser = as expected}[url(http://pragma-ade.com/general/manuals/mp-cb-en.pdf\letterhash page=3D50)]\blank
\goto{click test.pdf page10 = with ftp://test.pdf (local = path)) does not open}[url(file://test.pdf\letterhash = page=3D10)]\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=3D55 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:

= __________________________________________________________________________= _________
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
_______________________________________________________________= ____________________

= --Apple-Mail=_8F6DF2EB-68DE-4CDA-B4BA-36417A8CE585-- --===============8067812570505106737== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============8067812570505106737==--