* vertical alignment in simpleslides
@ 2011-03-06 4:18 Curiouslearn
2011-03-06 4:23 ` Aditya Mahajan
0 siblings, 1 reply; 7+ messages in thread
From: Curiouslearn @ 2011-03-06 4:18 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi
Today I started making lecture slides for one of my classes and
decided to try out simpleslides. First of all, thanks to Thomas and
Aditya for writing the module.
I had a question regarding vertical alignment. Consider the following
minimal example:
\usemodule[simpleslides][style=Swoosh]
\starttext
\SlideTitle{Context can be used for \dots}
\startitemize[n]
\item
Writing your articles
\item
Making slides for presentations
\stopitemize
\stoptext
The two items appear at the top of the slide. Is there a command or a
setting such that items will be aligned around the center of the
screen?
Thank you for your help.
Bharat
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: vertical alignment in simpleslides
2011-03-06 4:18 vertical alignment in simpleslides Curiouslearn
@ 2011-03-06 4:23 ` Aditya Mahajan
2011-03-06 4:46 ` Curiouslearn
0 siblings, 1 reply; 7+ messages in thread
From: Aditya Mahajan @ 2011-03-06 4:23 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Sat, 5 Mar 2011, Curiouslearn wrote:
> Hi
>
> Today I started making lecture slides for one of my classes and
> decided to try out simpleslides. First of all, thanks to Thomas and
> Aditya for writing the module.
>
> I had a question regarding vertical alignment. Consider the following
> minimal example:
>
> \usemodule[simpleslides][style=Swoosh]
> \starttext
> \SlideTitle{Context can be used for \dots}
>
> \startitemize[n]
> \item
> Writing your articles
> \item
> Making slides for presentations
> \stopitemize
>
> \stoptext
>
> The two items appear at the top of the slide. Is there a command or a
> setting such that items will be aligned around the center of the
> screen?
\setupitemize[before=\vfill,after=\vfill]
You can also add
\setupitemize[1][inbetween=\vfill]
Another option is:
\def\StartSlide#1%
{\SlideTitle{#1}
\vfill}
\def\StopSlide
{\vfill}
and then
\StartSlide{...}
...
\StopSlide
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: vertical alignment in simpleslides
2011-03-06 4:23 ` Aditya Mahajan
@ 2011-03-06 4:46 ` Curiouslearn
2011-03-06 4:56 ` Aditya Mahajan
0 siblings, 1 reply; 7+ messages in thread
From: Curiouslearn @ 2011-03-06 4:46 UTC (permalink / raw)
To: mailing list for ConTeXt users
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.
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.
Thanks.
On Sat, Mar 5, 2011 at 11:23 PM, Aditya Mahajan <adityam@umich.edu> wrote:
> On Sat, 5 Mar 2011, Curiouslearn wrote:
>
>> Hi
>>
>> Today I started making lecture slides for one of my classes and
>> decided to try out simpleslides. First of all, thanks to Thomas and
>> Aditya for writing the module.
>>
>> I had a question regarding vertical alignment. Consider the following
>> minimal example:
>>
>> \usemodule[simpleslides][style=Swoosh]
>> \starttext
>> \SlideTitle{Context can be used for \dots}
>>
>> \startitemize[n]
>> \item
>> Writing your articles
>> \item
>> Making slides for presentations
>> \stopitemize
>>
>> \stoptext
>>
>> The two items appear at the top of the slide. Is there a command or a
>> setting such that items will be aligned around the center of the
>> screen?
>
> \setupitemize[before=\vfill,after=\vfill]
>
> You can also add
>
> \setupitemize[1][inbetween=\vfill]
>
> Another option is:
>
> \def\StartSlide#1%
> {\SlideTitle{#1}
> \vfill}
>
> \def\StopSlide
> {\vfill}
>
> and then
>
> \StartSlide{...}
> ...
> \StopSlide
>
> 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
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: vertical alignment in simpleslides
2011-03-06 4:46 ` Curiouslearn
@ 2011-03-06 4:56 ` Aditya Mahajan
2011-03-06 5:19 ` Curiouslearn
0 siblings, 1 reply; 7+ messages in thread
From: Aditya Mahajan @ 2011-03-06 4:56 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: vertical alignment in simpleslides
2011-03-06 4:56 ` Aditya Mahajan
@ 2011-03-06 5:19 ` Curiouslearn
2011-03-06 5:28 ` Aditya Mahajan
0 siblings, 1 reply; 7+ messages in thread
From: Curiouslearn @ 2011-03-06 5:19 UTC (permalink / raw)
To: mailing list for ConTeXt users
Awesome!! This worked great. I need to understand what 2fill and 3fill
does. I will try looking at Victor Eijkhout's book. But if you know of
any other easy reference, please let me know.
Thanks for your help.
Bharat
On Sat, Mar 5, 2011 at 11:56 PM, Aditya Mahajan <adityam@umich.edu> wrote:
> 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
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: vertical alignment in simpleslides
2011-03-06 5:19 ` Curiouslearn
@ 2011-03-06 5:28 ` Aditya Mahajan
2011-03-06 5:31 ` Curiouslearn
0 siblings, 1 reply; 7+ messages in thread
From: Aditya Mahajan @ 2011-03-06 5:28 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Sun, 6 Mar 2011, Curiouslearn wrote:
> Awesome!! This worked great. I need to understand what 2fill and 3fill
> does. I will try looking at Victor Eijkhout's book. But if you know of
> any other easy reference, please let me know.
Think of fill as a "spring" that pushes both sides. 2fill is a spring that
pushes twice as hard. With a \vskip 1ex plus 2fill at top and \vskip 1ex
plus 3fill at bottom, 2/5 th of the total blank space is on the top, and
3/5 th is at the bottom.
With inbetween=\vfill, and two items, the equation changes to
2/6th of the empty space on top
1/6th of the empty space inbetween the two items
3/6th of the empty at the bottom
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: vertical alignment in simpleslides
2011-03-06 5:28 ` Aditya Mahajan
@ 2011-03-06 5:31 ` Curiouslearn
0 siblings, 0 replies; 7+ messages in thread
From: Curiouslearn @ 2011-03-06 5:31 UTC (permalink / raw)
To: mailing list for ConTeXt users
Thanks very much!! That makes it very clear.
On Sun, Mar 6, 2011 at 12:28 AM, Aditya Mahajan <adityam@umich.edu> wrote:
> On Sun, 6 Mar 2011, Curiouslearn wrote:
>
>> Awesome!! This worked great. I need to understand what 2fill and 3fill
>> does. I will try looking at Victor Eijkhout's book. But if you know of
>> any other easy reference, please let me know.
>
> Think of fill as a "spring" that pushes both sides. 2fill is a spring that
> pushes twice as hard. With a \vskip 1ex plus 2fill at top and \vskip 1ex
> plus 3fill at bottom, 2/5 th of the total blank space is on the top, and 3/5
> th is at the bottom.
>
> With inbetween=\vfill, and two items, the equation changes to
>
> 2/6th of the empty space on top
> 1/6th of the empty space inbetween the two items
> 3/6th of the empty at the bottom
>
> 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
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-03-06 5:31 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-06 4:18 vertical alignment in simpleslides Curiouslearn
2011-03-06 4:23 ` Aditya Mahajan
2011-03-06 4:46 ` Curiouslearn
2011-03-06 4:56 ` Aditya Mahajan
2011-03-06 5:19 ` Curiouslearn
2011-03-06 5:28 ` Aditya Mahajan
2011-03-06 5:31 ` Curiouslearn
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).