X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/e57b146bf49e38b3bb57615110b27de5b4d1ae69..55fbc767e5592cad565cff0d16b9638d01b6706f:/scripts/book2pdf?ds=inline diff --git a/scripts/book2pdf b/scripts/book2pdf index 68e2d08..c80bfe6 100755 --- a/scripts/book2pdf +++ b/scripts/book2pdf @@ -1,6 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- -# # This file is part of Librarian, licensed under GNU Affero GPLv3 or later. # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # @@ -12,11 +10,19 @@ class Book2Pdf(Book2Anything): ext = "pdf" uses_cover = True uses_provider = True - transform_args = [ - Option('-t', '--save-tex', dest='save_tex', metavar='FILE', - help='path to save the intermediary LaTeX file to'), - Option('-m', '--morefloats', dest='morefloats', metavar='old/new/none', - help='force morefloats in old (<1.0c), new (>=1.0c) or none') + transform_options = [ + Option( + '-t', '--save-tex', dest='save_tex', metavar='FILE', + help='path to save the intermediary LaTeX file to' + ), + Option( + '-m', '--morefloats', dest='morefloats', metavar='old/new/none', + help='force morefloats in old (<1.0c), new (>=1.0c) or none' + ), + Option( + '-b', '--base-url', dest='base_url', metavar='URL', + help='specifies the base URL for relative image references' + ), ]