I am editing a questionnaire that uses \hrulefill
as a text entry "field".
I would like to lower the \hrulefill
a bit to give participants more room to write. For a fixed-length rule I would use something like \rule[-3pt]{#1}{0.6pt}
. Can I raise or lower an \hrulefill
in a similar way or add the fill behaviour to a \rule
?
Please state your name: \hrulefill
I was born on \hrulefill in \hrulefill
...
Best Answer
You may want to look at the
xhfill
package. Here's a version usingxparse
to define the placement of the rule with a key/value syntax.With
height
you specify the rule's bottom position, with respect to the baseline (default 0pt); withthickness
the rule's thickness (default 0.4pt); withfill
the behavior (default\fill
).In particular,
\xhrulefill
with no argument is equivalent to\hrulefill
.