From 2afc92113db3955e23111ef345d0744233c98be6 Mon Sep 17 00:00:00 2001 From: Sebastian Gode Date: Fri, 15 Nov 2024 08:29:15 +0000 Subject: [PATCH] Update Confpy for PDF --- templates/conf.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/templates/conf.py b/templates/conf.py index 632bb34b..b741350e 100644 --- a/templates/conf.py +++ b/templates/conf.py @@ -131,6 +131,11 @@ latex_elements = { 'papersize': 'a4paper', 'pointsize': '12pt', 'figure_align': 'H', - 'preamble': r'\newcommand{\githash}{' + current_commit_hash + '}', + 'preamble': rf'''{% raw %} + \newcommand{{\githash}}{{{current_commit_hash}}} + \newcommand{{\gitcommittime}}{{{current_commit_time}}} + \newcommand{{\doctitle}}{{{otcdocs_doc_title}}} + \newcommand{{\servicetitle}}{{{otcdocs_service_title}}}{% endraw %} + ''', 'sphinxsetup': 'hmargin={15mm,15mm}, vmargin={20mm,30mm}, marginpar=10mm' }