From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/61479 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.comp.tex.context Subject: Re: Making checkboxes Date: Mon, 6 Sep 2010 17:55:34 +0200 Message-ID: References: <87vd6js07a.fsf@linux-lqcw.site> <87iq2jrszy.fsf@linux-lqcw.site> <203FFD4F-E46A-42A2-85C2-FA2550685B31@gmail.com> <87mxrvq9ma.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="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1283788546 26259 80.91.229.12 (6 Sep 2010 15:55:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Sep 2010 15:55:46 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 06 17:55:44 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 1Ose2q-00042V-JM for gctc-ntg-context-518@m.gmane.org; Mon, 06 Sep 2010 17:55:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3ABF0CA63C; Mon, 6 Sep 2010 17:55:44 +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 FH8kisevztfq; Mon, 6 Sep 2010 17:55:41 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EA233CA626; Mon, 6 Sep 2010 17:55:40 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 837ACCA626 for ; Mon, 6 Sep 2010 17:55:39 +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 9k8cu+MvDy6y for ; Mon, 6 Sep 2010 17:55:36 +0200 (CEST) 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 D164BCA624 for ; Mon, 6 Sep 2010 17:55:36 +0200 (CEST) Original-Received: from mail-iw0-f169.google.com (mail-iw0-f169.google.com [209.85.214.169]) by filter5-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o86FtZlI010290 for ; Mon, 6 Sep 2010 17:55:35 +0200 Original-Received: by iwn33 with SMTP id 33so5892512iwn.14 for ; Mon, 06 Sep 2010 08:55:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=/knlupoHwg8N2843cazwnp5O52dmP5Wd4VmHi5HuN40=; b=MGq0qelcb8/sAj2ZzLWgbmoumQgq7y8wvV9Uq92xUQ1U5tRTuFdwG3kbPQ1vzRj/vY vyMQlCGnPm/GtDv6/34DCrYIRr3jTr5Fqq49rQnv0Yb9btjJJ2Brvc8sUn11d+iq+PRw KzLJCxLksdICYae8EIdyM7XNYsNs7vfZUzzjo= 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:content-transfer-encoding; b=bc+jsMNc5k5nKNq/PknZUY17zNcSNViswlpPTW10lct17n4BnxKXgYavp5GMNCX0CC 9BO/t4eNUC/zw0Go5N7iVTCht8rNx6daIWaZksxV/ROUQe0b083oyJ7Bjx5UqKlhSgYq yK7NPX/gmoPLXUsEsvmkyXXgHNvPCx2k+m7kk= Original-Received: by 10.231.13.140 with SMTP id c12mr3677102iba.25.1283788534614; Mon, 06 Sep 2010 08:55:34 -0700 (PDT) Original-Received: by 10.231.152.68 with HTTP; Mon, 6 Sep 2010 08:55:34 -0700 (PDT) In-Reply-To: <87mxrvq9ma.fsf@linux-lqcw.site> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.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: 0BD3rTz8p - c075d0bf96a5 - 20100906 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:61479 Archived-At: I ran it with batchmode and silent, so I did not see errors, but it is not correct. I get: ! Use of \CheckBoxes doesn't match its definition. l.19 \CheckBoxes Y es, No, A little bit H gives: If you say, e.g., `\def\a1{...}', then you must always put `1' after `\a', since control sequence names are made up of letters only. The macro here has not been followed by the required stuff, so I'm ignoring it. So '\def\CheckBoxes[#1]%' is wrong, but what should it be? 2010/9/6 Cecil Westerhof : > Op maandag 6 sep 2010 14:58 CEST schreef Wolfgang Schuster: > >> How about this: >> >> \def\CheckBoxes[#1]% >> {\startitemize[packed] >> \processcommalist[#1]\doCheckBoxes >> \stopitemize} >> >> \def\doCheckBoxes#1% >> {\sym{\mathematics{\Box}}#1\par} > > Does not work either. > > I have now (I added a SimpleCheckBoxes that does reasonable what I > want, but where you always need three checkbox parameters): > =A0 =A0\def\SimpleCheckBoxes#1,#2,#3,#4\par{ > =A0 =A0 =A0#1\par > =A0 =A0 =A0\hskip2.5em[\hskip1em] #2\par > =A0 =A0 =A0\hskip2.5em[\hskip1em] #3\par > =A0 =A0 =A0\hskip2.5em[\hskip1em] #4\par} > > =A0 =A0\def\CheckBoxes[#1]% > =A0 =A0 {\startitemize[packed] > =A0 =A0 =A0\processcommalist[#1]\doCheckBoxes > =A0 =A0 =A0\stopitemize} > > =A0 =A0\def\doCheckBoxes#1% > =A0 =A0 {\sym{\mathematics{\Box}}#1\par} > > =A0 =A0\starttext > > =A0 =A0Intelligent way\par > =A0 =A0\CheckBoxes Yes, No, =A0 A little bit > > =A0 =A0\blank > =A0 =A0Always three checkboxes and with the initial question\par > =A0 =A0\SimpleCheckBoxes Does this what you want?, Yes, =A0 No, A little = bit > > =A0 =A0\stoptext > > This gives: > =A0 =A0Intelligent way > =A0 =A0es, No, A little bit > =A0 =A0Always three checkboxes and with the initial question > =A0 =A0Does this what you want? > =A0 =A0 =A0 =A0 [ ] Yes > =A0 =A0 =A0 =A0 [ ] No > =A0 =A0 =A0 =A0 [ ] A little bit > > I attached the pdf also. > > > > -- > 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/ > > -- = Cecil Westerhof ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________