From: Cecil Westerhof <cldwesterhof@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Making checkboxes
Date: Mon, 6 Sep 2010 17:55:34 +0200 [thread overview]
Message-ID: <AANLkTikhSr3w13uLH6FwGzE0UMXkzzHak0oZ4LWvqF9v@mail.gmail.com> (raw)
In-Reply-To: <87mxrvq9ma.fsf@linux-lqcw.site>
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 <cldwesterhof@gmail.com>:
> 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):
> \def\SimpleCheckBoxes#1,#2,#3,#4\par{
> #1\par
> \hskip2.5em[\hskip1em] #2\par
> \hskip2.5em[\hskip1em] #3\par
> \hskip2.5em[\hskip1em] #4\par}
>
> \def\CheckBoxes[#1]%
> {\startitemize[packed]
> \processcommalist[#1]\doCheckBoxes
> \stopitemize}
>
> \def\doCheckBoxes#1%
> {\sym{\mathematics{\Box}}#1\par}
>
> \starttext
>
> Intelligent way\par
> \CheckBoxes Yes, No, A little bit
>
> \blank
> Always three checkboxes and with the initial question\par
> \SimpleCheckBoxes Does this what you want?, Yes, No, A little bit
>
> \stoptext
>
> This gives:
> Intelligent way
> es, No, A little bit
> Always three checkboxes and with the initial question
> Does this what you want?
> [ ] Yes
> [ ] No
> [ ] 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 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
___________________________________________________________________________________
next prev parent reply other threads:[~2010-09-06 15:55 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-06 9:14 Cecil Westerhof
2010-09-06 10:55 ` Wolfgang Schuster
2010-09-06 11:50 ` Cecil Westerhof
2010-09-06 12:58 ` Wolfgang Schuster
2010-09-06 13:34 ` Cecil Westerhof
2010-09-06 15:55 ` Cecil Westerhof [this message]
2010-09-06 16:37 ` Wolfgang Schuster
2010-09-06 17:57 ` Cecil Westerhof
2010-09-06 18:29 ` Wolfgang Schuster
2010-09-06 21:32 ` Aditya Mahajan
2010-09-06 23:07 ` Cecil Westerhof
2010-09-07 0:18 ` Aditya Mahajan
2010-09-07 7:29 ` Cecil Westerhof
2010-09-07 7:18 ` Cecil Westerhof
2010-09-07 7:32 ` Cecil Westerhof
2010-09-07 13:18 ` Wolfgang Schuster
2010-09-07 13:21 ` luigi scarso
2010-09-09 11:45 ` Cecil Westerhof
2010-09-09 12:17 ` Wolfgang Schuster
2010-09-07 7:42 ` luigi scarso
2010-09-07 8:05 ` Cecil Westerhof
2010-09-07 8:13 ` luigi scarso
2010-09-07 9:08 ` Cecil Westerhof
2010-09-07 9:24 ` luigi scarso
2010-09-07 10:51 ` Cecil Westerhof
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTikhSr3w13uLH6FwGzE0UMXkzzHak0oZ4LWvqF9v@mail.gmail.com \
--to=cldwesterhof@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).