fix: Merge changes from pandoc 3.4 LaTeX template
* Merge changes from the pandoc default LaTeX template from version 3.4 (7e8aafa).
* prepare for release of version 2.5.0
* update copyright year
* fix: Update `actions/upload-artifact` to version `v4`
* run ci with pandoc 3.4
* run ci with python 3.12
- Merge changes from the pandoc default LaTeX template.
- Change pandoc version to 3.1.1 in the GitHub workflow.
- Prepare for release of version 2.3.0.
- Merged with 144bf90ab9/data/templates/default.latex
- Rebuild the examples
- Rebuild the tests
- Add packages `hardwrap` and `catchfile` to build the broken example `title-page-background`
- Build with the latest pandoc 2.19.2