From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55939 Path: news.gmane.org!not-for-mail From: Marius Newsgroups: gmane.comp.tex.context Subject: Re: defining commands Date: Fri, 5 Feb 2010 15:57:08 +0200 Message-ID: References: <4B6BE515.8060903@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0688174128==" X-Trace: ger.gmane.org 1265378678 7470 80.91.229.12 (5 Feb 2010 14:04:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Feb 2010 14:04:38 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 05 15:04:35 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 1NdOnQ-0006wT-Hg for gctc-ntg-context-518@m.gmane.org; Fri, 05 Feb 2010 15:04:32 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 078B7C9CA3; Fri, 5 Feb 2010 15:05:45 +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 VeXmKEFxl47X; Fri, 5 Feb 2010 15:05:42 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 83AEEC9CCA; Fri, 5 Feb 2010 15:05:42 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 21B55C9CCA for ; Fri, 5 Feb 2010 15:05:41 +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 a+1NbB7Ioz3f for ; Fri, 5 Feb 2010 15:05:20 +0100 (CET) Original-Received: from mail-fx0-f211.google.com (mail-fx0-f211.google.com [209.85.220.211]) by balder.ntg.nl (Postfix) with ESMTP id B4760C9CA3 for ; Fri, 5 Feb 2010 15:05:20 +0100 (CET) Original-Received: by fxm3 with SMTP id 3so3971952fxm.19 for ; Fri, 05 Feb 2010 06:04:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=z9AOyBXuF3Yn7vOqTipkGHPzD7B/qvw5F0mgFYs/jGM=; b=h5Mlsy/p5TW6YgF+ufziB9NWMTFN+dSiXyI72JDhHew4AsAGXaagS3BO4K/xj6E0PO XMC80k9XX8OrjHAoDwywIKmuxIQsiQPnRWhbyks8bFoSTHG0YAcbeQe14YgyzQXMIE5T cLZgrXxgeyJTb/zSbaQcmPOG2CucPytnbK7yU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ahv7/gx4N4U93LCfnjpL6MQqLSqzPpB92gcUpOb2XKgKL/Q2hyZXehZTTeGZtAr/00 TowG+EA4LYMeKX3oGIzny7Pxgg6MaJeC+eL/WhS08Fkg9mtwd7cZv51Xf0RW8V5zfyZh 2JBq+0sFnDUC24Q4wVPxJY5Aqfajol1HGR9fU= Original-Received: by 10.103.126.40 with SMTP id d40mr1890960mun.23.1265378228223; Fri, 05 Feb 2010 05:57:08 -0800 (PST) In-Reply-To: <4B6BE515.8060903@googlemail.com> 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:55939 Archived-At: --===============0688174128== Content-Type: multipart/alternative; boundary=0016e659f6e4ccc0da047edad33e --0016e659f6e4ccc0da047edad33e Content-Type: text/plain; charset=UTF-8 Thank you for the link, the answer to my question was as in the example you gave, but with a single argument. The solution to my problem given below works, but I can't find the answer to the following question. What is the difference between \dosingleempty and \dosingleargument ? %%%%%%%%%%%%%%%%%%%%%%% \unprotect \definesystemvariable {dt} \def\setuptitle {\dosingleempty\dosetuptitle} \def\dosetuptitle[#1]% {\def\dodosetuptitle##1% {\getparameters[\??dt][#1]}% \processcommalist[#1]\dodosetuptitle} \def\placetitle {\startalignment[\v!middle] \blank[\v!force,2*\v!big] \@@dttitle \blank[3*\v!medium] \@@dtauthor \blank[2*\v!medium] \@@dtdate \blank[3*\v!medium] \stopalignment} \setuptitle [\c!title=, \c!author=, \c!date=\currentdate] \protect %%%%%%%%%%%%%%%%%%%% On Fri, Feb 5, 2010 at 11:29 AM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> 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 > > Wolfgang --0016e659f6e4ccc0da047edad33e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thank you for the link, the answer to my question was as in the example you= gave, but with a single argument. The solution to my problem given below w= orks, but I can't find the answer to the following question. What is th= e difference between=C2=A0\dosingleempty and \dosingleargument ?

%%%%%%%%%%%%%%%%%%%%%%%
\unprotect
=
\definesystemvariable {dt}

\def\set= uptitle
=C2=A0=C2=A0{\dosingleempty\dosetuptitle}

<= /div>
\def\dosetuptitle[#1]%
=C2=A0=C2=A0{\def\dodosetuptitle##1%
=
=C2=A0=C2=A0 =C2=A0 {\getparameters[\??dt][#1]}%
=C2=A0=C2= =A0\processcommalist[#1]\dodosetuptitle}

\def\plac= etitle
=C2=A0=C2=A0{\startalignment[\v!middle]
=C2=A0=C2=A0 \blank[\v!force,2*\v!big]
=C2=A0=C2=A0 \@@dttit= le
=C2=A0=C2=A0 \blank[3*\v!medium]
=C2=A0=C2=A0 \@@dta= uthor
=C2=A0=C2=A0 \blank[2*\v!medium]
=C2=A0=C2=A0 \@@= dtdate
=C2=A0=C2=A0 \blank[3*\v!medium]
=C2=A0=C2=A0 \s= topalignment}

\setuptitle
=C2=A0=C2=A0[\c!title=3D,
=C2=A0=C2=A0 \c!author=3D,
=C2=A0=C2=A0 \c!date=3D\currentdate= ]

\protect
%%%%%%%%%%%%%%%%%%%%
On Fri, Feb 5, 2010 at 11:29 AM, Wolfgang Schus= ter <schuster.wolfgang@googlemail.com> 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 y= our document.

[1] http://wiki.contextgarden.net/Doc= ument_Titles#In_ConTeXt:_A_more_advanced_solution

Wolfgang
--0016e659f6e4ccc0da047edad33e-- --===============0688174128== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0688174128==--