write LaTeX + PSTricks and produce digital textbooks with HTML5 interactivity :)