Separate the general from the WL-specific: PDF
[librarian.git] / librarian / styles / wolnelektury / pdf.py
diff --git a/librarian/styles/wolnelektury/pdf.py b/librarian/styles/wolnelektury/pdf.py
new file mode 100644 (file)
index 0000000..6a43b0e
--- /dev/null
@@ -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