From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55948 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: defining commands Date: Fri, 05 Feb 2010 18:53:04 +0100 Message-ID: <4B6C5B00.9000408@wxs.nl> References: <4B6BE515.8060903@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1265392415 27527 80.91.229.12 (5 Feb 2010 17:53:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Feb 2010 17:53:35 +0000 (UTC) Cc: Idris Samawi Hamid To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 05 18:53:31 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NdSN0-00032l-UW for gctc-ntg-context-518@m.gmane.org; Fri, 05 Feb 2010 18:53:31 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EE216C9D07; Fri, 5 Feb 2010 18:54:43 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id o1HM+uf1okpA; Fri, 5 Feb 2010 18:54:43 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DF626C9CF1; Fri, 5 Feb 2010 18:54:34 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 719C6C9CF1 for ; Fri, 5 Feb 2010 18:54:34 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id MOaMnJl-7eKQ for ; Fri, 5 Feb 2010 18:54:29 +0100 (CET) Original-Received: from mail.solcon.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by balder.ntg.nl (Postfix) with ESMTP id 7F5CBC9BC1 for ; Fri, 5 Feb 2010 18:54:29 +0100 (CET) X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-9 (SurgeMail 4.2d2) with ESMTP id 3162-1713362 for multiple; Fri, 05 Feb 2010 18:52:33 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.7) Gecko/20100111 Lightning/1.0b1 Thunderbird/3.0.1 In-Reply-To: <4B6BE515.8060903@googlemail.com> X-Authenticated-User: hagen@controller-9 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:55948 Archived-At: 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_solution 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 ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________