Add a PDF cover to a document using an SVG template and the pandoc metadata
Project description
pandoc-cover
Add a PDF cover to document using an SVG template and the document metadata.
Currently, this only works if you are also using the
eisvogel
template
Example
-
Create a SVG template called
foo.svg
. Write{{ title }}
in place of the title and{{ whatever }}
in place of whatever information you want to appear on the cover. -
Add
title
andwhatever
variables in your pandoc document (bar.md
) -
Disable the eivogel titlepage and define your SVG template as the titlepage background (
bar.md
). -
The
bar.md
header should look like this:title: 'Hello World !" whatever: 'this is so simple' titlepage: false titlepage-background: 'path/to/foo.svg'
-
Launch pandoc with eisvgel and the pandoc_cover filter.
pandoc --filter=pandoc_cover --template=eisvogel bar.md -o bar.pdf
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pandoc_cover-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c94b2b9ad91a7c28e4e1ebbef665bde8c9791bd7bf8e49b83ccbbe506f7ffe9 |
|
MD5 | 706bc66b0a272a3e8f695d5ad142cff4 |
|
BLAKE2b-256 | c3e4b03d78d08a89453715c164cb248acffddcb5babe07e6089bf9aecc57cb66 |