From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/63573 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Zooming in to a specific part of the page Date: Tue, 16 Nov 2010 20:27:55 -0500 (EST) 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"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1289957362 1700 80.91.229.12 (17 Nov 2010 01:29:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 17 Nov 2010 01:29:22 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 17 02:29:17 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 1PIWpm-0003WM-RJ for gctc-ntg-context-518@m.gmane.org; Wed, 17 Nov 2010 02:29:14 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 03470CA873; Wed, 17 Nov 2010 02:29:14 +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 ctadAEIZgXTY; Wed, 17 Nov 2010 02:29:01 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7A32BCA85C; Wed, 17 Nov 2010 02:29:01 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 265A9CA85C for ; Wed, 17 Nov 2010 02:29:00 +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 oeoSRvGRhaAV for ; Wed, 17 Nov 2010 02:28:48 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id B24AECA855 for ; Wed, 17 Nov 2010 02:28:48 +0100 (CET) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oAH1SkF5014156 for ; Wed, 17 Nov 2010 02:28:48 +0100 Original-Received: FROM [10.0.2.15] (Unknown [132.206.94.216]) By tombraider.mr.itd.umich.edu ID 4CE32FCD.7C4EC.13226 ; Authuser adityam; 16 Nov 2010 20:28:45 EST In-Reply-To: User-Agent: Alpine 2.01 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.12.86; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0eDw1sLvc - 6f81ed3d5dee - 20101117 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:63573 Archived-At: On Wed, 17 Nov 2010, Mojca Miklavec wrote: > 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] I hope that I do not have to write raw PDF literals. > 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 Thanks. > You only need to find a way to transfer the data from nice interface > in ConTeXt into PDF literals. I don't know if this data is available when a figure is being placed. At the very least, I need to know the xy location of one of the corners of the figure (and can compute other corners based on height and width) > 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. I thought that you were the most persuasive person :) This has been around for a while. Maybe we should open a tracker item for it. Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________