From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/61472 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.comp.tex.context Subject: Making checkboxes Date: Mon, 06 Sep 2010 11:14:33 +0200 Message-ID: <87vd6js07a.fsf@linux-lqcw.site> 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 1283764499 23116 80.91.229.12 (6 Sep 2010 09:14:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Sep 2010 09:14:59 +0000 (UTC) To: NTG ConTeXt mailing list Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 06 11:14:57 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 1OsXmy-00026X-AD for gctc-ntg-context-518@m.gmane.org; Mon, 06 Sep 2010 11:14:56 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2E3A9CA61A; Mon, 6 Sep 2010 11:14:55 +0200 (CEST) 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 TArgcjr2Y-WN; Mon, 6 Sep 2010 11:14:50 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E3776CA5EA; Mon, 6 Sep 2010 11:14:49 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 13F79CA5EA for ; Mon, 6 Sep 2010 11:14:47 +0200 (CEST) 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 3AAkjHRaPwO5 for ; Mon, 6 Sep 2010 11:14:34 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id A2F7BCA5B1 for ; Mon, 6 Sep 2010 11:14:34 +0200 (CEST) Original-Received: from mail-wy0-f169.google.com (mail-wy0-f169.google.com [74.125.82.169]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o869EYSr016045 for ; Mon, 6 Sep 2010 11:14:34 +0200 Original-Received: by wyb36 with SMTP id 36so5448442wyb.14 for ; Mon, 06 Sep 2010 02:14:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :message-id:user-agent:mime-version:content-type; bh=P6J3CzUNeqXJK45UczOsnjqpixaOGx5YSlSe4qeL3Hc=; b=QSMBFW8/LzqRsdSS6zn+QLnKMY2Prfo/ehLsm02acLAjlDyyIjpjBFamZny/W95akM T2vOcvWSQFhY0f4jX+tAm08RjjsXMnDUfV6Q82bZK89gHkvYMP2UuGcXsQKvvikiF2hv AjSY7NFSb+lrgSfarnEmmeg+c6YdT2Xi9vX3U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:user-agent:mime-version :content-type; b=Z/vE3HC7Htej5xlqajUPBGxvF8VqXp4BdSZ2S9jNJqYfLEcLHiPPJ7fEtmi/5YYyr4 pHyNw7sLEGkWBn/zRsxhhAZSaUQS0eWrS4JGKOrrWqcrVrrx2npvMviGnD7kruR0qNzD tySUbouDtFY5XUTSIOIA5b5y0Bff8/1Udj4xA= Original-Received: by 10.227.156.11 with SMTP id u11mr569268wbw.146.1283764473863; Mon, 06 Sep 2010 02:14:33 -0700 (PDT) Original-Received: from linux-lqcw.site (84-53-123-169.wxdsl.nl [84.53.123.169]) by mx.google.com with ESMTPS id a1sm4427043wbb.2.2010.09.06.02.14.31 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 06 Sep 2010 02:14:32 -0700 (PDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.169; 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: 0rD3leyxX - 304a02b4023f - 20100906 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:61472 Archived-At: I am trying to define a (paper) feedback form. One of the things I need is checkboxes. A first stab for this (for example I need also a start text, but I do one step at a time) is, based on TeX by Topic, a Texnician's Reference page 106: \def\checkBox#1,{\space\space\space\space[\space\space] #1\par} \def\checkBoxes(#1,){\xcheckBoxes#1, xxx,} \def\endpiece{xxx} \def\xcheckBoxes#1,{\def\temp{#1}% \ifx\temp\endpiece \else \checkbox#1,% \expandafter\xcheckBox \fi} \starttext Some text \checkBoxes Yes, No, A little bit,xxx \stoptext I would expect: Some text [ ] Yes [ ] No [ ] A little bit but I get: Some text es, No, A little bit,xxx What am I doing wrong? Something else: how do I 'eat' spaces between parameters. I would like to have: \checkBoxes Yes,No,A little bit,xxx and: \checkBoxes Yes, No, A little bit, xxx the same result. And is there a way to know how many parameters a macro gets? Like ${#} in Bash. That would make things easier. -- Cecil Westerhof M CLDWesterhof@gmail.com O< ascii ribbon campaign - stop html mail - www.asciiribbon.org Please do not send me Microsoft Office/Apple iWork documents. Send OpenDocument instead! http://fsf.org/campaigns/opendocument/ ___________________________________________________________________________________ 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 ___________________________________________________________________________________