Fill in the blanks in ConTeXt

While preparing an exam, I needed to create empty lines for students to write their answers.

How to typeset that using ConTeXt? I could think of a plain TeX solution: create an appropriate \leaders to create a ruled line; insert appropriate \vskip between the lines. Before trying to code it, I decoded to quickly grep ConTeXt base for \leaders to see if a similar macro was already implemented. Sure enough, ConTeXt had a macro for that: \thinrules (and \setupthinrules to change space between the lines, color and thickness of the rule, etc.) Thus, to get the result shown above, I needed:

Fill in the blanks \thinrules[n=2] 

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s