Autogenerate styling for textbooks