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 plan to create a command where I can use to output the choices inside the box and above the list of questions but its a know how. This is a sample output of what i am saying. I will use the \question command to output the questions. choices are in the box

share|improve this question
    
Though the expected output is clear, it is not clear what kind of macro you're looking for. I'd appreciate if you can give us some example code using the non-existent macro... We could then help you write that macro... Thank you. –  kan Nov 25 '12 at 13:49
    
using the exam document class would like to write the macro this way: ##Code \documentclass{exam} \begin{document} \begin{questions} \begin{choiceinbox} \cb choice1 \cb choice2 \cb choice3 \cb choice4 \cb choice5 \question text here text here text here text here text here \question text here text here text here text here text here \question text here text here text here text here text here \question text here text here text here text here text here \question text here text here text here text here text here \end{choiceinbox} \end{questions} \end{document} –  Kayla Nov 25 '12 at 14:20
add comment

1 Answer

up vote 2 down vote accepted

enter image description here

\documentclass{article}
\usepackage{multicol}

\def\qns#1{\begin{center}\fbox{\parbox{.95\textwidth}{\begin{multicols}{4}%
\renewcommand\theenumi{\alph{enumi})}\begin{enumerate}%
#1%
\end{enumerate}\end{multicols}}}\end{center}}

\begin{document}

\qns{
\item  worda
\item wordb
\item other word
\item wordd
\item plan e
\item alternive f
\item something else
\item obviously wrong
\item \textbf{\textit{choose me}}
\item something else
}

\end{document}
share|improve this answer
    
absolutely better :) –  Kayla Nov 25 '12 at 14:25
add comment

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.