From c542971219989940a559f0618a7532fdf87a6e80 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Thu, 21 Mar 2024 19:30:28 +0100 Subject: [PATCH] sb2nov: fix PublicationEntry without journal and doi --- rendercv/themes/sb2nov/Preamble.j2.tex | 8 +++++ .../themes/sb2nov/PublicationEntry.j2.tex | 33 ++++++++++--------- 2 files changed, 26 insertions(+), 15 deletions(-) diff --git a/rendercv/themes/sb2nov/Preamble.j2.tex b/rendercv/themes/sb2nov/Preamble.j2.tex index 7f9428c..20fc60a 100644 --- a/rendercv/themes/sb2nov/Preamble.j2.tex +++ b/rendercv/themes/sb2nov/Preamble.j2.tex @@ -121,6 +121,14 @@ \end{tabularx} } +\newcommand{\resumePublicationSubheading}[3]{ + \item + \begin{tabularx}{0.98\textwidth-0.4 cm}[t]{X R{4.1 cm}} + #1 & \small#2 \\ + #3 + \end{tabularx} +} + \newcommand{\resumeNormalSubheading}[2]{ \item \begin{tabularx}{0.98\textwidth-<>}[t]{X R{<>}} diff --git a/rendercv/themes/sb2nov/PublicationEntry.j2.tex b/rendercv/themes/sb2nov/PublicationEntry.j2.tex index f5051c0..375612c 100644 --- a/rendercv/themes/sb2nov/PublicationEntry.j2.tex +++ b/rendercv/themes/sb2nov/PublicationEntry.j2.tex @@ -1,15 +1,18 @@ -\resumeSubheading - {\textbf{<>}}{\textit{<>}} - { -\textit{((*- if entry.doi != "" -*)) -\href{<>}{<>} -((*- endif -*)) -((*- if entry.doi != "" and entry.journal != "" *)) (((* endif -*)) -((*- if entry.journal != "" -*)) -<> -((*- endif -*)) -((*- if entry.doi != "" and entry.journal != "" *)))((* endif -*))} -}{} - \resumeItemListStart - \resumeItem{}{\raggedright <> \par} - \resumeItemListEnd \ No newline at end of file +\resumePublicationSubheading{ + \textbf{<>} +}{ + \textit{<>} +} +{ + ((*- if entry.doi != "" -*)) + \small\textit{\href{<>}{<>}} + ((*- endif -*)) + ((*- if entry.doi != "" and entry.journal != "" *)) (((* endif -*)) + ((*- if entry.journal != "" -*)) + \small\textit{<>} + ((*- endif -*)) + ((*- if entry.doi != "" and entry.journal != "" *)))((* endif -*)) +} +\resumeItemListStart + \resumeItem{}{\raggedright <> \par} +\resumeItemListEnd \ No newline at end of file