Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.05 KB

README.md

File metadata and controls

40 lines (28 loc) · 1.05 KB

QQ Numbas

The qqnumbas package defines a macro to generate a Numbas exam as a byproduct when typesetting multiple choice questions.

Usage

The package provides the command \quickquestion{...} that takes parameters in pgfkeys style:

\quickquestion{%
	name = {Question Name},
	prompt = {
		Here goes the question prompt. Multiple paragraphs are not allowed (yet).
	},
	choices={
		{Option A. Can be pure text.},
		{Option B. Can have inline math $e^{i\pi}=-1$},
		{Option C. Can have blockmath $$},
		{Option D. Paragraphs aren't allowed here either.} % Without trailing comma
	},
	answer={b}, % Single lowercase letter. Can be any of: abcd
}

Authors

Acknowledgements

Thanks to the TeX StackExchange for all the helpful content. Special thanks to egreg for answering my question about how to protect the backslashes in the output.