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
- remove the '\fi' (leftover from a test?)

Peter

> \define\aft{\vfill\vfill\vfill\egroup}
> 
> \setuphead[section]
>   [before=\bef,after=\aft,
>    %commandbefore=\cbef,commandafter=\caft,
>    alternative=middle,
>   ]
> 
> \starttext
>   \section{AAA}
> \stoptext
> ----
> 
> The position is quite OK, but there is error "Too many }'s ..." during
> compilation...
> 
> What's the problem?
> 
> Best regards,
> 
> Lukas
> 
> 
> 
> 
> ___________________________________________________________________________________
> 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
___________________________________________________________________________________

Reply via email to