aboutsummaryrefslogtreecommitdiff
path: root/make_guides.py
diff options
context:
space:
mode:
Diffstat (limited to 'make_guides.py')
-rwxr-xr-xmake_guides.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/make_guides.py b/make_guides.py
index d46ba13..79184c7 100755
--- a/make_guides.py
+++ b/make_guides.py
@@ -59,14 +59,15 @@ def build_latex(guide):
fp.close()
if not os.path.isdir(build_dir):
os.mkdir(build_dir)
- fp = open(os.path.join(build_dir,tex_name),'wt')
+ fp = open(os.path.join(build_dir,tex_name),'wb')
+ print(tools_dir)
fp.write(docutils.core.publish_string(source,
writer_name='latex',
- settings_overrides={'language': 'it',
+ settings_overrides={'language_code': 'it',
'documentoptions': 'a6paper,twoside',
'stylesheet': 'lmodern',
- 'hyperlink-color': '0',
- 'output_encoding': 'unicode'}))
+ 'template': os.path.join(tools_dir,'booklet-A6.template.tex'),
+ 'hyperlink-color': '0'}))
fp.close()
def build_pdf(guide):