Skip to content

Fill-in-the-Blank

For short-answer questions where students write on a line.

#fill-in[answer](width: <auto|length>, stroke: <stroke>)
ParameterTypeDefaultDescription
answercontentThe correct answer (shown when answers are visible)
widthauto or lengthautoWidth of the blank line. auto measures the answer content plus padding.
strokestroke0.5ptThe stroke style for the underline
The capital of France is #fill-in[Paris].
#examst-set(show-answers: true)
The capital of France is #fill-in[Paris].
#examst-reset()

You can set the width globally or per-instance:

#examst-set(fill-in-width: 3in)
Name: #fill-in[Andrew Smith]
#examst-reset()