I want to create Questions wherein each will include a series of fill in the blanks.

I want to display a worksheet which has an answer line in place of the answers. And then a worksheet where the answers are included over the answer line. And finally all the answers at the end.

What I'm aiming for:

Question worksheet with fill in the blanks. Questions

Question worksheet with blanks filled in Questions with Answers included

Answers only

enter image description here

I've looked at some packages like exercise, and exam but I don't think I can quite manipulate them to get what I'm after...

1 Answer 1


I've come up with a solution that does what I need. This might be helpful for anyone else. If anyone has other suggestions I'd be grateful as I'm just hacking around.


% Set the Show Answers Boolean

% The length of the Answer line

% ans command that indicates space for an answer or shows the answer in red

% Formatting how multiple choices Questions are formated.

% Some commands for the Exercise Question package
\renewcommand{\QuestionNB}{\Large\protect\textcircled{\small\bfseries\arabic{Question}}\ }
\renewcommand{\ExerciseHeader}{} %no header
\renewcommand{\QuestionBefore}{3ex} %Space above each Q
\setlength{\QuestionIndent}{8pt} % Indent after Q number

% To create the list of answers with tocloft... 

% Creates a TOC for Answers
        \addcontentsline{Answers}{answer}{\protect\numberline{}#1}% don't include the Q number

%tocloft formatting listofanswers



\Question $1+2$ is (\answer{C})
\task 1
\task 2
\task 3
\task 4

\Question $2+3=$~\answer{$5$}

\Question A question might have multiple places for the answer. The first answer is \answer{This is the answer}. The second answer is \answer{this is the other answer}.

%Now just the answers



Here's what the code produces without \showAns Question with spaces

with \showAns Question with Answers

And the tocloft package produces this for \listofanswer

answers only

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .