From 1464b503e4676567d8289c6aa0ec495512535bcb Mon Sep 17 00:00:00 2001 From: Sina Atalay <79940989+sinaatalay@users.noreply.github.com> Date: Mon, 8 Apr 2024 19:27:12 +0000 Subject: [PATCH] sb2nov: implement `last_updated_date_style` option --- rendercv/themes/sb2nov/Preamble.j2.tex | 27 ++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/rendercv/themes/sb2nov/Preamble.j2.tex b/rendercv/themes/sb2nov/Preamble.j2.tex index c4be411..60c8538 100644 --- a/rendercv/themes/sb2nov/Preamble.j2.tex +++ b/rendercv/themes/sb2nov/Preamble.j2.tex @@ -7,14 +7,14 @@ \documentclass[<>, <>]{article} \usepackage[ - ignoreheadfoot, % set margins without considering header and footer - top=<>, % seperation between body and page edge from the top - bottom=<>, % seperation between body and page edge from the bottom - left=<>, % seperation between body and page edge from the left - right=<>, % seperation between body and page edge from the right - footskip=<>, % seperation between body and footer - % showframe % for debugging - ]{geometry} % for adjusting page geometry + ignoreheadfoot, % set margins without considering header and footer + top=<>, % seperation between body and page edge from the top + bottom=<>, % seperation between body and page edge from the bottom + left=<>, % seperation between body and page edge from the left + right=<>, % seperation between body and page edge from the right + footskip=<>, % seperation between body and footer + % showframe % for debugging +]{geometry} % for adjusting page geometry \usepackage{latexsym} \usepackage[nobottomtitles*]{titlesec} \usepackage{marvosym} @@ -23,9 +23,9 @@ \usepackage{xcolor} \usepackage{enumitem} \usepackage[ - hidelinks, - pdftitle={<>'s CV}, - pdfauthor={<>} + hidelinks, + pdftitle={<>'s CV}, + pdfauthor={<>} ]{hyperref} \usepackage{fancyhdr} \usepackage[english]{babel} @@ -93,13 +93,16 @@ %------------------------- % Custom commands +((* set last_updated_date_style_placeholders = { + "TODAY": today, +} *)) \newcommand{\placelastupdatedtext}{% \placetextbox{}{}{} \AddToShipoutPictureFG*{% Add to current page foreground \put( \LenToUnit{\paperwidth-<>-<>+0.05cm}, \LenToUnit{\paperheight-<>} ){\vtop{{\null}\makebox[0pt][c]{ - \small\color{gray}\textit{Last updated in <>}\hspace{\widthof{Last updated in <>}} + \small\color{gray}\textit{<>}\hspace{\widthof{<>}} }}}% }% }%