Fixes #16 by adding titles to LaTeX and rst outputs