RunestoneComponents icon indicating copy to clipboard operation
RunestoneComponents copied to clipboard

adjustable fillin width

Open byoshiwara opened this issue 2 years ago • 3 comments

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.

byoshiwara avatar Aug 30 '22 18:08 byoshiwara

@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.

bnmnetp avatar Aug 30 '22 21:08 bnmnetp

OK, I've got this working, for HTML and for LaTeX. I'll clean it up in the morning - so not public just yet.

rbeezer avatar Aug 31 '22 02:08 rbeezer

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.

rbeezer avatar Aug 31 '22 15:08 rbeezer