[NTG-context] Making checkboxes

luigi scarso luigi.scarso at gmail.com
Tue Sep 7 15:21:51 CEST 2010


On Tue, Sep 7, 2010 at 3:18 PM, Wolfgang Schuster
<schuster.wolfgang at googlemail.com> wrote:
>
> Am 07.09.2010 um 09:32 schrieb Cecil Westerhof:
>
>> It is a little worse. There is also no space between the 'checkbox'
>> and the description.
>> I want:
>>    title
>>        [  ] Yes
>>        [  ] No
>>        [  ] A little bit
>> but I get:
>>            title
>>        [  ]Yes
>>        [  ]No
>>        [  ]A little bit
>
> \definesymbol[checkbox][{[~~~]}]
>
> \starttext
>
> \def\startcheckbox
>  {\dosingleempty\dostartcheckbox}
>
> \def\dostartcheckbox[#1]%
>  {\blank
>   \doifsomething{#1}{\leftaligned{#1}}%
>   \startitemize[packed,intro,joinedup,columns,three][margin=2.5em,symbol=checkbox,width=1.5em,distance=.5em]}
>
> \def\stopcheckbox
>  {\stopitemize
>   \blank}
Ah, I forget to say about the coffee...

-- 
luigi


More information about the ntg-context mailing list