[NTG-context] \vtop with middle alignment in a screenplay

Wolfgang Schuster schuster.wolfgang at gmail.com
Tue Jun 11 11:53:01 CEST 2013


Am 11.06.2013 um 11:44 schrieb Jan Pohanka <xhpohanka at gmail.com>:

> Hi all,
> 
> I'm trying to make a simple template for screenplays for our amateur theatre.
> 
> I have following code and I'd like to have the single lines of the song centered in a page, but preceded by a person name on the left
> 
> {Person 1:
> \setupalign[middle]{\vtop{%
> song asdf line 1\\
> song line 2\\
> song a line 3}}}
> 
> This code obviously does not work as I need. Can please someone advice me proper ConTeXt way how to do it?


You can place the lyrics with the \startlines environment:

\starttext

Person 1:

\startlines[before=,align=middle]
song asdf line 1
song line 2
song a line 3
\stoplines

\stoptext

Wolfgang


More information about the ntg-context mailing list