def load_including_children(wldoc=None, provider=None, uri=None):
""" Makes one big xml file with children inserted at end.
-
+
Either wldoc or provider and URI must be provided.
"""
class PDFFormat(Format):
""" Base PDF format.
-
+
Available customization:
nofootnotes: Doesn't do footnotes.
nothemes: Doesn't do themes.
# Copy style
shutil.copy(get_resource('pdf/wl.cls'), temp)
shutil.copy(self.style, os.path.join(temp, 'style.sty'))
+ #for sfile in ['wasysym.sty', 'uwasyvar.fd', 'uwasy.fd']:
+ # shutil.copy(get_resource(os.path.join('res/wasysym', sfile)), temp)
+
# Save attachments
if self.cover:
self.cover.for_pdf().dump_to(os.path.join(temp, 'makecover.sty'))
p = call(['xelatex', '-interaction=batchmode', tex_path],
stdout=PIPE, stderr=PIPE)
if p:
- raise ParseError("Error parsing .tex file")
+ raise ParseError("Error parsing .tex file: %s" % tex_path)
if cwd is not None:
os.chdir(cwd)
"""
self.verbose = verbose
self.save_tex = save_tex
-
+
if morefloats is None and package_available('morefloats', 'maxfloats=19'):
morefloats = 'new'
self.morefloats = morefloats