From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73519 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Center (horizontal + vertical) an image in \setframed Date: Sun, 1 Jan 2012 10:23:10 +0100 Message-ID: <09636156-77B4-4D5C-8607-A6A39F34ECC9@googlemail.com> References: <4EFF1D1C.3090106@gmx.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1325409819 28964 80.91.229.12 (1 Jan 2012 09:23:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 1 Jan 2012 09:23:39 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 01 10:23:35 2012 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 1RhHdf-0001sD-CO for gctc-ntg-context-518@m.gmane.org; Sun, 01 Jan 2012 10:23:35 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1A470CB1C9; Sun, 1 Jan 2012 10:23:34 +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 HI3TbgmQA1Ll; Sun, 1 Jan 2012 10:23:31 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E4518CB1C3; Sun, 1 Jan 2012 10:23:30 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6F89ACB1C3 for ; Sun, 1 Jan 2012 10:23:30 +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 88g-20Qt35-g for ; Sun, 1 Jan 2012 10:23:18 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 996AACB1C2 for ; Sun, 1 Jan 2012 10:23:18 +0100 (CET) Original-Received: from mail-ee0-f41.google.com (mail-ee0-f41.google.com [74.125.83.41]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q019NE7e009138 for ; Sun, 1 Jan 2012 10:23:16 +0100 Original-Received: by eekc41 with SMTP id c41so16843066eek.14 for ; Sun, 01 Jan 2012 01:23:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=EQqj9fI7VcjLLP5wbnUhaI9qxZero+o77HyQVvwLdYA=; b=s+r0hDxL6fPdhfAG+df8qrJv1yJFDDhr1n0xvmgwiXP7nMbAisKHZfWyDlMI/V05Fs 0d9H4q7rkN09Ci4q3vxUs8ZU6JfFKqeyprVAaJwn+Mzj+1bPBDNSNCLtT0nKV5MzDOMh 38o053UARbIJ9LQnO/uLF54uwK3NaEjaa6sO4= Original-Received: by 10.213.15.198 with SMTP id l6mr9417949eba.62.1325409794506; Sun, 01 Jan 2012 01:23:14 -0800 (PST) Original-Received: from [192.168.2.35] (p57AFBBF6.dip.t-dialin.net. [87.175.187.246]) by mx.google.com with ESMTPS id u53sm126524425eeu.6.2012.01.01.01.23.12 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 01 Jan 2012 01:23:13 -0800 (PST) In-Reply-To: <4EFF1D1C.3090106@gmx.de> X-Mailer: Apple Mail (2.1251.1) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.83.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rGg9nehs - b6ae60d268ce - 20120101 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:73519 Archived-At: Am 31.12.2011 um 15:33 schrieb Jan Heinen: > Hello > = > I want to center (horizontal and vertical) an image in a frame. > = > 2. This is a complete example. I used a second \setframed to show the are= a in which the cow should be centered and middled: > = > \definelayer [Kontaktdaten] > [x=3D0mm, y=3D0mm, > width=3D\paperwidth, height=3D\paperheight] > \setupbackgrounds [paper] Do you know the difference between =93paper=94 and =93page=94? > [ > background=3DKontaktdaten, > state=3Dstart > ]% > \starttext > \setlayerframed [Kontaktdaten] > [ > width=3D120mm, > height=3D120mm, > hoffset=3D50mm, > voffset=3D50mm > ] > [strut=3Dno,offset=3Doverlay,frame=3Don] > {\framed [width=3D120mm, height=3D120mm]{~}}% > = > \setlayerframed [Kontaktdaten] > [ > width=3D120mm, > height=3D120mm, > hoffset=3D50mm, > voffset=3D50mm > ] > [strut=3Dno,offset=3Doverlay,frame=3Don] > {\externalfigure[cow][width=3D100mm,height=3D100mm]}% > = > test > \page > \stoptext \definelayer[Kontaktdaten][width=3D\paperwidth, height=3D\paperheight] \setupbackgrounds[page][background=3DKontaktdaten] \starttext \setlayerframed [Kontaktdaten] [hoffset=3D50mm, voffset=3D50mm] [width=3D120mm, height=3D120mm, strut=3Dno, frame=3Don] {\externalfigure[cow][width=3D100mm,height=3D100mm,frame=3Don]}% \dontleavehmode\page \stoptext Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________