From 57d34c3d319b084f58f9048ebfba1e5f121f45fa Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Sat, 9 Mar 2024 18:53:29 +0100 Subject: [PATCH] update PublicationEntry templates for optional DOI --- rendercv/themes/classic/PublicationEntry.j2.tex | 9 ++++++++- rendercv/themes/markdown/PublicationEntry.j2.md | 2 +- rendercv/themes/moderncv/PublicationEntry.j2.tex | 6 +++++- rendercv/themes/sb2nov/PublicationEntry.j2.tex | 11 ++++++++++- 4 files changed, 24 insertions(+), 4 deletions(-) diff --git a/rendercv/themes/classic/PublicationEntry.j2.tex b/rendercv/themes/classic/PublicationEntry.j2.tex index 92e5451..09d4486 100644 --- a/rendercv/themes/classic/PublicationEntry.j2.tex +++ b/rendercv/themes/classic/PublicationEntry.j2.tex @@ -15,7 +15,14 @@ \vspace{<>} - \href{<>}{<>} ((* if not entry.journal == "" *))(<>)((* endif *)) + ((*- if entry.doi != "" -*)) + \href{<>}{<>} + ((*- endif -*)) + ((*- if entry.doi != "" and entry.journal != "" *)) (((* endif -*)) + ((*- if entry.journal != "" -*)) + <> + ((*- endif -*)) + ((*- if entry.doi != "" and entry.journal != "" *)))((* endif -*)) & <> \end{tabularx} diff --git a/rendercv/themes/markdown/PublicationEntry.j2.md b/rendercv/themes/markdown/PublicationEntry.j2.md index 49f73de..e38315d 100644 --- a/rendercv/themes/markdown/PublicationEntry.j2.md +++ b/rendercv/themes/markdown/PublicationEntry.j2.md @@ -1,4 +1,4 @@ -## <> ([<>](<>)) +## <> ((* if entry.doi != "" *))([<>](<>))((* endif *)) - <> - <> diff --git a/rendercv/themes/moderncv/PublicationEntry.j2.tex b/rendercv/themes/moderncv/PublicationEntry.j2.tex index f382540..1862b0c 100644 --- a/rendercv/themes/moderncv/PublicationEntry.j2.tex +++ b/rendercv/themes/moderncv/PublicationEntry.j2.tex @@ -1,2 +1,6 @@ -\cventry{<>}{<>}{<>}{\href{<>}{<>}}{}{} +\cventry{<>}{<>}{<>}{ +((*- if entry.doi != "" -*)) +\href{<>}{<>} +((*- endif -*)) +}{}{} \cvline{}{\small <>} \ No newline at end of file diff --git a/rendercv/themes/sb2nov/PublicationEntry.j2.tex b/rendercv/themes/sb2nov/PublicationEntry.j2.tex index 218b8f9..4f1f1f6 100644 --- a/rendercv/themes/sb2nov/PublicationEntry.j2.tex +++ b/rendercv/themes/sb2nov/PublicationEntry.j2.tex @@ -1,6 +1,15 @@ \resumeSubheading {<>}{<>} - {\href{<>}{<>} ((* if not entry.journal == "" *))(<>)((* endif *))}{} + { +((*- 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