[NTG-context] Making checkboxes
Wolfgang Schuster
schuster.wolfgang at googlemail.com
Tue Sep 7 15:18:02 CEST 2010
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}
\startcheckbox
\item A
\item B
\item C
\item D
\item E
\item F
\stopcheckbox
\startcheckbox[title]
\item A
\item B
\item C
\item D
\item E
\item F
\stopcheckbox
\stoptext
Wolfgang
More information about the ntg-context
mailing list