eforms
, you can make interactive text boxes in LaTeX using the command \textField{<ID>}{<box width>}{<box height>}
.Where I run into trouble is the length of the text box. The way that I would like the form to look is as follows:
text1: _______________________________
text2: _______________________________
...
textN: _______________________________
where the underline section is where the interactive text field exists. As the command
\textField
requires an absolute length to specify the box width, I need some way of measuring the remaining length of the current line. Commands like \linewidth
only return the current linewidth of the environment and not the remaining width of the current line. I also tried some variations of \hfill
but without any luck. I even tried subtracting the length the leading text (by measuring it with the command \settowidth{\gnat}{text})
from the \linewidth
value, but this was inconsistent from line to line.Does anyone have any ideas on how I can get a text box to stretch the remaining length of the page?