Skip to content

Commit

Permalink
Allow passing extra-pdf-header (fix #298)
Browse files Browse the repository at this point in the history
  • Loading branch information
rikhuijzer committed Aug 21, 2022
1 parent 2920328 commit 62b7708
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Books"
uuid = "939d5c6b-51ae-42e7-97ca-7564d0d4ad91"
authors = ["Rik Huijzer <[email protected]>"]
version = "2.0.2"
version = "2.0.3"

[deps]
Artifacts = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
Expand Down
2 changes: 2 additions & 0 deletions defaults/template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@
\let\cleardoublepage\clearpage
$endif$

$extra-pdf-header$

\begin{document}

\makeatletter
Expand Down
4 changes: 4 additions & 0 deletions docs/metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ mousetrap: true
#
pdf-footer: ""

# For example, to add extra packages.
extra-pdf-header: |
\usepackage{cancel}
# Avoid adding a blank page before each chapter.
disable-cleardoublepage: true

Expand Down

2 comments on commit 62b7708

@rikhuijzer
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register

Release notes:

Allows passing extra settings to the TeX header via extra-pdf-header.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/66676

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v2.0.3 -m "<description of version>" 62b7708982e70066afe314aaa616abeeb536e456
git push origin v2.0.3

Please sign in to comment.