Separate the general from the WL-specific: PDF
[librarian.git] / librarian / styles / wolnelektury / pdf.py
1 import shutil
2 from librarian import get_resource
3 from librarian.pdf import PDFFormat
4 from librarian.styles.wolnelektury.cover import WLCover
5
6 class WLPDFFormat(PDFFormat):
7     cover_class = WLCover
8     style = get_resource('res/styles/wolnelektury/pdf/wolnelektury.sty')
9
10     def get_tex_dir(self):
11         temp = super(WLPDFFormat, self).get_tex_dir()
12         shutil.copy(get_resource('res/wl-logo.png'), temp)
13         return temp