DOC: fix build error in to_latex and release notes
Merge pull request #5447 from jorisvandenbossche/docs-to_latex-error

DOC: fix build error in to_latex and release notes