themes: make date optional in `PublicationEntry`s

This commit is contained in:
Sina Atalay 2024-05-16 00:56:30 +03:00
parent 8f8938c173
commit 5118f431eb
4 changed files with 52 additions and 1 deletions

View File

@ -2,6 +2,39 @@
\vspace{<<design.margins.entry_area.vertical_between>>} \vspace{<<design.margins.entry_area.vertical_between>>}
((* endif *)) ((* endif *))
\begin{samepage}
((* if entry.date_string *))
\begin{twocolentry}{
<<entry.date_string>>
}
((* else *))
\begin{onecolentry}
((* endif *))
\textbf{<<entry.title>>}
\vspace{<<design.margins.highlights_area.vertical_between_bullet_points>>}
<<entry.authors|map("make_it_nolinebreak")|join(", ")>>
((* if entry.doi or entry.journal *))
\vspace{<<design.margins.highlights_area.vertical_between_bullet_points>>}
((* endif *))
((* 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 *))
((* if entry.date_string *))
\end{twocolentry}
((* else *))
\end{onecolentry}
((* endif *))
\end{samepage}
\begin{twocolentry}{ \begin{twocolentry}{
<<entry.date_string>> <<entry.date_string>>
} }

View File

@ -3,11 +3,20 @@
((* endif *)) ((* endif *))
\begin{samepage} \begin{samepage}
((* if entry.date_string *))
\begin{twocolentry}{ \begin{twocolentry}{
<<entry.date_string>> <<entry.date_string>>
} }
((* else *))
\begin{onecolentry}
((* endif *))
\textbf{<<entry.title>>} \textbf{<<entry.title>>}
((* if entry.date_string *))
\end{twocolentry} \end{twocolentry}
((* else *))
\end{onecolentry}
((* endif *))
((* if entry.doi or entry.journal *)) ((* if entry.doi or entry.journal *))
\vspace{<<design.margins.highlights_area.vertical_between_bullet_points>>} \vspace{<<design.margins.highlights_area.vertical_between_bullet_points>>}

View File

@ -1,5 +1,5 @@
## <<entry.title>> ((* if entry.doi != "" *))([<<entry.doi>>](<<entry.doi_url>>))((* endif *)) ## <<entry.title>> ((* if entry.doi != "" *))([<<entry.doi>>](<<entry.doi_url>>))((* endif *))
- <<entry.date_string>> ((* if entry.date_string *))- <<entry.date_string>> ((* endif *))
- <<entry.authors|join(", ")>> - <<entry.authors|join(", ")>>
((* if entry.journal != "" *))- <<entry.journal>> ((* endif *)) ((* if entry.journal != "" *))- <<entry.journal>> ((* endif *))

View File

@ -3,11 +3,20 @@
((* endif *)) ((* endif *))
\begin{samepage} \begin{samepage}
((* if entry.date_string *))
\begin{twocolentry}{ \begin{twocolentry}{
<<entry.date_string>> <<entry.date_string>>
} }
((* else *))
\begin{onecolentry}
((* endif *))
\textbf{<<entry.title>>} \textbf{<<entry.title>>}
((* if entry.date_string *))
\end{twocolentry} \end{twocolentry}
((* else *))
\end{onecolentry}
((* endif *))
((* if entry.doi or entry.journal *)) ((* if entry.doi or entry.journal *))
\vspace{<<design.margins.highlights_area.vertical_between_bullet_points>>-3px} \vspace{<<design.margins.highlights_area.vertical_between_bullet_points>>-3px}