RunestoneComponents
RunestoneComponents copied to clipboard
adjustable fillin width
I am writing fillin questions via PreTeXt. I would like to adjust the width of the fillin box (created with ). I was hoping that something like would give me a fillin box wide enough for two characters.
@rbeezer
I think at the point where you emit the <input type="text">
into the html you could just add a @size
attribute that was supplied on the <var />
tag in the statement.
OK, I've got this working, for HTML and for LaTeX. I'll clean it up in the morning - so not public just yet.
Done. Website (sample book) is rebuilding right now, with three examples. Thanks for the suggestion, @byoshiwara, and the hint, @bnmnetp (which was spot-on). Support for static output too (LaTeX, etc), naturally.
At https://github.com/PreTeXtBook/pretext/commit/0b9f2083ed6ddeae20e714b28776e6381154ef83 plus two follow-on commits to test/document.