From ddaad438af6b0632041abe72f6bb8ff7e4f164f7 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Tue, 20 Feb 2024 20:10:48 +0100 Subject: [PATCH] allow data models without name --- rendercv/themes/classic/Header.j2.tex | 5 +++-- rendercv/themes/classic/Preamble.j2.tex | 5 +++-- rendercv/themes/moderncv/Header.j2.tex | 3 +++ rendercv/themes/sb2nov/Header.j2.tex | 2 ++ rendercv/themes/sb2nov/Preamble.j2.tex | 4 +--- 5 files changed, 12 insertions(+), 7 deletions(-) diff --git a/rendercv/themes/classic/Header.j2.tex b/rendercv/themes/classic/Header.j2.tex index 7044db4..91d3539 100644 --- a/rendercv/themes/classic/Header.j2.tex +++ b/rendercv/themes/classic/Header.j2.tex @@ -2,7 +2,7 @@ ((* if design.show_last_updated_date *)) \placelastupdatedtext ((* endif *)) - +((* if cv.name is not none *)) \begin{header} \fontsize{<>}{<>} ((* if orcid_url *)) @@ -48,4 +48,5 @@ ((* endif *)) \end{header} -\vspace{<>} \ No newline at end of file +\vspace{<>} +((* endif *)) \ No newline at end of file diff --git a/rendercv/themes/classic/Preamble.j2.tex b/rendercv/themes/classic/Preamble.j2.tex index bd603d6..7481741 100644 --- a/rendercv/themes/classic/Preamble.j2.tex +++ b/rendercv/themes/classic/Preamble.j2.tex @@ -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 diff --git a/rendercv/themes/moderncv/Header.j2.tex b/rendercv/themes/moderncv/Header.j2.tex index b787587..591f326 100644 --- a/rendercv/themes/moderncv/Header.j2.tex +++ b/rendercv/themes/moderncv/Header.j2.tex @@ -1,4 +1,7 @@ +((* if cv.name is not none *)) \maketitle +((* endif *)) + % save the original href command in a new command: \let\hrefWithoutArrow\href diff --git a/rendercv/themes/sb2nov/Header.j2.tex b/rendercv/themes/sb2nov/Header.j2.tex index d42b69f..b28c3bc 100644 --- a/rendercv/themes/sb2nov/Header.j2.tex +++ b/rendercv/themes/sb2nov/Header.j2.tex @@ -3,6 +3,7 @@ \placelastupdatedtext ((* endif *)) +((* if cv.name is not none *)) { \centering \textbf{\fontsize{<>}{<>}\selectfont @@ -54,6 +55,7 @@ } \vspace{<>} +((* endif *)) % save the original href command in a new command: \let\hrefWithoutArrow\href diff --git a/rendercv/themes/sb2nov/Preamble.j2.tex b/rendercv/themes/sb2nov/Preamble.j2.tex index 6c69ed3..2461111 100644 --- a/rendercv/themes/sb2nov/Preamble.j2.tex +++ b/rendercv/themes/sb2nov/Preamble.j2.tex @@ -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{}",