I am writing a math quiz that uses cloze questions: questions with a missing number that has to be determined.
To accommodate the handwriting of students, I'm creating an answer box using \fbox{\huge\phantom{NN}}.
These are elementary math facts, like 3 + 5 = 8. There are three possibilities: The first item could be missing ([missing] + 5 = 8), the second could be missing (3 + [missing] = 8), or the answer could be missing (3 + 5 = [missing]).
These are vertically aligned math problems that use an \hrule to separate the first two terms from the answer (think elementary math). I am trying to line up the problems so that the various components line up.
I am using \LARGE font (\baselineskip = 22 pt) for the numerals and \huge (\baselineskip = 25 pt) for the blank answer square. I tried to line these up by adding additional \vspace{3pt}, but it isn't working quite right.
Using the input below:
\documentclass[10pt]{letter}
\usepackage[top=0.5in, bottom=0.5in, left=0.5in, right=0.5in]{geometry}
\def\clozeMiddle[#1][#2][#3]{
\hbox to 72pt{
\vbox{
\vspace{3pt}
\hbox to 46pt{\hfill#1}
\vspace{1pt}
\hbox{\hbox to 12pt{\hfill#3}\hbox to 34pt{\hfill\fbox{\vbox{\huge\phantom{NN}}}}}
\vspace{2pt}
\hrule\vspace{2pt}\vspace{3pt}\hbox to 46pt{\hfill#2}}
}
}
\def\clozeBottom[#1][#2][#3]{
\hbox to 72pt{
\vbox{
\vspace{3pt}
\hbox to 46pt{\hfill#1}
\vspace{1pt}
\vspace{3pt}
\hbox{\hbox to 12pt{\hfill#3}\hbox to 34pt{\hfill#2}}
\vspace{2pt}
\hrule\vspace{2pt}\hbox to 46pt{\hfill\fbox{\vbox{\huge\phantom{NN}}}}}
}
}
\begin{document}
\LARGE
\hbox{
\clozeMiddle[4][7][+]
\clozeBottom[4][3][+]
}
\end{document}
I get this:
The \hrule for the first item almost matches up with the \hrule for the second, but not quite. I think this is just because the \fbox line has some width.
The real issue is that the 4 in the second question is much higher the 4 in the first. I would not expect this to be the case because in both cases there should be 2 + 25 + 1 = 28 points between the \hrule and the bottom of the box housing the 4.

