From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73472 Path: news.gmane.org!not-for-mail From: Kip Warner Newsgroups: gmane.comp.tex.context Subject: Page Size to Figure Size Date: Thu, 29 Dec 2011 15:49:01 -0800 Message-ID: <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="===============1109712568==" X-Trace: dough.gmane.org 1325202573 7300 80.91.229.12 (29 Dec 2011 23:49:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 29 Dec 2011 23:49:33 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 30 00:49:29 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 1RgPiz-0008NF-7H for gctc-ntg-context-518@m.gmane.org; Fri, 30 Dec 2011 00:49:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3CF5FCB1B6; Fri, 30 Dec 2011 00:49:28 +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 Pgb8C0d-BKfz; Fri, 30 Dec 2011 00:49:25 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2B618CB1B0; Fri, 30 Dec 2011 00:49:25 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EE552CB1B0 for ; Fri, 30 Dec 2011 00:49:22 +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 pXuj79p8KHAw for ; Fri, 30 Dec 2011 00:49:11 +0100 (CET) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 70B9ECB1A2 for ; Fri, 30 Dec 2011 00:49:11 +0100 (CET) Original-Received: from homiemail-a54.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by filter1-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pBTNn7e2006956 for ; Fri, 30 Dec 2011 00:49:10 +0100 Original-Received: from homiemail-a54.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a54.g.dreamhost.com (Postfix) with ESMTP id B37D23A4061 for ; Thu, 29 Dec 2011 15:49:02 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=thevertigo.com; h=subject:from:to :content-type:date:message-id:mime-version; q=dns; s= thevertigo.com; b=p9RwDq0BfWUBmle0R0qTg/BrKMQQnwg+yy05g9zhdYdZOk ZqDUVZO1K2r1txHAXpcbdiPYozqY4U94zXRP9+vRDoot0qBlsUX/+cS0i+a0Ds6Q 7o7/aJxvD7crDT3ODnBadd2MNAgU3KlxG55t5c1nDc5lGzAqbbAiPCSVTFyr0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thevertigo.com; h=subject :from:to:content-type:date:message-id:mime-version; s= thevertigo.com; bh=xADN747MRKtzzsui66UHxdAvFaM=; b=K2RmvFqZKSXC4 ZfMLImVDiVwqb1gPmwJJEAQ3oLen2X31P5PMGri7C7M41CjRjOa+T9Yvk+KCNoP4 610pSFLxxiOiJ5KcYpVpjRSZbLQTi1NXroyO2ja2T5ovixIEQWDOyEuUHsP/XUXX k373ULEvVuZVIUmztO2soDg2gXIiSo= Original-Received: from [192.168.1.64] (76-10-184-74.dsl.teksavvy.com [76.10.184.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: kip@thevertigo.com) by homiemail-a54.g.dreamhost.com (Postfix) with ESMTPSA id 659933A4058 for ; Thu, 29 Dec 2011 15:49:02 -0800 (PST) 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: 07GfbN7d9 - 50bceadd3804 - 20111230 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 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:73472 Archived-At: --===============1109712568== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-acBphecsin620iirn1z+" --=-acBphecsin620iirn1z+ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hey list, I have a lot of fairly large diagrams in my book that don't always match 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? The closest I have right now is this which is rather awful: \definepapersize[main][A4][A4] \definepapersize[diagram][A4,landscape][A4,landscape] % Insert a full page landscape diagram, parameters are node name, caption, and path... \def\FullPageLandscapeDiagram#1#2#3% { \page=20 \setuppapersize[diagram] \setuplayout[fullpage] \startframedtext[width=3D.95\textwidth,bottom=3D\vss,top=3D \vss,align=3Dright,corner=3Drectangular] \placefigure [force][figure:#1] {#2} {\externalfigure[#3][width=3D.95 \textwidth,background=3Dcolor,backgroundcolor=3Dcolour_figure_background]} \stopframedtext \page \setuppapersize[main] \setuplayout[reset] } --=20 Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com --=-acBphecsin620iirn1z+ 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) iEYEABECAAYFAk78/G0ACgkQLXnfK7bii20aBwCglQuldyYy0LiEWMAncyOEmxJP 4ukAmwdM/61PUDRB6nLrXGM7wuhcW+np =sA53 -----END PGP SIGNATURE----- --=-acBphecsin620iirn1z+-- --===============1109712568== 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 ___________________________________________________________________________________ --===============1109712568==--