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.

Attachment: feedback-form.pdf
Description: Generated pdf

-- 
Cecil Westerhof
M cldwester...@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
___________________________________________________________________________________

Reply via email to