diff --git a/data/templates/latex/template.tex b/data/templates/latex/template.tex index 83efea5..cccc5b0 100644 --- a/data/templates/latex/template.tex +++ b/data/templates/latex/template.tex @@ -60,7 +60,7 @@ \section*{\Huge{Netrunner Comprehensive Rules}} This rules document is to be used as reference material. It is not intended to be read straight through. If you still have questions after consulting this document, please ask us online via \hreful{mailto:rules@nullsignal.games}{email}. \noindent -This version of the Comprehensive Rules document is effective \textbf{07 August 2023}. +%__DATE_PLACEHOLDER__% \section*{Summary of Changes} \addcontentsline{toc}{section}{Summary of Changes} diff --git a/rules_doc_generator/model/section.py b/rules_doc_generator/model/section.py index 43acb3e..8663b15 100644 --- a/rules_doc_generator/model/section.py +++ b/rules_doc_generator/model/section.py @@ -362,6 +362,8 @@ def to_latex(self, config: Config, id_map: RefDict) -> str: latex_content = latex_content.replace("%__CHANGELOG_PLACEHOLDER__%", f'\\1 {changelog_content}') document_content = ''.join(map(lambda x: x.to_latex(config, id_map), self.chapters)) + date_content = f'This version of the Comprehensive Rules document is effective \\textbf{{07 August 2023}}.' + latex_content = latex_content.replace("%__DATE_PLACEHOLDER__%", date_content) latex_content = latex_content.replace("%__DOCUMENT_PLACEHOLDER__%", document_content) return latex_content