1. James Tocknell
  2. shinypress

Source

shinypress / shinypress / hacks.py

import os.path

def background(filename):
    if filename:
        f = open(filename, 'rb')
        filename = os.path.basename(f.name)
        source = r'\setbackground{%s}' % (filename,)
        return (source, [f])
    return (r'\setbackground{}', [])