From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/64890 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.comp.tex.context Subject: Working with conditionals Date: Mon, 3 Jan 2011 10:46:03 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1294047988 16424 80.91.229.12 (3 Jan 2011 09:46:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 3 Jan 2011 09:46:28 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 03 10:46:24 2011 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 1PZgzf-0001g0-MF for gctc-ntg-context-518@m.gmane.org; Mon, 03 Jan 2011 10:46:23 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1C17ACA980; Mon, 3 Jan 2011 10:46:23 +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 gMoc4a+teSNV; Mon, 3 Jan 2011 10:46:22 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0DFEACA972; Mon, 3 Jan 2011 10:46:20 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5456CCA972 for ; Mon, 3 Jan 2011 10:46:19 +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 t3rM7dTEmgnt for ; Mon, 3 Jan 2011 10:46:08 +0100 (CET) Original-Received: from filter5-ams.mf.surf.net (filter5-ams.mf.surf.net [192.87.102.73]) by balder.ntg.nl (Postfix) with ESMTP id 349F3CA95F for ; Mon, 3 Jan 2011 10:46:08 +0100 (CET) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter5-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p039k3gj025158 for ; Mon, 3 Jan 2011 10:46:04 +0100 Original-Received: by fxm12 with SMTP id 12so6673073fxm.14 for ; Mon, 03 Jan 2011 01:46:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=FC5IuPDPiXzFXoI5oUyLtSLxILNS5Atez5jLAd6a6S4=; b=q9nJ4IotNC9NYCZiQAwc/ROY1TuBgTCxPzOx0QMZWPeL1NGsBL1qS3prJJE1kynuBQ Ztqndo8kFi6+Z+HToFmuxoPLeRvggi23GbCkQElrjqAKf3zbVz2NV+S7EQnofGLLcSWY YYjgysYohmD0XpKTaoTlQUgLJuatYioYegbAc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=mROrETp/H2flPxFC9rTH2EXCYZc5uiOwFFw7w6usesU0lQCGspd3PIB0LUiBfcgene gsshorWJyfOShkE9VCp3484KAMu9tmgZiDyyDnvRuoH0ly1f4XmEKeZuWKfnWPTs5wtx fXsZLt8c3izVyF3oIbkrKNWURUkRra6WCyO0o= Original-Received: by 10.223.72.14 with SMTP id k14mr3342628faj.45.1294047963525; Mon, 03 Jan 2011 01:46:03 -0800 (PST) Original-Received: by 10.223.107.79 with HTTP; Mon, 3 Jan 2011 01:46:03 -0800 (PST) X-Bayes-Prob: 0.5 (Score 0, tokens from: ) X-CanIt-Geo: ip=209.85.161.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0BDOVK3HS - 70d3cb103957 - 20110103 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.73 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:64890 Archived-At: I have the folowing function for a title: \def\Title[#1]{ \testpage[10] \startalignment[center] { \blank[2*big] \switchtobodyfont[1.5em] \bf\em#1 } \blank \stopalignment } What I would like is that there is an optional second parameter. When it is there, it is used in the testpage command. Otherwise the default value is used. How would I do this? -- Cecil Westerhof ___________________________________________________________________________________ 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 ___________________________________________________________________________________