Gapfill question is not working with Latex
Preview before
Preview After
So, it not work in a "Question text" field and works in a "General feedback" field
Hi Laurie,
It would help if you show us what you have done with Gapfill so far.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script> $(document).ready(function() { /* FORMAT THE INPUT BOXES */ /* All boxes (set here by default) */ $(".typetext").css("text-align", "right"); // The text of all input boxes (no index) is aligned to the right /* First box - Note that the indices start at zero */ $(".typetext:eq(0)").css("width", "40px"); // The width of the first input box is 40 pixels /* Second box */ $(".typetext:eq(1)").css("width", "70px"); // The width of the second input box is 70 pixels $(".typetext:eq(1)").css("transform", "rotate(20deg)"); // The second box is rotated 20 degrees $(".typetext:eq(1)").css("vertical-align", "40px"); // The second box is moved up 40 pixels /* Third box */ $(".typetext:eq(2)").css("width", "20px"); // The width of the third input box is 20 pixels $(".typetext:eq(2)").css("text-align", "center"); // The text of the third boxe is centered }); </script> <p>The [cat] sat on the [mat]</p> <br> <p>Big <span style="font-size:30px;">[1]</span></p>
Of course, if you don't want to rotate or change the vertical position of an input box, just delete the corresponding lines in the code.
For a Cloze question, the code should be slightly different.