mirror of https://github.com/eyhc1/rendercv.git
sb2nov: implement `last_updated_date_style` option
This commit is contained in:
parent
e0d441c5a7
commit
1464b503e4
|
@ -14,7 +14,7 @@
|
||||||
right=<<design.margins.page.right>>, % seperation between body and page edge from the right
|
right=<<design.margins.page.right>>, % seperation between body and page edge from the right
|
||||||
footskip=<<design.margins.page.bottom|divide_length_by(2)>>, % seperation between body and footer
|
footskip=<<design.margins.page.bottom|divide_length_by(2)>>, % seperation between body and footer
|
||||||
% showframe % for debugging
|
% showframe % for debugging
|
||||||
]{geometry} % for adjusting page geometry
|
]{geometry} % for adjusting page geometry
|
||||||
\usepackage{latexsym}
|
\usepackage{latexsym}
|
||||||
\usepackage[nobottomtitles*]{titlesec}
|
\usepackage[nobottomtitles*]{titlesec}
|
||||||
\usepackage{marvosym}
|
\usepackage{marvosym}
|
||||||
|
@ -93,13 +93,16 @@
|
||||||
|
|
||||||
%-------------------------
|
%-------------------------
|
||||||
% Custom commands
|
% Custom commands
|
||||||
|
((* set last_updated_date_style_placeholders = {
|
||||||
|
"TODAY": today,
|
||||||
|
} *))
|
||||||
\newcommand{\placelastupdatedtext}{% \placetextbox{<horizontal pos>}{<vertical pos>}{<stuff>}
|
\newcommand{\placelastupdatedtext}{% \placetextbox{<horizontal pos>}{<vertical pos>}{<stuff>}
|
||||||
\AddToShipoutPictureFG*{% Add <stuff> to current page foreground
|
\AddToShipoutPictureFG*{% Add <stuff> to current page foreground
|
||||||
\put(
|
\put(
|
||||||
\LenToUnit{\paperwidth-<<design.margins.page.right>>-<<design.margins.entry_area.left_and_right>>+0.05cm},
|
\LenToUnit{\paperwidth-<<design.margins.page.right>>-<<design.margins.entry_area.left_and_right>>+0.05cm},
|
||||||
\LenToUnit{\paperheight-<<design.margins.page.top|divide_length_by(2)>>}
|
\LenToUnit{\paperheight-<<design.margins.page.top|divide_length_by(2)>>}
|
||||||
){\vtop{{\null}\makebox[0pt][c]{
|
){\vtop{{\null}\makebox[0pt][c]{
|
||||||
\small\color{gray}\textit{Last updated in <<today>>}\hspace{\widthof{Last updated in <<today>>}}
|
\small\color{gray}\textit{<<design.last_updated_date_style|replace_placeholders_with_actual_values(last_updated_date_style_placeholders)>>}\hspace{\widthof{<<design.last_updated_date_style|replace_placeholders_with_actual_values(last_updated_date_style_placeholders)>>}}
|
||||||
}}}%
|
}}}%
|
||||||
}%
|
}%
|
||||||
}%
|
}%
|
||||||
|
|
Loading…
Reference in New Issue