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
File details
Details for the file pandoc-cover-0.0.3.tar.gz
.
File metadata
- Download URL: pandoc-cover-0.0.3.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc1391ea31ea69ea1731e8836821108ee85092980ab43b8aa793beb9b71c2e8a |
|
MD5 | 683a1eb91b2cfe62f45e359360bf1ac7 |
|
BLAKE2b-256 | 3ae63facd94fbec5bf9e06b6c17d21a028a580b42aea6dafd958ac47ed88c16b |
File details
Details for the file pandoc_cover-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: pandoc_cover-0.0.3-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f60f0611d281522ff98eacf06c08ce7fa6977a5ab8b61da8ebefb84f39834b3e |
|
MD5 | f1a6987dd7e88a581c362f34d1152724 |
|
BLAKE2b-256 | 2f5b2b64f0de6ed4464a249bd9ff161faa57588d720620a907f43c636c822d0f |