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}
}
\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-<<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
{\textbf{<<entry.title>>}}{\textit{<<entry.date_string>>}}
{
\textit{((*- if entry.doi != "" -*))
\href{<<entry.doi_url>>}{<<entry.doi>>}
((*- endif -*))
((*- if entry.doi != "" and entry.journal != "" *)) (((* endif -*))
((*- if entry.journal != "" -*))
<<entry.journal>>
((*- endif -*))
((*- if entry.doi != "" and entry.journal != "" *)))((* endif -*))}
}{}
\resumeItemListStart
\resumeItem{}{\raggedright <<entry.authors|map("make_it_nolinebreak")|join(", ")>> \par}
\resumeItemListEnd
\resumePublicationSubheading{
\textbf{<<entry.title>>}
}{
\textit{<<entry.date_string>>}
}
{
((*- if entry.doi != "" -*))
\small\textit{\href{<<entry.doi_url>>}{<<entry.doi>>}}
((*- endif -*))
((*- if entry.doi != "" and entry.journal != "" *)) (((* endif -*))
((*- if entry.journal != "" -*))
\small\textit{<<entry.journal>>}
((*- endif -*))
((*- if entry.doi != "" and entry.journal != "" *)))((* endif -*))
}
\resumeItemListStart
\resumeItem{}{\raggedright <<entry.authors|map("make_it_nolinebreak")|join(", ")>> \par}
\resumeItemListEnd