Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am having trouble on how will i create something like the checkboxesor oneparcheckboxes environment in exam.cls. The only difference is that since the checkboxes gives circle, i'd like to create environment which give squarebox for multiple choice.

when i type this in .tex file:

\documentclass{exam}
\begin{document}
\begin{questions}
\question How should I?
\begin{checkboxes}
\choice AA \choice BB \choice CC
\end{checkboxes}
\end{questions}
\end{document}

it would output a vertical lane of choices like

enter image description here

and using oneparcheckboxes environment:

 \begin{onecheckboxes}
 \choice AA \choice BB \choice CC
 \end{onecheckboxes}

enter image description here

i would like to create something like the checkboxes and oneparcheckboxes:

enter image description here

share|improve this question
    
If using the exam class is an option, I'm sure you can redefine the symbol it uses for checkboxes. Is there a particular reason you want to avoid the class? –  Sean Allred Feb 26 '13 at 14:39

1 Answer 1

up vote 7 down vote accepted

You can use \checkboxchar{$\square$}

Code:

\documentclass{exam}
\usepackage{amssymb}
\checkboxchar{$\square$}
\begin{document}
\begin{questions}
\question How should I?
\begin{checkboxes}
\choice AA \choice BB \choice CC
\end{checkboxes}

\question How should I?
 \begin{oneparcheckboxes}
 \choice AA \choice BB \choice CC
 \end{oneparcheckboxes}
\end{questions}
\end{document}

enter image description here

You may also like putting \checkedchar{$\blacksquare$} in the preamble just to keep the aesthetic look.

share|improve this answer
    
alright, im going to try this one. I've seen this one in the commands declared : \checkedchar{$\surd$} what does this mean? especially the \surd? –  Kayla Feb 26 '13 at 14:48
    
@Kayla Put \checkedchar{$\surd$} in the preamble and see yourself ;-). It puts a tick mark. –  Harish Kumar Feb 26 '13 at 15:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.