From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73514 Path: news.gmane.org!not-for-mail From: Kip Warner Newsgroups: gmane.comp.tex.context Subject: Re: Page Size to Figure Size Date: Sat, 31 Dec 2011 14:39:52 -0800 Message-ID: <1325371192.2844.21.camel@kip-laptop> References: <1325202541.3345.8.camel@kip-laptop> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1908024197==" X-Trace: dough.gmane.org 1325371227 21009 80.91.229.12 (31 Dec 2011 22:40:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 31 Dec 2011 22:40:27 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Dec 31 23:40:23 2011 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 1Rh7bC-00079G-1y for gctc-ntg-context-518@m.gmane.org; Sat, 31 Dec 2011 23:40:22 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3CC1ACB1C5; Sat, 31 Dec 2011 23:40:21 +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 LLFLzECsMgl1; Sat, 31 Dec 2011 23:40:15 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A40E9CB1BF; Sat, 31 Dec 2011 23:40:15 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 00C58CB1BF for ; Sat, 31 Dec 2011 23:40: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 fQvuhfSz3Mds for ; Sat, 31 Dec 2011 23:40:00 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 662D8CB1B8 for ; Sat, 31 Dec 2011 23:40:00 +0100 (CET) Original-Received: from homiemail-a45.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pBVMdvte028662 for ; Sat, 31 Dec 2011 23:39:59 +0100 Original-Received: from homiemail-a45.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a45.g.dreamhost.com (Postfix) with ESMTP id 7FA8B480BB; Sat, 31 Dec 2011 14:39:54 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=thevertigo.com; h=subject:from:to :cc:in-reply-to:references:content-type:date:message-id: mime-version; q=dns; s=thevertigo.com; b=JeA9fCgHAFNBtn531fTDg/l OIqsyQzHexHFwBAWF5SzqyatyuYuGwtPDzVRGHIS57HcEqjLizvEsbcGfw8DKuMi BlT/y7qK2+FghNxFWAUwf2u3TstXclOMU9KDt4qK3YN7gVsyTDq3WV6bbb1CXVJ5 80x1sfe2C/97kXnAxggY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thevertigo.com; h=subject :from:to:cc:in-reply-to:references:content-type:date:message-id: mime-version; s=thevertigo.com; bh=cGC6u2zZlk/0vEGrLJ0aC10WBnU=; b=F69Tek33w8yInumtG+s/1yk84QI1kIX196Aw8uTbYmclZAectfRjlJXZSn89z NHJ4YEGyglRpcF0PcdzX3IDtiC4tq/T40mTL1GOyNjm8KFhVtEW1KRF0r+yQSZE4 hAM+FoV20WQwO+trryzpy+7MYviCHfFZJhbpxGcwlZ8vrs= Original-Received: from [192.168.1.64] (76-10-184-144.dsl.teksavvy.com [76.10.184.144]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: kip@thevertigo.com) by homiemail-a45.g.dreamhost.com (Postfix) with ESMTPSA id 18D3548059; Sat, 31 Dec 2011 14:39:54 -0800 (PST) In-Reply-To: X-Mailer: Evolution 2.32.1 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=208.113.200.5; country=US; region=CA; city=Brea; postalcode=92821; latitude=33.9269; longitude=-117.8612; metrocode=803; areacode=714; http://maps.google.com/maps?q=33.9269,-117.8612&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05GfWDWj8 - d9f71e2810db - 20111231 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:73514 Archived-At: --===============1908024197== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-J4CuS+mWZfckEmv0RWvE" --=-J4CuS+mWZfckEmv0RWvE Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2011-12-29 at 23:57 -0500, Aditya Mahajan wrote: > On Thu, 29 Dec 2011, Kip Warner wrote: >=20 > > Hey list, > > > > I have a lot of fairly large diagrams in my book that don't always matc= h > > the aspect ratio of the page in landscape mode, though they usually are > > closer to landscape than a portrait layout for the page dimension. > > > > How can I insert a figure so that it is of a given size, with the page > > size perfectly cropped around it? >=20 > \startTEXpage[offset=3D1mm] > \externalfigure[...] > \stopTEXpage >=20 > Aditya >=20 Hey Aditya, I've adapted it into the following. % Insert a full page diagram, parameters are node name, caption, and path... \def\FullPageDiagram#1#2#3% { \startTEXpage[offset=3D0mm] \startframedtext[width=3D0.95 \textwidth,align=3Dcenter,corner=3Drectangular] \placefigure [force][figure:#1] {#2} {\externalfigure[#3][width=3D0.95\textwidth, align=3Dcenter, background=3Dcolor, backgroundcolor=3Dcolour_figure_background]} \stopframedtext \stopTEXpage } It's not doing quite what I'd like though. I'd like the frame to be flush with the outside edge of the page and the image to be perfectly fitted to the frame, except at the bottom where the image caption needs to be. I'd like to be able to say that the image should be of a given width, with the aspect ratio automatically maintained. --=20 Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com --=-J4CuS+mWZfckEmv0RWvE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEABECAAYFAk7/jzgACgkQLXnfK7bii23qoACfTmguCO7QNl/LhZ4cl6QGPiJs Vm4AoK68k61fQyHtR7SGRXFw+zaV0rTQ =IGwv -----END PGP SIGNATURE----- --=-J4CuS+mWZfckEmv0RWvE-- --===============1908024197== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1908024197==--