Widgets

fitb()

Create a fill-in-the-blank question

mcq()

Create a multiple-choice question

torf()

Create a true-or-false question

longmcq()

Longer MCQs with Radio Buttons

hide()

Create button revealing hidden content

unhide()

End hidden HTML content

total_correct()

Display total correct

webexercises_default()

Create default webexercises document

style_widgets()

Change webexercises widget style

Helper Functions

escape_regex()

Escape a string for regex

round2()

Round up from .5

strip_lzero()

Strip leading zero from numeric string

add_webexercises_to_bookdown()

Add webexercises helper files to bookdown