Recent Changes
Recent Changes · Search:
 
Summary
Creating a checkbox list
Type
Addition
Raised by
Crisses?
Date opened
Saturday, 29 August 2009
Description
(:input checkbox:) does not render anything. It should probably render $\Box$ in the TEX output so that one can generate forms, checkbox lists, worksheets, etc. I’m working on a self-help book, and checklists, quizzes, etc. are excellent tools for that type of book.

If I’m missing another way of rendering checkboxes in PmWikiWiki Publisher, please let me know.

Importance
3
Proposed solution
PmWiki (:input checkbox:) creates $\Box$ in LATEX.

This is not a good idea. In principle, Wikipublisher should translate forms markup into the corresponding PDF form constructs. At the moment PDF forms are not supported and there are no plans to add this, as the primary target is print and to date nobody has made a case for adding forms capability. However, we should keep the option open for the future.

A better solution may be to use a customised list, replacing the default bullet symbol with a box. See for example http://en.wikibooks.org/wiki/LaTeX/Formatting#Customizing_Itemised_Lists. An author would apply a custom wiki style to the list and Wikipublisher would translate this into a suitable list. Unfortunately, HTML CSS does not provide an “open square” option, although there is an entity for this: ☐ — not sure if it is possible to use an entity in a list style.

Meanwhile, try using ☐. At the moment, there is a bug in templates/tbents.txt at line 1160 which prevents Wikipublisher from correctly translating this entity into the LATEX equivalent. It should read: $\Box${} rather than \Box{}.

Urgency
3
Status
Closed
Resolution
Does Examples.Checkboxes behave in the desired way? Still trying to get open boxes in the HTML view, but the PDF works. See the Checkbox Lists recipe for a solution.
Date closed
Tuesday, 15 December 2009

« 00139 · Edit Form · 00141 »

Page last modified on 15 December 2009 at 03:49 PM