Configure sp for latex mode
Fix typo in format field
Revert to % prefix for shell commands
Expand docstring.