From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37521 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Images centered on page Date: Sat, 24 Nov 2007 10:15:37 +0100 Message-ID: <20071124101537.16a35329.schuster.wolfgang@googlemail.com> References: <688772575.20071123185537@gmail.com> <115224fb0711231130n790b43a1t6baeb1c1599151b1@mail.gmail.com> 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: ger.gmane.org 1195895881 8661 80.91.229.12 (24 Nov 2007 09:18:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 Nov 2007 09:18:01 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 24 10:18:07 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1Ivr9H-00077p-Hb for gctc-ntg-context-518@m.gmane.org; Sat, 24 Nov 2007 10:18:03 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1DD1A1FC57; Sat, 24 Nov 2007 10:17:02 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 06649-01-10; Sat, 24 Nov 2007 10:16:35 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 621451FBEB; Sat, 24 Nov 2007 10:16:33 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0CD891FB17 for ; Sat, 24 Nov 2007 10:16:17 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 07411-04 for ; Sat, 24 Nov 2007 10:15:59 +0100 (CET) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by ronja.ntg.nl (Postfix) with ESMTP id A20E21FC24 for ; Sat, 24 Nov 2007 10:15:53 +0100 (CET) Original-Received: by nf-out-0910.google.com with SMTP id b2so62361nfb for ; Sat, 24 Nov 2007 01:15:44 -0800 (PST) Original-Received: by 10.86.25.17 with SMTP id 17mr314946fgy.1195895743795; Sat, 24 Nov 2007 01:15:43 -0800 (PST) Original-Received: from rover ( [194.94.240.58]) by mx.google.com with ESMTPS id d6sm3656577fga.2007.11.24.01.15.41 (version=SSLv3 cipher=OTHER); Sat, 24 Nov 2007 01:15:42 -0800 (PST) In-Reply-To: X-Mailer: Sylpheed 2.4.7 (GTK+ 2.10.14; i686-pc-mingw32) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:37521 Archived-At: On Fri, 23 Nov 2007 22:32:46 -0700 "Idris Samawi Hamid" wrote: > On Fri, 23 Nov 2007 12:30:48 -0700, Wolfgang Schuster > wrote: > > > \unprotect > > > > \def\fullpagebox > > {\bgroup > > \dowithnextbox > > {\!!widtha\dimexpr\paperwidth/\nextboxwd\relax > > \!!widthb\dimexpr\paperheight/\nextboxht\relax > > \ifdim\!!widtha>\!!widthb > > \setbox\nextbox\vbox\!!to\paperheight{\vss\expanded{\scale[\c!width=\paperwidth]{\flushnextbox}}\vss}% > > \else > > \setbox\nextbox\hbox\!!to\paperwidth{\hss\expanded{\scale[\c!height=\paperheight]{\flushnextbox}}\hss}% > > \fi > > \setbox\nextbox\hbox{\clip[\c!width=\paperwidth,\c!height=\paperheight]{\flushnextbox}}% > > \startTEXpage > > \flushnextbox > > \stopTEXpage > > \egroup} > > \hbox} > > > > \protect > > > > \starttext > > > > \fullpagebox{\externalfigure[image]} > > > > \stoptext > > Now THAT's the 1st-class gangster we know and love so much ;-) > > Question: How can we, if desired, fit the image to the page dimensions? > See what happens with > > \starttext > > \fullpagebox{\externalfigure[cow][scale=fit]} > > \stoptext Can you try \pagefigure, my solution was to scale a image to the papersize and remove parts. \pagefigure includes a figure within a TEXpage and you scale now the figure to the size of the document. \starttext \pagefigure[cow][width=\paperwidth,height=\paperheight] \stoptext Wolfgang ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________