Skip to content

Commit

Permalink
Add a before-body partial to allow targeting preamble content
Browse files Browse the repository at this point in the history
Fixes #5058
  • Loading branch information
dragonstyle committed Dec 12, 2023
1 parent c8e2cda commit f0aa38e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions news/changelog-1.4.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@

- ([#4370](https://github.com/quarto-dev/quarto-cli/issues/4370)): Hoist code cells deep in the AST out of layout cells to avoid `\raisebox` issues with the `Shaded` environment.
- ([#5078](https://github.com/quarto-dev/quarto-cli/issues/5078)): Ensure format-resources are copied before PDF rendering when `latex-auto-mk` is `false`
- ([#5058](https://github.com/quarto-dev/quarto-cli/issues/5058)): Add a `before-title.tex` partial to the PDF format. This partial will appear in the document premable just before the title block, allowing further customization of the document preamble. By default, this partial is empty.
- ([#5969](https://github.com/quarto-dev/quarto-cli/issues/5969)): Correctly detect a required rerun for biblatex when using backref link options.
- ([#5690](https://github.com/quarto-dev/quarto-cli/issues/5690)): Improve validation of `pdf-engine`
- ([#6077](https://github.com/quarto-dev/quarto-cli/issues/6077)): Make sure proof environments are tight around contents.
Expand Down
1 change: 1 addition & 0 deletions src/format/pdf/format-pdf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ function createPdfFormat(
"pandoc",
"tables",
"tightlist",
"before-title",
"title",
"toc",
];
Expand Down
Empty file.
1 change: 1 addition & 0 deletions src/resources/formats/pdf/pandoc/template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@
$endif$
pdfcreator={LaTeX via pandoc}}
$before-title.tex()$
$title.tex()$
\begin{document}
Expand Down

0 comments on commit f0aa38e

Please sign in to comment.