PreTeXt (Formerly MathBook XML) A lightweight XML application for authors of scientific articles, textbooks and monographs.
Integrating WeBWorK into TextbooksSample Exercises
And this is how they can work together. Create your textbook in MathBook XML and your homework using the bank of exercises in WeBWork. Embed the homework directly into the textbook.
WeBWorK-MathBook XML Bridge Project Complete
Learn more about the Open Oregon project linking these resources together.
Wikimedia Commons, the free media repository