From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/14691 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: How to produce PDF links with custom action? Date: Thu, 05 Feb 2004 18:39:38 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <6.0.1.1.2.20040205183708.03235de8@server-1> References: Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: sea.gmane.org 1076002871 20461 80.91.224.253 (5 Feb 2004 17:41:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 5 Feb 2004 17:41:11 +0000 (UTC) Cc: Stefan Wachter Original-X-From: ntg-context-admin@ntg.nl Thu Feb 05 18:41:01 2004 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AonUr-0001bB-00 for ; Thu, 05 Feb 2004 18:41:01 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 59C5010B09; Thu, 5 Feb 2004 18:39:37 +0100 (MET) Original-Received: from mail.solcon.nl (mail.solcon.nl [212.45.33.11]) by ref.ntg.nl (Postfix) with ESMTP id 813F110B03 for ; Thu, 5 Feb 2004 18:38:27 +0100 (MET) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mail.solcon.nl (8.12.10/SQL-8.12.10-1/8.12.5) with ESMTP id i15Hdd3H028219; Thu, 5 Feb 2004 18:39:41 +0100 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id DAA8314B54; Thu, 5 Feb 2004 18:39:43 +0100 (CET) Original-Received: from laptop-3.wxs.nl (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 624842F112; Thu, 5 Feb 2004 17:39:41 +0000 (UTC) X-Sender: hagen-mail@server-1 X-Mailer: QUALCOMM Windows Eudora Version 6.0.1.1 Original-To: ntg-context@ntg.nl In-Reply-To: Original-References: X-AntiVirus: checked by Vexira Milter 1.0.6; VAE 6.23.0.3; VDF 6.23.0.57 Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:14691 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:14691 At 17:13 04/02/2004, you wrote: >Hi all! > >Does ConTeXt allow to create links with custom actions? I have a working >LaTeX / >PDF-TeX solution which I am not able to port to ConTeXt. The following PDF-TeX >code contained in a LaTeX file produces the desired PDF-Code. > >\\pdfstartlink attr{/Border [ 0 0 0 ]} user{/Subtype/Link/A << /S /AVDP_Action >/AVDP_Param (../../nach-dateipfad.pdf 1)>>} >here is a link >\\pdfendlink > >Yet, if I include the same lines of code in a ConTeXt file then no link is >generated. In context we do things a bit different: You can put this in some local file, the style or in a preamble: \unprotected \setglobalsystemreference\rt!exec{AVDP}{AVDP} \def\PDFexecuteAVDP{/AVDP_Action /AVDP_Param (\argumentA)} After that, you can do things like: \setupinteraction[state=start] \starttext \goto{test}[AVDP{../../nach-dateipfad.pdf 1}] \stoptext So, a bit more abstract interface with the advantage of more functionality, as in: \goto{test}[nextpage,AVDP{../../nach-dateipfad.pdf 1}] Hans