LaTeX template: set secnumdepth to 5 if `--number-sections` specified.

This yields behavior equivalent to the other writers, numbering
level 4 and 5 headers too.