From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/14694 Path: main.gmane.org!not-for-mail From: "Stefan Wachter" Newsgroups: gmane.comp.tex.context Subject: Re: How to produce PDF links with custom action? Date: Fri, 6 Feb 2004 08:44:13 +0100 (MET) Sender: ntg-context-admin@ntg.nl Message-ID: <1508.1076053453@www18.gmx.net> References: <6.0.1.1.2.20040205183708.03235de8@server-1> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1076239039 6339 80.91.224.253 (8 Feb 2004 11:17:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 8 Feb 2004 11:17:19 +0000 (UTC) Cc: ntg-context@ntg.nl Original-X-From: ntg-context-admin@ntg.nl Sun Feb 08 12:17:11 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 1Apmw3-0001IA-00 for ; Sun, 08 Feb 2004 12:17:11 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 0DA1D10B28; Sun, 8 Feb 2004 12:15:40 +0100 (MET) Original-Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by ref.ntg.nl (Postfix) with SMTP id DEB3710B09 for ; Fri, 6 Feb 2004 08:42:50 +0100 (MET) Original-Received: (qmail 19838 invoked by uid 0); 6 Feb 2004 07:44:13 -0000 Original-Received: from 80.139.42.36 by www18.gmx.net with HTTP; Fri, 6 Feb 2004 08:44:13 +0100 (MET) Original-To: Hans Hagen X-Priority: 3 (Normal) X-Authenticated: #10144042 X-Mailer: WWW-Mail 1.6 (Global Message Exchange) X-Flags: 0001 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:14694 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:14694 Thanks for your quick response. --Stefan > 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 >