Skip to main content

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

  1. 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.

  2. Add title and whatever variables in your pandoc document (bar.md)

  3. Disable the eivogel titlepage and define your SVG template as the titlepage background (bar.md).

  4. The bar.md header should look like this:

    title: 'Hello World !"
    whatever: 'this is so simple'
    titlepage: false
    titlepage-background: 'path/to/foo.svg'
    
  5. 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

pandoc-cover-0.0.3.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

pandoc_cover-0.0.3-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

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

Hashes for pandoc-cover-0.0.3.tar.gz
Algorithm Hash digest
SHA256 bc1391ea31ea69ea1731e8836821108ee85092980ab43b8aa793beb9b71c2e8a
MD5 683a1eb91b2cfe62f45e359360bf1ac7
BLAKE2b-256 3ae63facd94fbec5bf9e06b6c17d21a028a580b42aea6dafd958ac47ed88c16b

See more details on using hashes here.

File details

Details for the file pandoc_cover-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for pandoc_cover-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f60f0611d281522ff98eacf06c08ce7fa6977a5ab8b61da8ebefb84f39834b3e
MD5 f1a6987dd7e88a581c362f34d1152724
BLAKE2b-256 2f5b2b64f0de6ed4464a249bd9ff161faa57588d720620a907f43c636c822d0f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page