diff --git a/src/xfel_calibrate/finalize.py b/src/xfel_calibrate/finalize.py index c5d40385b7ee19025e36a70d97e905ca00d2396d..82f6235c8afa9c03ed165f776092dbe83f8258cd 100644 --- a/src/xfel_calibrate/finalize.py +++ b/src/xfel_calibrate/finalize.py @@ -249,15 +249,16 @@ def make_report(run_path: Path, cal_work_dir: Path, project: str, mf.write("latex_logo = '{}/{}'\n".format(module_path, logo_path)) mf.write("latex_additional_files = ['titlepage.tex.txt']\n") + mf.write("latex_engine = 'xelatex'\n") # Set name of the .tex file & thus also the .pdf output # https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-latex_documents latex_doc = ('index', f'{report_name}.tex', tex_escape(project), tex_escape(author), 'manual', False) - mf.write(f"latex_documents = [{latex_doc!r}]\n") + mf.write(f"latex_documents = [{latex_doc!r}]\n\n") for var in l_var: - if var in ['latex_elements', 'latex_logo', + if var in ['latex_elements', 'latex_logo', 'latex_engine' 'latex_additional_files', 'latex_documents']: continue mf.write(f'{var} = {getattr(conf, var, None)!r}\n')