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

View File

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

View File

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

View File

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