sb2nov: fix PublicationEntry without journal and doi

This commit is contained in:
Sina Atalay 2024-03-21 19:30:28 +01:00
parent 17da236450
commit c542971219
2 changed files with 26 additions and 15 deletions

View File

@ -121,6 +121,14 @@
\end{tabularx} \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]{ \newcommand{\resumeNormalSubheading}[2]{
\item \item
\begin{tabularx}{0.98\textwidth-<<design.margins.entry_area.left_and_right|divide_length_by(0.5)>>}[t]{X R{<<design.margins.entry_area.date_and_location_width>>}} \begin{tabularx}{0.98\textwidth-<<design.margins.entry_area.left_and_right|divide_length_by(0.5)>>}[t]{X R{<<design.margins.entry_area.date_and_location_width>>}}

View File

@ -1,15 +1,18 @@
\resumeSubheading \resumePublicationSubheading{
{\textbf{<<entry.title>>}}{\textit{<<entry.date_string>>}} \textbf{<<entry.title>>}
{ }{
\textit{((*- if entry.doi != "" -*)) \textit{<<entry.date_string>>}
\href{<<entry.doi_url>>}{<<entry.doi>>} }
((*- endif -*)) {
((*- if entry.doi != "" and entry.journal != "" *)) (((* endif -*)) ((*- if entry.doi != "" -*))
((*- if entry.journal != "" -*)) \small\textit{\href{<<entry.doi_url>>}{<<entry.doi>>}}
<<entry.journal>> ((*- endif -*))
((*- endif -*)) ((*- if entry.doi != "" and entry.journal != "" *)) (((* endif -*))
((*- if entry.doi != "" and entry.journal != "" *)))((* endif -*))} ((*- if entry.journal != "" -*))
}{} \small\textit{<<entry.journal>>}
\resumeItemListStart ((*- endif -*))
\resumeItem{}{\raggedright <<entry.authors|map("make_it_nolinebreak")|join(", ")>> \par} ((*- if entry.doi != "" and entry.journal != "" *)))((* endif -*))
\resumeItemListEnd }
\resumeItemListStart
\resumeItem{}{\raggedright <<entry.authors|map("make_it_nolinebreak")|join(", ")>> \par}
\resumeItemListEnd