From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Centering a figure vertically on a page
Date: Tue, 3 Jul 2012 18:04:16 +0200 [thread overview]
Message-ID: <CAG5iGsBLhw+diK5K_fHyYf8vOOi5VvO88L3CFzP1G7swLapbug@mail.gmail.com> (raw)
In-Reply-To: <20120703172706.02117013@sole.extra.cea.fr>
[-- Attachment #1.1: Type: text/plain, Size: 992 bytes --]
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)
--
luigi
[-- Attachment #1.2: Type: text/html, Size: 1329 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2012-07-03 16:04 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-03 11:21 Marcin Borkowski
2012-07-03 11:30 ` Wolfgang Schuster
2012-07-03 12:18 ` Marcin Borkowski
2012-07-03 13:10 ` Alan BRASLAU
2012-07-03 13:48 ` Hans Hagen
2012-07-03 15:27 ` Alan BRASLAU
2012-07-03 15:54 ` Aditya Mahajan
2012-07-03 16:04 ` luigi scarso [this message]
2012-07-03 16:08 ` Wolfgang Schuster
2012-07-03 16:19 ` luigi scarso
2012-07-03 16:27 ` Wolfgang Schuster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAG5iGsBLhw+diK5K_fHyYf8vOOi5VvO88L3CFzP1G7swLapbug@mail.gmail.com \
--to=luigi.scarso@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).