fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
footnotes, cleanups, top margin
[librarian.git]
/
librarian
/
pdf.py
diff --git
a/librarian/pdf.py
b/librarian/pdf.py
index
eb3f942
..
a5c4253
100644
(file)
--- 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,
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
""" 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)
cwd = None
os.chdir(temp)
+ if resources:
+ os.putenv("TEXINPUTS", "::.:%s" % resources)
+
if verbose:
p = call(['xelatex', tex_path])
else:
if verbose:
p = call(['xelatex', tex_path])
else: