From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77145 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:19:57 +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="===============0487707154==" X-Trace: dough.gmane.org 1341332411 3202 80.91.229.3 (3 Jul 2012 16:20:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 3 Jul 2012 16:20:11 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 03 18:20:10 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 1Sm5pc-000607-Jk for gctc-ntg-context-518@m.gmane.org; Tue, 03 Jul 2012 18:20:04 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7F9FA10202; Tue, 3 Jul 2012 18:20:03 +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 UFSBJVQy71ds; Tue, 3 Jul 2012 18:20:01 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D5D8D101F1; Tue, 3 Jul 2012 18:20:01 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 59FAF101F1 for ; Tue, 3 Jul 2012 18:20:00 +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 tcB3gEk1J6cj for ; Tue, 3 Jul 2012 18:19:59 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 5C036101E8 for ; Tue, 3 Jul 2012 18:19:59 +0200 (CEST) Original-Received: from mail-ob0-f169.google.com (mail-ob0-f169.google.com [209.85.214.169]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q63GJwhS010276 for ; Tue, 3 Jul 2012 18:19:58 +0200 Original-Received: by obhx4 with SMTP id x4so7304985obh.14 for ; Tue, 03 Jul 2012 09:19:57 -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=wTFAOHhDFjQ7zAAtWsnZKXFhvM5tKvunk/VE7thBzOM=; b=r8LenXrbKmWXXUHAbKhGevE5UAM19yZLLiKNab/3RFiVcKVgx9MFa07QexiBgun2xY itb0niYwQnEpG6RGvsCLiUtz4cw+42K/eIjm0LX8sPR7OkdDTifNy5//TmLRs+VM+Z3a d3pvGO3zLK5ZJyRyTM6341nQUKUTG7or4lK+arpepbiD5YH16jPizHPODYeA3FmpHZ/O 1FFnYyxP3f3rmBU7FAF+BmVNMCmFlZyQ/TorrxZGxDtA5NOK0t6BGPcrnLns3DP3JQz8 XHi0e9w57on1W6w3o8rb01NhdmZ4QmwpP1jSw2ehdeOaWXY2SnvOemxN2DPAjgaB7hBk cmmA== Original-Received: by 10.182.109.69 with SMTP id hq5mr13642319obb.4.1341332397745; Tue, 03 Jul 2012 09:19:57 -0700 (PDT) Original-Received: by 10.182.74.231 with HTTP; Tue, 3 Jul 2012 09:19:57 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.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: 0NHtQjWQL - 57e438ccb142 - 20120703 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:77145 Archived-At: --===============0487707154== Content-Type: multipart/alternative; boundary=f46d044480f117e51304c3ef496c --f46d044480f117e51304c3ef496c Content-Type: text/plain; charset=UTF-8 On Tue, Jul 3, 2012 at 6:08 PM, Wolfgang Schuster < schuster.wolfgang@gmail.com> wrote: > > Am 03.07.2012 um 18:04 schrieb luigi scarso: > > > > 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) > > > ConTeXt redefines \vcenter because the primitive can only be used in math > mode. > yes I know ... and original TeX primitive is still available as \normalvcenter (kind of easter egg for Alan..) -- luigi --f46d044480f117e51304c3ef496c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Tue, Jul 3, 2012 at 6:08 PM, Wolfgang= Schuster <schuster.wolfgang@gmail.com> wrote:
=

Am 03.07.2012 um 18:04 sc= hrieb 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
>> =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)
=

ConTeXt redefines \vcenter because = the primitive can only be used in math mode.
yes I know ... and =C2=A0original TeX primitive is still available as \norm= alvcenter
(kind of easter egg for Alan..)

--
luigi

--f46d044480f117e51304c3ef496c-- --===============0487707154== 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 ___________________________________________________________________________________ --===============0487707154==--