Also hardcode chapter and section titles and start messing with trickery to get rid of LaTeX warnings.
See github.com/jgm/pandoc/issues/8982