[NTG-context] Making checkboxes

luigi scarso luigi.scarso at gmail.com
Tue Sep 7 10:13:58 CEST 2010


On Tue, Sep 7, 2010 at 10:05 AM, Cecil Westerhof <cldwesterhof at gmail.com> wrote:
> Op dinsdag 7 sep 2010 09:42 CEST schreef luigi scarso:
>
>>> I already tried:
>>>
>>>       \setupitemgroup[checkbox][each][packed][margin=2.5em,symbol=checkbox,width=1.5em,distance=.5em][itemize][indentnext=no]
>>> but that does not work. How can I make the 'title' not indented?
>>
>> \definesymbol[checkbox][{[~~~]}]
>> \defineitemgroup[checkbox]
>> \setupitemgroup[checkbox][each][packed][margin=2.5em,symbol=checkbox,width=1.5em,distance=.5em]
>>
>> \starttext
>>
>> \startcheckbox
>> \nop \hskip -1.5em title
>> \item Yes
>> \item No
>> \item A little bit
>> \stopcheckbox
>>
>> \stoptext
>
> The \hskip needs to be -4em, but then it does what it should. There is
> not a way to put the hskip in setupitemgroup?
Maybe -- I don't know.
In my opinion, title should be go out the startcheckbox env.
>
> The only problem left is that there is not a space between the
> 'checkbox' and the description.

\showframe
\definesymbol[checkbox][{[~~~]}]
\defineitemgroup[checkbox]
\setupitemgroup[checkbox][each][packed][margin=2.5em,symbol=checkbox,width=2em,distance=.5em]
\starttext

\startcheckbox
\nop \hskip -4.5em title
\item Yes
\item No
\item A little bit
\stopcheckbox

\stoptext


-- 
luigi


More information about the ntg-context mailing list