X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/0b32c81b837233ea59fdd1b5f19edc935f7b626d..05fbf034b60a035d01f41dbbafffb493e584537a:/librarian/pdf.py?ds=inline diff --git a/librarian/pdf.py b/librarian/pdf.py index eb3f942..a5c4253 100644 --- a/librarian/pdf.py +++ b/librarian/pdf.py @@ -185,7 +185,7 @@ def package_available(package, args='', verbose=False): def transform(wldoc, verbose=False, save_tex=None, save_texml=None, morefloats=None, - cover=None, flags=None, customizations=None, documentclass='wl', resources=None): + cover=None, cover_file=None, flags=None, customizations=None, documentclass='wl', resources=None): """ produces a PDF file with XeLaTeX wldoc: a WLDocument @@ -286,6 +286,9 @@ def transform(wldoc, verbose=False, save_tex=None, save_texml=None, morefloats=N cwd = None os.chdir(temp) + if resources: + os.putenv("TEXINPUTS", "::.:%s" % resources) + if verbose: p = call(['xelatex', tex_path]) else: