From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/63572 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: Zooming in to a specific part of the page Date: Wed, 17 Nov 2010 02:15:20 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1289956534 31710 80.91.229.12 (17 Nov 2010 01:15:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 17 Nov 2010 01:15:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 17 02:15:30 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PIWcT-0004zO-Sp for gctc-ntg-context-518@m.gmane.org; Wed, 17 Nov 2010 02:15:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8F9D8CA87B; Wed, 17 Nov 2010 02:15:28 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id I6mol744Vb0f; Wed, 17 Nov 2010 02:15:26 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 07AEECA863; Wed, 17 Nov 2010 02:15:26 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7C17FCA863 for ; Wed, 17 Nov 2010 02:15:24 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id jm1eN+vKc1M7 for ; Wed, 17 Nov 2010 02:15:22 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 67529CA862 for ; Wed, 17 Nov 2010 02:15:22 +0100 (CET) Original-Received: from mail-qy0-f176.google.com (mail-qy0-f176.google.com [209.85.216.176]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oAH1FLaO012169 for ; Wed, 17 Nov 2010 02:15:21 +0100 Original-Received: by qyk29 with SMTP id 29so128047qyk.14 for ; Tue, 16 Nov 2010 17:15:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=yQ1NreOEcQTvKWUfM0sYCf1wKQ8YxR1CEZwwVbz/+js=; b=abZr3SZWMAY1HQSWiqC5vRRVmtMxe0wMUqeAfUZD6OX/fQ6e85xdk1NIo79jEXBRDF 2nVr6j0k6iKoq9h0f2lnWK/RP4tPDLnXsY1y991Y81gc8gor3DfcjfdkDmdS5Yu9nI1j RVoHS4Ff3CZxriePFpHbn7YHKLF1xVvn7uEuA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=bYKjoOQEJ0ti7tF3vB2mGSa+EVxlgwQdpda8qXD9t4NwFXfjQ05oSCNJ4ObQOeks1X woUQbjvcXIw1T24nbLvzVuJi/Uq3361N7SmIqBhizC8/vbbVpxbGb5OFlDt+4HXngj0m wDdMlnsBEPuwz1Qq+UK7+XMf9xwoB4Ympn+io= Original-Received: by 10.229.219.2 with SMTP id hs2mr6745498qcb.276.1289956520689; Tue, 16 Nov 2010 17:15:20 -0800 (PST) Original-Received: by 10.229.230.18 with HTTP; Tue, 16 Nov 2010 17:15:20 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.216.176; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03Dw1flym - 4207a53ddeae - 20101117 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:63572 Archived-At: On Wed, Nov 17, 2010 at 01:52, Aditya Mahajan wrote: > Hi, > > Is it possible to zoom into a specific part of the page? I am thinking of > the following scenario. Suppose I have the following document > > \setuppapersize[S6][S6] > \starttext > \placefigure[right,none]{\externalfigure[dummy][width=0.3\textwidth]} > \input knuth > > \page > > \input tufte > > \stoptext > > I want that when I click on the image, the pdf is zoomed in so that the > image occupies the full screen[1], and when I click on the zoomed in image, > it zooms out and I get the previous page view. > > How do I achieve this? I am guessing that some javascript magic might be > needed, but I do not understand the interaction code at all. This feature > will be pretty handy for presentations. You don't need JavaScript. You can use a normal hyperlink: [page /FitR left bottom right top] Display the page designated by page, with its contents magnified just enough to fit the rectangle specified by the coordinates left, bottom, right, and top entirely within the window both horizontally and vertically. If the required horizontal and vertical magnification factors are different, use the smaller of the two, centering the rectangle within the window in the other dimension. https://www.adobe.com/devnet/pdf/pdf_reference_archive.html Section "8.2.1 Destinations" of PDFReference16.pdf You only need to find a way to transfer the data from nice interface in ConTeXt into PDF literals. Mojca PS: in case that you start hacking with that, please also convince Hans to fix hyperlinks in formulas/chapters/tables/... (see equation \in[eq:formulalabel]) to point to specific location on some page, not to the whole page. ___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________