Skip to content

Create Numbas multiple-choice questions from LaTeX.

Notifications You must be signed in to change notification settings

ManuelBlanc/tfg-qqnumbas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Create Numbas multiple-choice questions from LaTeX.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages