Am 03.07.2013 um 17:13 schrieb Peter Rolf
Am 03.07.2013 16:10, schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
Hello,
I'm trying to setup section to be placed vertically in the golden ratio of the page, i.e. cca 2 "units" above the section and 3 "units" bellow.
How to achieve this?
My code so far is:
---- \setuplayout[page]
\define\bef{\page\hbox to\textheight\bgroup\vfill\vfill\fi}
- use a \vbox (you need vertical mode here) instead of a \hbox
The makeup environment creates a big \vbox for its content. \setuplayout[page] \definemakeup[section][text] \setupmakeup [section] [top=\vfill\vfill,bottom=\vfill\vfill\vfill] \setuphead[section] [before=\startsectionmakeup, after=\stopsectionmakeup, alternative=middle] \setuplabeltext[section=Section ] \starttext \section{AAA} \stoptext Wolfgang