From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/63568 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Zooming in to a specific part of the page Date: Tue, 16 Nov 2010 19:52:32 -0500 (EST) Message-ID: 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 1289955220 26869 80.91.229.12 (17 Nov 2010 00:53:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 17 Nov 2010 00:53:40 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 17 01:53:36 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 1PIWHI-0001Ln-1r for gctc-ntg-context-518@m.gmane.org; Wed, 17 Nov 2010 01:53:36 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6B92BCA86D; Wed, 17 Nov 2010 01:53:35 +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 kP9EWbFQ4-uS; Wed, 17 Nov 2010 01:53:30 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 90E2ECA85A; Wed, 17 Nov 2010 01:53:30 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5C741CA85A for ; Wed, 17 Nov 2010 01:53:29 +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 xT3OjIIQI2WB for ; Wed, 17 Nov 2010 01:53:27 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id F15BFCA855 for ; Wed, 17 Nov 2010 01:53:26 +0100 (CET) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oAH0rODk007112 for ; Wed, 17 Nov 2010 01:53:26 +0100 Original-Received: FROM [10.0.2.15] (Unknown [132.206.94.216]) By tombraider.mr.itd.umich.edu ID 4CE32783.2EBFE.29947 ; Authuser adityam; 16 Nov 2010 19:53:23 EST 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: 08Dw0RpM9 - d3413fc260c1 - 20101117 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:63568 Archived-At: 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. Thanks Aditya [1]: I do not know if the pdf reader knows the screen size. Assuming that the screen aspect ratio is the same as the page aspect ratio might be a good approximation (at least for presentations). ___________________________________________________________________________________ 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 ___________________________________________________________________________________