I would like to emulate beamer's centred framed behaviour in my ConTeXt presentation. Thanks to this post, I figured out how to have my (sub)section titles centred. I am also using a makeup for my main title. My main text wasn't vertically centred however. Today, I realized I could use a custom framed environment.
Here is how I get my vertically centred presentations now (all the setups are in an environment, I past the relevant item in the MWE for convenience):
\setuppapersize[S5]
\setupbodyfont[18pt]
\setuplayout[topspace=1cm,backspace=1.5cm,
width=14.5cm,height=11cm,%margin=0cm,
footer=0cm,header=0cm]
\definelayout[titre][topspace=0cm,backspace=1.5cm,
width=15cm,height=11cm,
footer=0cm,header=0cm]
\definemakeup[titre]
\setuphead[title][
alternative=middle,%titre centré sur la ligne
before={\leavevmode \vfill},after={\vfill \page},
style=\tfd]
\setuphead[section][align=lohi,
before={\page\leavevmode \vfill},after={\vfill},
style=\tfc,conversion=I,
numbercommand=\groupedcommand{}{~)},%) après le numéro
align={flushleft, nothyphenated, verytolerant}]
\defineframedtext
[Diapo]
[frame=no,
before={\page\leavevmode\vfill},after={\vfill}]
\starttext
\startmakeup[titre]
\starttitle[title={Un test}]
\stopmakeup
\startsection[title={Bonjour}]
\startDiapo
Hello world!
\stopDiapo
\stopsection
\stoptitle
\stoptext
Here is my question : how can I minimize those setups? Especially:
- is there any way to get my texts centred without framing them (
\start/stopDiapo)? - I couldn't find any global command that gives a vertically centred layout. Is there a way to do it?








pagestatestands for? Wiki does not explain it AFAIK. – sztruks Nov 05 '18 at 17:31alignkey to change the horizontal alignment, by default you get justified text. With thepagestatekey you can control whethermakeuppages are included or excluded (which is the default setting) from the page counter. – Wolfgang Schuster Nov 05 '18 at 17:35align. One last question: I understand makeups are one page-only output. Am I right?\pagesare ignored within them, which seems consistent to the wiki makeup definition. – sztruks Nov 05 '18 at 17:41makeupenvironment creates a unbreakable block which is placed on a separate page. You can use the environment for standalone pages like a title page. – Wolfgang Schuster Nov 05 '18 at 17:52