ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: vertical alignment in simpleslides
Date: Sat, 5 Mar 2011 23:56:48 -0500 (EST)	[thread overview]
Message-ID: <alpine.LNX.2.01.1103052351030.14991@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <AANLkTimPMqL8G9D9GZ_w9bc6EBiUkSiFNh5=3cz61Kpm@mail.gmail.com>

On Sat, 5 Mar 2011, Curiouslearn wrote:

> Thanks for the response, Aditya.
>
> However, the first method
>
>    \setupitemize[before=\vfill,after=\vfill]
>
> does not change anything for me. The items are still at the top.

Didn't realize that you were using the Swoosh style, that sets its title 
using a layer. Therefore you need to use

\setupitemize[before=\null\vfill, after=\vfill]

> The second one (\setupitemize[1][inbetween=\vfill]) changes things.
> However, the first item is at the top of the screen and the second is
> at the bottom. I would like them to be near the center. Something like
> what 'middle' does for horizontal alignment with two words, I want to
> do for vertical alignment.

This is useful only if the previous command works. You can play around 
with the amount of fill at the start and end to create symmetric looking 
layouts. For example:

\setupitemize[1][before={\null\vskip 1ex plus 2fill},
                  after={\vskip 1ex plus 3fill}]
\setupitemize[1][inbetween=\vfill]

(Actually, rather than using the low-level \vskip, it is better to use 
ConTeXt high level interface using \blank. But I do not remember how 
create \blank with vertical glue).

Aditya



___________________________________________________________________________________
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:[~2011-03-06  4:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-06  4:18 Curiouslearn
2011-03-06  4:23 ` Aditya Mahajan
2011-03-06  4:46   ` Curiouslearn
2011-03-06  4:56     ` Aditya Mahajan [this message]
2011-03-06  5:19       ` Curiouslearn
2011-03-06  5:28         ` Aditya Mahajan
2011-03-06  5:31           ` Curiouslearn

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=alpine.LNX.2.01.1103052351030.14991@ybpnyubfg.ybpnyqbznva \
    --to=adityam@umich.edu \
    --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).