Skip to content

Commit

Permalink
Add date placeholder in latex template.
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenpieters committed Sep 13, 2023
1 parent a4698f8 commit b4b94bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion data/templates/latex/template.tex
Expand Up @@ -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}
Expand Down
2 changes: 2 additions & 0 deletions rules_doc_generator/model/section.py
Expand Up @@ -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
Expand Down

0 comments on commit b4b94bf

Please sign in to comment.