GeneralQuestionnaire checkboxes

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
pwseo
Posts: 3
Joined: Mon Feb 09, 2009 4:23 am

Questionnaire checkboxes

Post by pwseo »

Hi there,

I was wondering how can I create little checkboxes in LaTeX.
I'll be planning a survey in the future and I'd like to typeset the questionnaires in LaTeX... but for that I need little fillable checkboxes.
I've tried searching Google and some other places.. but came out empty-handed anyway :)

Can anyone help me?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Questionnaire checkboxes

Post by frabjous »

If you want to create an interactive PDF form where the box can be checked or unchecked in the PDF, try the Forms environment from hyperref package, with the \CheckBox command.

If this is something you're going to print and have people fill out in paper, you could draw the boxes any number of ways. I guess \Square from wasysym would work fine (and its pre-filled cousins, like \CheckedBox):

Code: Select all

\documentclass{article}
\usepackage{hyperref,wasysym}
\begin{document}
\begin{Form}
\CheckBox{Check here if you like this form: }

Check here if you don't: {\huge \Square \CheckedBox \XBox}
\end{Form}
\end{document}
pwseo
Posts: 3
Joined: Mon Feb 09, 2009 4:23 am

Re: Questionnaire checkboxes

Post by pwseo »

Thank you frabjous, that seemed to do it.
User avatar
nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

Questionnaire checkboxes

Post by nlct »

I know you've got a solution to your query but, in case it's of any use, I've written an article in the Know How section on creating forms in LaTeX.

Regards
Nicola Talbot
Post Reply