On 5-2-2010 10:29, Wolfgang Schuster wrote:
Am 05.02.10 09:03, schrieb Marius:
Hello all,
How do I define the \setuptitlepage and \placetitlepage commands in the environment file? These commands are used as shown in the example below.
Since you do not explain what do you expect from both commands it's not possible to give you an answer but you can find on the wiki [1] a example for a \setuptitle and \placetitle command which can be copied and used in your document.
[1] http://wiki.contextgarden.net/Document_Titles#In_ConTeXt:_A_more_advanced_so...
using no macros ... wikifyable ... \startsetups titlepage \startstandardmakeup \definedfont[SerifBold at 40pt] \setupinterlinespace \getvariable{document}{title} \vfill \definedfont[SerifBold at 20pt] \setupinterlinespace \getvariable{document}{author} \stopstandardmakeup \stopsetups \setvariables [document] [title=Whatever, author=Not Me] \setvariables [whatever] [set={\setup[whateverpage]}] \startsetups whateverpage \startstandardmakeup \definedfont[SerifBold at 40pt] \setupinterlinespace \getvariable{whatever}{title} \vfill \stopstandardmakeup \stopsetups \starttext \setups[titlepage] \setvariables[whatever][title=One] \setvariables[whatever][title=Two] \stoptext in the whatever case each setvariables will trigger a setup, so one has a sort of macro with key/value support ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------