From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77144 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Centering a figure vertically on a page Date: Tue, 3 Jul 2012 18:08:56 +0200 Message-ID: References: <20120703132157.2dbe199c@aga-netbook> <20120703151017.757be4f9@sole.extra.cea.fr> <4FF2F83B.8030900@wxs.nl> <20120703172706.02117013@sole.extra.cea.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: multipart/mixed; boundary="===============2017339266==" X-Trace: dough.gmane.org 1341331753 29723 80.91.229.3 (3 Jul 2012 16:09:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 3 Jul 2012 16:09:13 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 03 18:09:11 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Sm5f4-0003Lt-HR for gctc-ntg-context-518@m.gmane.org; Tue, 03 Jul 2012 18:09:10 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6E655101E8; Tue, 3 Jul 2012 18:09:09 +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 WJ9FtI7ud2iz; Tue, 3 Jul 2012 18:09:07 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 98504101F1; Tue, 3 Jul 2012 18:09:07 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 38910101F1 for ; Tue, 3 Jul 2012 18:09:06 +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 fw2cy83w+GyI for ; Tue, 3 Jul 2012 18:09:01 +0200 (CEST) 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 73ABF101E8 for ; Tue, 3 Jul 2012 18:09:01 +0200 (CEST) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q63G90wI004396 for ; Tue, 3 Jul 2012 18:09:01 +0200 Original-Received: by bkcjc3 with SMTP id jc3so4035843bkc.14 for ; Tue, 03 Jul 2012 09:09:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer; bh=XiejLqQHkCwcXsStTcPcLbc3dKzWYoQ4XKd8HMoMlqo=; b=TdmQmKFFCOXvJ7vA8sJpUolovObyEIBXqJ72WI6VweqAj8VcB4pY9cl5N9k+Aoz1FD ykmANHNhLbC/+BlrSzqXFpGVTh0oAMgXQKB03Q8RduZXLba7GVBqXyztYjUQD+PLfCky IQkkJLtiZe3H/MeQ3M+st08f+zRuHr7ctFQX+/4jv/V8Dw5y5a3/zO9hiXGhEvZ0ZYuY xNtAfh+opq7h5mDAOFwKh5WMcu4wYMoO+bMVnu2SIPot/88ScE/UttTOKRZuKayCbrgr RjBwwLuk2Sg0efSd8DzxPP32A5SzQrQB5mnMcd74rwFsDDN+8xNAHPQoLdUFItoKxtDg CSTg== Original-Received: by 10.204.152.19 with SMTP id e19mr10014063bkw.8.1341331740463; Tue, 03 Jul 2012 09:09:00 -0700 (PDT) Original-Received: from [192.168.2.36] (p54BAF2B4.dip.t-dialin.net. [84.186.242.180]) by mx.google.com with ESMTPS id gf9sm800144bkc.12.2012.07.03.09.08.58 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 03 Jul 2012 09:08:59 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1278) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.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: 0QHtQ90bQ - d51bf08f7107 - 20120703 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.13 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:77144 Archived-At: --===============2017339266== Content-Type: multipart/alternative; boundary="Apple-Mail=_741E52B9-2988-40E6-BFFE-22F8429B18E3" --Apple-Mail=_741E52B9-2988-40E6-BFFE-22F8429B18E3 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Am 03.07.2012 um 18:04 schrieb luigi scarso: >=20 >=20 > On Tue, Jul 3, 2012 at 5:27 PM, Alan BRASLAU = wrote: > > On Tue, 3 Jul 2012 15:48:43 +0200 > > Hans Hagen wrote: > > > >> It's a rather (old) low level boxing macro ... > >> > >> \start > >> \showboxes > >> \centerbox width 10cm height 3cm {Alan is surprised} > >> \stop > > > > My TeX culture remains, alas, always limited (even if I have the > > TeXbook on my office bookshelf, indeed \centerbox does not appear in > > plain TeX). Nothing in the ConTeXt manual, either. Of course, a > > leisurely browsing of the source code would reveal many such = treasures! > There is also \vcenter >=20 > \starttext > xxxxxxxxxxg\ruledvbox{\hsize=3D5cm\vcenter to 3cm{Alan is = surprised}}gxxxxxxxxx \type{\vcenter}\par > xxxxxxxxxxg\ruledvbox{\centerbox width5cm height3cm{Alan is = surprised}}gxxxxxxxxx \type{\centerbox}\par > xxxxxxxxxxg\ruledvbox{\vcenter{\centerbox width5cm height3cm{Alan is = surprised}}}gxxxxxxxxx\type{\centerbox+\vcenter}\par > \stoptext >=20 > (\vcenter is a TeX primitive) ConTeXt redefines \vcenter because the primitive can only be used in = math mode. Wolfgang --Apple-Mail=_741E52B9-2988-40E6-BFFE-22F8429B18E3 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii
Am 03.07.2012 um 18:04 schrieb luigi scarso:



On Tue, Jul 3, 2012 at 5:27 PM, Alan BRASLAU <alan.braslau@cea.fr> wrote:
> On Tue, 3 Jul 2012 15:48:43 +0200
> Hans Hagen <pragma@wxs.nl> wrote:
>
>> It's a rather (old) low level boxing macro ...
>>
>> \start
>>      \showboxes
>>      \centerbox width 10cm height 3cm {Alan is surprised}
>> \stop
>
> My TeX culture remains, alas, always limited (even if I have the
> TeXbook on my office bookshelf, indeed \centerbox does not appear in
> plain TeX). Nothing in the ConTeXt manual, either. Of course, a
> leisurely browsing of the source code would reveal many such treasures!
There is also \vcenter

\starttext
xxxxxxxxxxg\ruledvbox{\hsize=5cm\vcenter to 3cm{Alan is surprised}}gxxxxxxxxx \type{\vcenter}\par
xxxxxxxxxxg\ruledvbox{\centerbox width5cm height3cm{Alan is surprised}}gxxxxxxxxx \type{\centerbox}\par
xxxxxxxxxxg\ruledvbox{\vcenter{\centerbox width5cm height3cm{Alan is surprised}}}gxxxxxxxxx\type{\centerbox+\vcenter}\par
\stoptext

(\vcenter is a TeX primitive)

ConTeXt redefines \vcenter because the primitive can only be used in math mode.

Wolfgang

--Apple-Mail=_741E52B9-2988-40E6-BFFE-22F8429B18E3-- --===============2017339266== 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 ___________________________________________________________________________________ --===============2017339266==--