From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/100655 Path: news.gmane.org!.POSTED!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Re: goto reference Date: Thu, 19 Apr 2018 10:12:40 +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="===============4408844119035898666==" X-Trace: blaine.gmane.org 1524125481 27094 195.159.176.226 (19 Apr 2018 08:11:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 19 Apr 2018 08:11:21 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 19 10:11:17 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 1f94ez-0006xx-7e for gctc-ntg-context-518@m.gmane.org; Thu, 19 Apr 2018 10:11:17 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AC440623A6A; Thu, 19 Apr 2018 10:12:55 +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 ZBawY8jHBKYk; Thu, 19 Apr 2018 10:12:54 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id C9252624193; Thu, 19 Apr 2018 10:12:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 972CB625CCF for ; Thu, 19 Apr 2018 10:12:53 +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 jkhyFSc_C5QJ for ; Thu, 19 Apr 2018 10:12:52 +0200 (CEST) Original-Received: from mail-wr0-f175.google.com (mail-wr0-f175.google.com [209.85.128.175]) (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 DDEC2625C83 for ; Thu, 19 Apr 2018 10:12:42 +0200 (CEST) Original-Received: by mail-wr0-f175.google.com with SMTP id d1-v6so11464669wrj.13 for ; Thu, 19 Apr 2018 01:12:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=eUVkWp0jlAsPcCyEfhGlOrZ9NTbaAv5YFQ4ogVumPws=; b=sCarmV0up8UyfoadSaPg2VrgyHLgaiy7qH1O6bGT799qe4K/RHghVMmsgo87W+MsP8 DqDMzeraXZVEhjq9w+MwoKwsAnAkdCr6fPVRPmy4fjpugfwm4a88/778FCpXHhDGnDz1 jEa/GOmWCmYmyqUOFXH79ohgGtmqmmxQVMGDs1ZQyvJ+tnbMB3QwGxQK/MXF/KB/8ASc WDW/gouubSIlJz7+yO+3qTay4e2y2UhWoZKWdFb3h5sRuLpVpOGpiuNBZOES6wwWCaPm Nl2au7w8aL9mqSUvEWG7bM7XEx3toWCg5eGkxZz6/q3LosdrCt2NmWH2RZMfXa4CabDG uyKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=eUVkWp0jlAsPcCyEfhGlOrZ9NTbaAv5YFQ4ogVumPws=; b=hXespXlxLAN0C5Sp5nsdXMMvsuBcQrswvdwhMXDKrbCRjuPIKcFKs17TYAZGF7xbaK nvpS0AH5S7JVRSqJH+wmD1Tm94YRDe9KPt/PVYbNQPeRRKP50Cmh2Fdco9gpT+FY/2rT 6x1qDj9Xdv0Ye+UFHUIV1aZr6C/cF7ZYM4iXbwK8jNYwfxGEs7/Ge9gH1Cj/sqPnpMp3 ifSdMm1xnwwkYEfnLxUwWxT1Q6IhxYt0yo9KbeepSsDdtbNiiUJsQqu+px+NW9PNpWKM TzjV2N3HGZIDx1F3KwxPDBr8t5YaVM1duscmrKS17j3/qvQy16o5mBUaFfuh2Q+kGXrL Habg== X-Gm-Message-State: ALQs6tB4eHVIkraA9EQRb82bfwB05Dl0UqG6E2SJJDtegczKpvtFk3Nr /GzPJljVMgd4ld3JoiSwjhepj2Nq X-Google-Smtp-Source: AIpwx4/9BD2ruGeMPg16ngNIt4J1VNVTnXGZM6pJMUo552+kym9se+If4Y4xoRVoje0YVkuKOujfOA== X-Received: by 2002:adf:85c5:: with SMTP id 5-v6mr4000191wru.130.1524125562370; Thu, 19 Apr 2018 01:12:42 -0700 (PDT) Original-Received: from ?IPv6:2a01:e34:ec02:4760:a532:b79b:a2f1:c06e? ([2a01:e34:ec02:4760:a532:b79b:a2f1:c06e]) by smtp.gmail.com with ESMTPSA id w6-v6sm2877600wra.84.2018.04.19.01.12.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Apr 2018 01:12:41 -0700 (PDT) In-Reply-To: <475DD316-7417-4E3C-9FC9-EE4C1EA2E812@ziggo.nl> X-Mailer: Apple Mail (2.3445.6.18) 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:100655 Archived-At: --===============4408844119035898666== Content-Type: multipart/alternative; boundary="Apple-Mail=_4EE0524E-1EC7-4878-8E00-BBE3F8AF828B" --Apple-Mail=_4EE0524E-1EC7-4878-8E00-BBE3F8AF828B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 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 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 > = __________________________________________________________________________= _________ --Apple-Mail=_4EE0524E-1EC7-4878-8E00-BBE3F8AF828B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 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
_______________________________________________________________= ____________________

= --Apple-Mail=_4EE0524E-1EC7-4878-8E00-BBE3F8AF828B-- --===============4408844119035898666== 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 --===============4408844119035898666==--