From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/69778 Path: news.gmane.org!not-for-mail From: Kip Warner Newsgroups: gmane.comp.tex.context Subject: Centred Figure Date: Tue, 05 Jul 2011 17:57:14 -0700 Message-ID: <1309913834.12352.7.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="===============0120806968==" X-Trace: dough.gmane.org 1309913865 30816 80.91.229.12 (6 Jul 2011 00:57:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 6 Jul 2011 00:57:45 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 06 02:57:41 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 1QeGQv-0000Pk-29 for gctc-ntg-context-518@m.gmane.org; Wed, 06 Jul 2011 02:57:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 15C28CADE4; Wed, 6 Jul 2011 02:57:40 +0200 (CEST) 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 8KGSul1fYq+X; Wed, 6 Jul 2011 02:57:37 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3D1C0CADD4; Wed, 6 Jul 2011 02:57:37 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 384ACCADD4 for ; Wed, 6 Jul 2011 02:57:35 +0200 (CEST) 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 IVY029zuINB9 for ; Wed, 6 Jul 2011 02:57:22 +0200 (CEST) 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 CB990CAC8D for ; Wed, 6 Jul 2011 02:57:21 +0200 (CEST) Original-Received: from homiemail-a46.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 p660vJvR009290 for ; Wed, 6 Jul 2011 02:57:20 +0200 Original-Received: from homiemail-a46.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a46.g.dreamhost.com (Postfix) with ESMTP id 1B34D3E405B for ; Tue, 5 Jul 2011 17:57:16 -0700 (PDT) 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=k3AhJ9sM6lZq0dvalIB+fGZ0G6TSQCWo36qXGUkoOIf8qX OMZfvb+ru93Em/fLu99ko+PooH2Ol2M1jkePH2oxyKEnh3NqX1i9hmyZ0tCGoHy4 m/gPm2XsI9//G2a0DBFsm4WUeOYtJKFx83fscTh8yN8S0bPFrLZcK9KCkSJtM= 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=CCKhYgVrwv3hJ8rhaCOYoU5gbpQ=; b=Dzj5mpvEEp1lP wnc9j4Qyje68M3smu9I5oyHnXUyGYCfxhS9wtO1FJGLgpxwlAPe91JowcED5QAXB xWKwQgt+R54PW57z0Vc/5r9NlPSY2rQ5nhwIabpJU9ZZ2mARZU9XGX+yd/mvaO08 E05qjxlPxUEtAe8GVayNlDRlAX5/9k= Original-Received: from [192.168.1.64] (76-10-184-69.dsl.teksavvy.com [76.10.184.69]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: kip@thevertigo.com) by homiemail-a46.g.dreamhost.com (Postfix) with ESMTPSA id E58403E4058 for ; Tue, 5 Jul 2011 17:57:15 -0700 (PDT) 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: 05F4oVj8v - a715e531f021 - 20110706 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.216 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:69778 Archived-At: --===============0120806968== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-I/7aYQ5WBklby51S2VYJ" --=-I/7aYQ5WBklby51S2VYJ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hey list, I'd like to place a figure on its own page, landscaped, horizontally and vertically centred, and uniformly scaled to the maximum dimensions of the page, whichever hits it first, the width or height of the figure. I'd like to do this within, say, 95% of the page width and height. This is what I am using so far and it works fine, except the image is not horizontally / vertically centred, and it is not uniformly scaled to the max boundary as I previously described. % Insert a full page landscape diagram, parameters are node name, caption, and path... \def\FullPageLandscapeDiagram#1#2#3% { \page=20 \setuppapersize[diagram] \setuplayout[fullpage] \placefigure [force][figure:#1] {#2} {\externalfigure[#3][factor=3Dmax]} \page \setuppapersize[main] \setuplayout[reset] } ... \FullPageLandscapeDiagram {NodeName} {Some caption.} {Figure.svg} --=20 Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com --=-I/7aYQ5WBklby51S2VYJ 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) iEYEABECAAYFAk4TsuoACgkQLXnfK7bii23WrACeKFM3DhIJIF1AnH5VnYMwB5cZ sgkAnjUFxCWBNXo1OWW+COD/EnD2KJgU =5H8r -----END PGP SIGNATURE----- --=-I/7aYQ5WBklby51S2VYJ-- --===============0120806968== 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 ___________________________________________________________________________________ --===============0120806968==--