From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/14798 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: hyperlinks in PDF Date: Mon, 23 Feb 2004 00:06:57 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <6.0.1.1.2.20040223000514.01d49ec0@localhost> References: Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1077525230 10892 80.91.224.253 (23 Feb 2004 08:33:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 23 Feb 2004 08:33:50 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Mon Feb 23 09:33:46 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 1AvBX8-00060i-00 for ; Mon, 23 Feb 2004 09:33:46 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 6B9BA10B47; Mon, 23 Feb 2004 09:31:51 +0100 (MET) Original-Received: from mail.solcon.nl (mail.solcon.nl [212.45.33.11]) by ref.ntg.nl (Postfix) with ESMTP id 7A87110B3D for ; Mon, 23 Feb 2004 09:28:32 +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 i1N8UMOO007245 for ; Mon, 23 Feb 2004 09:30:22 +0100 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 33CD817D13; Mon, 23 Feb 2004 09:30:23 +0100 (CET) Original-Received: from laptop-3.wxs.nl (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 23E5517D34 for ; Mon, 23 Feb 2004 08:30:18 +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.24.0.4; VDF 6.24.0.14 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:14798 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:14798 At 14:21 21/02/2004, you wrote: >Using the \setupinteraction and \useURL commands, I can now generate=20 >active blue email links my PDFs=97which is very cool. The downside is that= =20 >my footnote numbers (both in the text and below) are now blue too. > >I can go two ways with this. One way would be to set the footnote links to= =20 >toggle between the footnote call in the text and the footnote itself. The= =20 >other would be to prevent ConTeXt from treating the footnote numbers as=20 >links. I have no idea about how to do either and would be grateful for=20 >suggestions for either strategy, though my preference would be for the=20 >first (assuming that it is possible). > >As it is now, clicking on the footnote call in the text changes the=20 >magnification so that the whole page fits on the screen, which is not all= =20 >that desirable under the present circumstances. since i'm in the middle of implementing some new nice interactive trickery= =20 i cannot upload a new version now, so you have to patch: % in cont-new.tex: (asumes a recent version with multiple footnote types=20 support) \unprotect \def\dostartnote% nog gobble als in pagebody {\bgroup \settrue\processingnote %\restorecatcodes % to be tested first \ifinregels % otherwise problems with \type {xxx} \ignorelines % makes footnotes work in \startlines ... \stoplines \fi \ifnotesymbol \dolastnotesymbol \else \unskip\unskip \globallet\lastnotesymbol\dolastnotesymbol \fi \ignorespaces \localnoteinsert\currentnoteins\bgroup \penalty\notepenalty \forgetall \setnotebodyfont \redoconvertfont % to undo \undo calls in in headings etc \splittopskip\strutht % not actually needed here \splitmaxdepth\strutdp % not actually needed here \iffixedlayoutdimensions % ugly hack, will change \linkermargeafstand\noteparameter\c!margeafstand \rechtermargeafstand\linkermargeafstand \else \def\linkermargeafstand{\noteparameter\c!margeafstand}% \let\rechtermargeafstand\linkermargeafstand \fi \ifcase\noteparameter\c!n\relax % new 31-07-99 ; always ? = \doifnotinset{\noteparameter\c!breedte}{\v!passend,\v!ruim}\setnotehsize \fi \startpushnote {\ifx\lastnotenumber\empty \else = \preparethenumber{\??vn\currentnote}\lastnotenumber\preparednumber \doifelse{\noteparameter\c!interactie}\v!nee {\noteparameter\c!nummercommando = {\preparednumber\domovednote\v!volgendepagina\v!vorigepagina}}% {\naarbox{\noteparameter\c!commando % was \c!nummercommando,=20 but compatible = {\preparednumber\domovednote\v!volgendepagina\v!vorigepagina}}% [\s!fnt:f:\internalfootreference]}% \fi \doifelse{\noteparameter\c!interactie}\v!nee {\ifconditional\pagewisenotes \rawreference\s!fnt{\s!fnt:t:\internalfootreference}{}% \fi}}% {\rawreference\s!fnt{\s!fnt:t:\internalfootreference}{}}% \bgroup \postponenotes \aftergroup\dostopnote \begstrut \let\next} \def\dolastnotesymbol {\unskip\unskip \ifdim\lastkern=3D\notesignal \dodonotesymbol{\kern\noteparameter\c!afstand}% gets the font right,= =20 hack ! \fi \nobreak \doifelse{\noteparameter\c!interactie}\v!nee = {\dodonotesymbol{\lastnotenumber\domovednote\v!vorigepagina\v!volgendepagin= a}% \ifconditional\pagewisenotes \rawreference\s!fnt{\s!fnt:f:\internalfootreference}{}% \fi} {\naarbox = {\dodonotesymbol{\lastnotenumber\domovednote\v!vorigepagina\v!volgendepagin= a}}% [\s!fnt:t:\internalfootreference]% \rawreference\s!fnt{\s!fnt:f:\internalfootreference}{}}% \globallet\lastnotesymbol\relax} \protect % test file \setupinteraction[state=3Dstart] \setupcolors[state=3Dstart] \setupfootnotes[interaction=3Dno] % new \starttext test \footnote {test} \stoptext