allow data models without name

This commit is contained in:
Sina Atalay 2024-02-20 20:10:48 +01:00
parent c7fb8ff287
commit ddaad438af
5 changed files with 12 additions and 7 deletions

View File

@ -2,7 +2,7 @@
((* if design.show_last_updated_date *))
\placelastupdatedtext
((* endif *))
((* if cv.name is not none *))
\begin{header}
\fontsize{<<design.header_font_size>>}{<<design.header_font_size>>}
((* if orcid_url *))
@ -49,3 +49,4 @@
\end{header}
\vspace{<<design.margins.header.bottom>>}
((* endif *))

View File

@ -35,9 +35,9 @@
\setcounter{secnumdepth}{0} % no section numbering
\setlength{\parindent}{0pt} % no indentation
\setlength{\topskip}{0pt} % no top skip
((* if disable_page_numbering *))
((* if design.disable_page_numbering *))
\pagenumbering{gobble} % no page numbering
((* endif *))
((* else *))
((* set page_numbering_style_placeholders = {
"NAME": cv.name,
"PAGE_NUMBER": "\\thepage{}",
@ -50,6 +50,7 @@
}{}{} % replace number by desired string
\makeatother
\pagestyle{customFooterStyle}
((* endif *))
\titleformat{\section}{
% make the font size of the section title large and color it with the primary color

View File

@ -1,4 +1,7 @@
((* if cv.name is not none *))
\maketitle
((* endif *))
% save the original href command in a new command:
\let\hrefWithoutArrow\href

View File

@ -3,6 +3,7 @@
\placelastupdatedtext
((* endif *))
((* if cv.name is not none *))
{
\centering
\textbf{\fontsize{<<design.header_font_size>>}{<<design.header_font_size>>}\selectfont
@ -54,6 +55,7 @@
}
\vspace{<<design.margins.header.bottom>>}
((* endif *))
% save the original href command in a new command:
\let\hrefWithoutArrow\href

View File

@ -35,9 +35,7 @@
\pagestyle{fancy}
\fancyhf{} % clear all header and footer fields
((* if disable_page_numbering *))
\pagenumbering{} % no page numbering
((* else *))
((* if not design.disable_page_numbering *))
((* set page_numbering_style_placeholders = {
"NAME": cv.name,
"PAGE_NUMBER": "\\thepage{}",