copy rst.py from iterables-iterators-generators
fix rst.py: only one part
use code-block for rst2pdf
rst: no heading links
rst: tweak output
pdf generation
change aspect, smaller font
scale background to 16:9
edits to make output pdf look better