X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/3754989331c91f1d78cd5c1904f768a4cf80f07a..5bc29f19f308610c944d63597962fb3b0f468c54:/librarian/styles/wolnelektury/pdf.py diff --git a/librarian/styles/wolnelektury/pdf.py b/librarian/styles/wolnelektury/pdf.py new file mode 100644 index 0000000..6a43b0e --- /dev/null +++ b/librarian/styles/wolnelektury/pdf.py @@ -0,0 +1,13 @@ +import shutil +from librarian import get_resource +from librarian.pdf import PDFFormat +from librarian.styles.wolnelektury.cover import WLCover + +class WLPDFFormat(PDFFormat): + cover_class = WLCover + style = get_resource('res/styles/wolnelektury/pdf/wolnelektury.sty') + + def get_tex_dir(self): + temp = super(WLPDFFormat, self).get_tex_dir() + shutil.copy(get_resource('res/wl-logo.png'), temp) + return temp