ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
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:19:57 +0200	[thread overview]
Message-ID: <CAG5iGsAE2RHJXNkjcTvqfTAXsEkkO+SjmmRv3qAZsrEFsoEfLw@mail.gmail.com> (raw)
In-Reply-To: <D0DE2258-A3CD-48CF-8268-A9692667F636@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1389 bytes --]

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 <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.
>
yes I know ... and  original TeX primitive is still available as
\normalvcenter
(kind of easter egg for Alan..)

-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 2116 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
___________________________________________________________________________________

  reply	other threads:[~2012-07-03 16:19 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
2012-07-03 16:08           ` Wolfgang Schuster
2012-07-03 16:19             ` luigi scarso [this message]
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=CAG5iGsAE2RHJXNkjcTvqfTAXsEkkO+SjmmRv3qAZsrEFsoEfLw@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).