I am using an exam package and the following code


but there is an vertical space issue which I could not find a solution for it between the equation and the horizontal line. Please see the picture enter image description here

  • 1
    Putting \setlength\answerclearance{1.25ex} in your document's preamble should do the trick. Oct 23, 2019 at 5:38

1 Answer 1


You may use \fillin[\raisebox{.5ex}{$P(X\le6)-P(X\le3)$}][3.7in] as in this example:

\question \fillin[\raisebox{.5ex}{$P(X\le6)-P(X\le3)$}][2in] this is the question.

enter image description here

But adding too much of a vertical space can make the answer ugly, so be cautious when adding such a space.

Another (better) option is to use bold math (via \usepackage{bm}):


which outputs this (better) result:

enter image description here

You must log in to answer this question.

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