diff --git a/rendercv/themes/__init__.py b/rendercv/themes/__init__.py index ba93f94..6b8e282 100644 --- a/rendercv/themes/__init__.py +++ b/rendercv/themes/__init__.py @@ -242,10 +242,11 @@ class ThemeOptions(pydantic.BaseModel): default="NAME - Page PAGE_NUMBER of TOTAL_PAGES", title="Page Numbering Style", description=( - "The style of the page numbering. The following placeholders can be used:" - "\n- NAME: The name of the person\n- PAGE_NUMBER: The current page number" - "\n- TOTAL_PAGES: The total number of pages\nThe default value is" - " NAME - Page PAGE_NUMBER of TOTAL_PAGES." + "The style of the page numbering. The following placeholders can be" + " used:\n- NAME: The name of the person\n- PAGE_NUMBER: The current page" + " number\n- TOTAL_PAGES: The total number of pages\n- TODAY: Today's month" + " and year (April 2024)\nThe default value is NAME - Page PAGE_NUMBER of" + " TOTAL_PAGES." ), ) disable_last_updated_date: bool = pydantic.Field( diff --git a/rendercv/themes/classic/Preamble.j2.tex b/rendercv/themes/classic/Preamble.j2.tex index 9b2c01d..ffa2a29 100644 --- a/rendercv/themes/classic/Preamble.j2.tex +++ b/rendercv/themes/classic/Preamble.j2.tex @@ -75,7 +75,8 @@ ((* set page_numbering_style_placeholders = { "NAME": cv.name, "PAGE_NUMBER": "\\thepage{}", - "TOTAL_PAGES": "\pageref*{LastPage}" + "TOTAL_PAGES": "\pageref*{LastPage}", + "TODAY": today } *)) \makeatletter \let\ps@customFooterStyle\ps@plain % Copy the plain style to customFooterStyle diff --git a/rendercv/themes/engineeringresumes/Preamble.j2.tex b/rendercv/themes/engineeringresumes/Preamble.j2.tex index 702c4c1..33677a1 100644 --- a/rendercv/themes/engineeringresumes/Preamble.j2.tex +++ b/rendercv/themes/engineeringresumes/Preamble.j2.tex @@ -75,7 +75,8 @@ ((* set page_numbering_style_placeholders = { "NAME": cv.name, "PAGE_NUMBER": "\\thepage{}", - "TOTAL_PAGES": "\pageref*{LastPage}" + "TOTAL_PAGES": "\pageref*{LastPage}", + "TODAY": today } *)) \makeatletter \let\ps@customFooterStyle\ps@plain % Copy the plain style to customFooterStyle diff --git a/rendercv/themes/sb2nov/Preamble.j2.tex b/rendercv/themes/sb2nov/Preamble.j2.tex index 8bd08b4..c8046ae 100644 --- a/rendercv/themes/sb2nov/Preamble.j2.tex +++ b/rendercv/themes/sb2nov/Preamble.j2.tex @@ -75,7 +75,8 @@ ((* set page_numbering_style_placeholders = { "NAME": cv.name, "PAGE_NUMBER": "\\thepage{}", - "TOTAL_PAGES": "\pageref*{LastPage}" + "TOTAL_PAGES": "\pageref*{LastPage}", + "TODAY": today } *)) \makeatletter \let\ps@customFooterStyle\ps@plain % Copy the plain style to customFooterStyle