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 and write {{ metadata.title }} in place of the title.

  2. Add a title metadata in your pandoc document

  3. Activate the plugin in the header of your document (bar.md)

    title: 'Hello World !"
    titlepage: false
    titlepage-background: 'path/to/foo.svg'
    
  4. Launch pandoc

    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.2.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

pandoc_cover-0.0.2-py3-none-any.whl (2.4 kB view hashes)

Uploaded Python 3

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