sklad2
[librarian.git] / scripts / book2pdf
index 171264b..37fcb17 100755 (executable)
@@ -18,6 +18,8 @@ if __name__ == '__main__':
     parser = OptionParser(usage)
     parser.add_option('-v', '--verbose', action='store_true', dest='verbose', default=False,
                       help='make lots of noise and revert to default interaction in LaTeX')
+    parser.add_option('-c', '--with-cover', action='store_true', dest='with_cover', default=False,
+                      help='create default cover')
     parser.add_option('-d', '--make-dir', action='store_true', dest='make_dir', default=False,
                       help='create a directory for author and put the PDF in it')
     parser.add_option('-t', '--save-tex', dest='save_tex', metavar='FILE',
@@ -49,7 +51,8 @@ if __name__ == '__main__':
 
             doc = WLDocument.from_file(main_input, provider=provider)
             pdf = doc.as_pdf(save_tex=options.save_tex,
-                        morefloats=options.morefloats)
+                        cover=options.with_cover,
+                        morefloats=options.morefloats, verbose=options.verbose)
 
             doc.save_output_file(pdf,
                 output_file, options.output_dir, options.make_dir, 'pdf')