From 5118f431ebf52606178ce60958f941a0971ef8cc Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Thu, 16 May 2024 00:56:30 +0300 Subject: [PATCH] themes: make date optional in `PublicationEntry`s --- .../themes/classic/PublicationEntry.j2.tex | 33 +++++++++++++++++++ .../PublicationEntry.j2.tex | 9 +++++ .../themes/markdown/PublicationEntry.j2.md | 2 +- .../themes/sb2nov/PublicationEntry.j2.tex | 9 +++++ 4 files changed, 52 insertions(+), 1 deletion(-) diff --git a/rendercv/themes/classic/PublicationEntry.j2.tex b/rendercv/themes/classic/PublicationEntry.j2.tex index 778ba4e..664cc3d 100644 --- a/rendercv/themes/classic/PublicationEntry.j2.tex +++ b/rendercv/themes/classic/PublicationEntry.j2.tex @@ -2,6 +2,39 @@ \vspace{<>} ((* endif *)) + +\begin{samepage} + ((* if entry.date_string *)) + \begin{twocolentry}{ + <> + } + ((* else *)) + \begin{onecolentry} + ((* endif *)) + \textbf{<>} + + \vspace{<>} + + <> + ((* if entry.doi or entry.journal *)) + \vspace{<>} + + ((* endif *)) + ((* if entry.doi -*)) + \href{<>}{<>} + ((*- endif -*)) + ((*- if entry.doi and entry.journal *)) (((* endif -*)) + ((*- if entry.journal -*)) + <> + ((*- endif -*)) + ((*- if entry.doi and entry.journal *)))((* endif *)) + ((* if entry.date_string *)) + \end{twocolentry} + ((* else *)) + \end{onecolentry} + ((* endif *)) +\end{samepage} + \begin{twocolentry}{ <> } diff --git a/rendercv/themes/engineeringresumes/PublicationEntry.j2.tex b/rendercv/themes/engineeringresumes/PublicationEntry.j2.tex index 8f03787..b05e803 100644 --- a/rendercv/themes/engineeringresumes/PublicationEntry.j2.tex +++ b/rendercv/themes/engineeringresumes/PublicationEntry.j2.tex @@ -3,11 +3,20 @@ ((* endif *)) \begin{samepage} + ((* if entry.date_string *)) \begin{twocolentry}{ <> } + ((* else *)) + \begin{onecolentry} + ((* endif *)) \textbf{<>} + ((* if entry.date_string *)) \end{twocolentry} + ((* else *)) + \end{onecolentry} + ((* endif *)) + ((* if entry.doi or entry.journal *)) \vspace{<>} diff --git a/rendercv/themes/markdown/PublicationEntry.j2.md b/rendercv/themes/markdown/PublicationEntry.j2.md index e38315d..790c985 100644 --- a/rendercv/themes/markdown/PublicationEntry.j2.md +++ b/rendercv/themes/markdown/PublicationEntry.j2.md @@ -1,5 +1,5 @@ ## <> ((* if entry.doi != "" *))([<>](<>))((* endif *)) -- <> +((* if entry.date_string *))- <> ((* endif *)) - <> ((* if entry.journal != "" *))- <> ((* endif *)) diff --git a/rendercv/themes/sb2nov/PublicationEntry.j2.tex b/rendercv/themes/sb2nov/PublicationEntry.j2.tex index 7baa589..7018198 100644 --- a/rendercv/themes/sb2nov/PublicationEntry.j2.tex +++ b/rendercv/themes/sb2nov/PublicationEntry.j2.tex @@ -3,11 +3,20 @@ ((* endif *)) \begin{samepage} + ((* if entry.date_string *)) \begin{twocolentry}{ <> } + ((* else *)) + \begin{onecolentry} + ((* endif *)) \textbf{<>} + ((* if entry.date_string *)) \end{twocolentry} + ((* else *)) + \end{onecolentry} + ((* endif *)) + ((* if entry.doi or entry.journal *)) \vspace{<>-3px}