def transform(wldoc, verbose=False, save_tex=None, morefloats=None,
- cover=None, flags=None, customizations=None, ilustr_path=''):
+ cover=None, flags=None, customizations=None, ilustr_path='', latex_dir=False):
""" produces a PDF file with XeLaTeX
wldoc: a WLDocument
shutil.copy(get_resource('pdf/wl.cls'), temp)
shutil.copy(get_resource('res/wl-logo.png'), temp)
+ if latex_dir:
+ return temp
+
try:
cwd = os.getcwd()
except OSError:
os.chdir(temp)
# some things work better when compiled twice
- for run in xrange(2):
+ # but they are not enabled now (line numbers)
+ for run in xrange(1):
if verbose:
p = call(['xelatex', tex_path])
else: