Here are a few examples of the kinds of things that rst2pdf can do, along with the source and style files so that you can use them as starting points for your own projects. You are very welcome to suggest additional examples by opening an issue on our source repo and to add your own examples - follow the
CONTRIBUTING.md file for more information.
A simple document with some headings and the basic rst2pdf styling.
Document with Simple Styling
The same basic document with some styles added.
- PDF: document1-simple.pdf
- Content: document1.rst
- Style: simple.style
rst2pdf --stylesheets=simple.style document1.rst document1-simple.pdf
Basic Presentation: Dark and Light Themes
Here is a simple sample presentation (inspired by https://github.com/akrabat/rst2pdf_example_presentation), with both dark and light styles. These could be a starting point for your own presentations.
- PDF: presentation1-light.pdf and presentation1-dark.pdf
- Content: presentation1.rst
- Style: light.style and dark.style (tip: the dark one also uses the built-in
fruitystylesheet for code samples)
- Command (light):
rst2pdf -s light.style -b1 presentation1.rst -o presentation1-light.pdf
- Command (dark):
rst2pdf -s dark.style,fruity -b1 presentation1.rst -o presentation1-dark.pdf