From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37518 Path: news.gmane.org!not-for-mail From: "Idris Samawi Hamid" Newsgroups: gmane.comp.tex.context Subject: Re: Images centered on page Date: Fri, 23 Nov 2007 22:32:46 -0700 Organization: Colorado State University Message-ID: 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 1195882366 16081 80.91.229.12 (24 Nov 2007 05:32:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 Nov 2007 05:32:46 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 24 06:32:50 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 1IvndJ-0001pT-Rh for gctc-ntg-context-518@m.gmane.org; Sat, 24 Nov 2007 06:32:50 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5CBCB1FCD7; Sat, 24 Nov 2007 06:32:30 +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 14132-06; Sat, 24 Nov 2007 06:32:19 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9241E1FCC6; Sat, 24 Nov 2007 06:32:15 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 797A71FCC6 for ; Sat, 24 Nov 2007 06:32:07 +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 30431-03-6 for ; Sat, 24 Nov 2007 06:31:54 +0100 (CET) Original-Received: from trueband.net (director.trueband.net [216.163.120.8]) by ronja.ntg.nl (Postfix) with SMTP id 453271FCBD for ; Sat, 24 Nov 2007 06:31:49 +0100 (CET) Original-Received: (qmail 15444 invoked by uid 1006); 24 Nov 2007 05:31:48 -0000 Original-Received: from ishamid@colostate.edu by rs0 by uid 1003 with qmail-scanner-1.16 (spamassassin: 3.1.4. Clear:SA:0(0.1/100.0):. Processed in 2.940122 secs); 24 Nov 2007 05:31:48 -0000 Original-Received: from unknown (HELO trueband.net) (172.16.0.2) by -v with SMTP; 24 Nov 2007 05:31:45 -0000 Original-Received: (qmail 24651 invoked from network); 24 Nov 2007 05:31:43 -0000 Original-Received: from unknown (HELO your-b27fb1c401) (75.104.82.83) by -v with SMTP; 24 Nov 2007 05:31:43 -0000 User-Agent: Opera Mail/9.24 (Win32) In-Reply-To: <115224fb0711231130n790b43a1t6baeb1c1599151b1@mail.gmail.com> 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:37518 Archived-At: 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 Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___________________________________________________________________________________ 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 ___________________________________________________________________________________