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.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f60f0611d281522ff98eacf06c08ce7fa6977a5ab8b61da8ebefb84f39834b3e |
|
MD5 | f1a6987dd7e88a581c362f34d1152724 |
|
BLAKE2b-256 | 2f5b2b64f0de6ed4464a249bd9ff161faa57588d720620a907f43c636c822d0f |