Am 03.07.2013 um 17:13 schrieb Peter Rolf <indi...@gmx.net>:

> 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
___________________________________________________________________________________
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 via email to