From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77143 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: Centering a figure vertically on a page Date: Tue, 3 Jul 2012 18:04:16 +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 Content-Type: multipart/mixed; boundary="===============0966935482==" X-Trace: dough.gmane.org 1341331474 27234 80.91.229.3 (3 Jul 2012 16:04:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 3 Jul 2012 16:04:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 03 18:04:34 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 1Sm5aZ-0003h7-AV for gctc-ntg-context-518@m.gmane.org; Tue, 03 Jul 2012 18:04:31 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3BC38101F1; Tue, 3 Jul 2012 18:04:30 +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 oHun4GDWEASF; Tue, 3 Jul 2012 18:04:24 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B41FD101FA; Tue, 3 Jul 2012 18:04:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 89617101FA for ; Tue, 3 Jul 2012 18:04:23 +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 MtP18aw7kZru for ; Tue, 3 Jul 2012 18:04:18 +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 6097C101F1 for ; Tue, 3 Jul 2012 18:04:18 +0200 (CEST) Original-Received: from mail-gg0-f169.google.com (mail-gg0-f169.google.com [209.85.161.169]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q63G4Hor027011 for ; Tue, 3 Jul 2012 18:04:17 +0200 Original-Received: by ggm4 with SMTP id 4so6715364ggm.14 for ; Tue, 03 Jul 2012 09:04:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=zNYcZ3l2Xb1nK9mONiIAOoRXW54A2GKWs9RkAAhtxo8=; b=XPK7/cwF5qBZI3SMyKTGoFpcXUJ25int4Qqmiqz4/n0UhfzRhmt2+6bh3eRFhmSDBN aMDk1P0vFpnQLLNOzO3XTfoDsEXX5w8qsqXYNkbssdLK+x3uibFmGb8rUK0j4XRv8xSc a/foVoXC1LlD1LE1wfLCfQvgHkieCG369f6Tw8qK9zF4/+8BoGG6YsnUtIJpQ35qCwCl +rqmLchBV4yOtUzVMnEE8lKJQEOZqymEskGbg0EHbYb/suxfwIkbzB+763JwvfDDULw8 7yDfGAiIGWwvFoDZjR4HRmCUy/2c5lQFb1dkHtDCXvIFMwQcnLv8a/nJMKg4WmH33tRl mcYg== Original-Received: by 10.60.27.168 with SMTP id u8mr19087301oeg.58.1341331456867; Tue, 03 Jul 2012 09:04:16 -0700 (PDT) Original-Received: by 10.182.74.231 with HTTP; Tue, 3 Jul 2012 09:04:16 -0700 (PDT) In-Reply-To: <20120703172706.02117013@sole.extra.cea.fr> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.169; 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: 0QHtQ4hFq - 79f34203d7d0 - 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:77143 Archived-At: --===============0966935482== Content-Type: multipart/alternative; boundary=e89a8fb20532033ec104c3ef11f3 --e89a8fb20532033ec104c3ef11f3 Content-Type: text/plain; charset=UTF-8 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 \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) -- luigi --e89a8fb20532033ec104c3ef11f3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Tue, Jul 3, 2012 at 5:27 PM, Alan BRASLAU <alan.braslau@cea.fr> wrote:
> On Tue, 3 J= ul 2012 15:48:43 +0200
> Hans Hagen <pragma@wxs.nl> wrote:
>
>> It's a rather (old) low level boxing macro ...
>= >
>> \start
>> =C2=A0 =C2=A0 =C2=A0\showboxes
>&= gt; =C2=A0 =C2=A0 =C2=A0\centerbox width 10cm height 3cm {Alan is surprised= }
>> \stop
>
> My TeX culture remains, alas, always limited (even if I have the
&g= t; 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\ru= ledvbox{\hsize=3D5cm\vcenter to 3cm{Alan is surprised}}gxxxxxxxxx \type{\vc= enter}\par
xxxxxxxxxxg\ruledvbox{\centerbox width5cm height3cm{Alan is surprised}= }gxxxxxxxxx \type{\centerbox}\par
xxxxxxxxxxg\ruledvbox{\vcenter{= \centerbox width5cm height3cm{Alan is surprised}}}gxxxxxxxxx\type{\centerbo= x+\vcenter}\par
\stoptext

(\vcenter is a TeX primitive)
=


--
luigi
--e89a8fb20532033ec104c3ef11f3-- --===============0966935482== 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 ___________________________________________________________________________________ --===============0966935482==--