diff options
| author | aristote <quentin.aristote@irif.fr> | 2025-12-31 12:56:08 +0100 |
|---|---|---|
| committer | aristote <quentin.aristote@irif.fr> | 2025-12-31 12:56:08 +0100 |
| commit | c8e75c6579a499280085457a10dc1ef15ef8a6b8 (patch) | |
| tree | 21af1bccb66095b2b13140da41c2a4e0a96f9094 /src/bibliography | |
| parent | 84545ccfb25ecae35eaf89ff8d00feef469e869a (diff) | |
| parent | c9d07024266f13fcb91a1923c81e43bca240f773 (diff) | |
Merge branch 'pocococop'
Diffstat (limited to 'src/bibliography')
| -rw-r--r-- | src/bibliography/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/bibliography/default.nix b/src/bibliography/default.nix new file mode 100644 index 0000000..b34ada4 --- /dev/null +++ b/src/bibliography/default.nix @@ -0,0 +1,42 @@ +{ + data, + ... +}: +let + addBibResource = name: '' + \begin{filecontents*}{${name}.json} + ${builtins.toJSON data.research."${name}"} + \end{filecontents*} + \addbibresource{${name}.json} + ''; +in +{ + title = "Bibliography"; + extraHeader = '' + \usepackage[style=ieee]{citation-style-language} + \cslsetup{bib-item-sep = 8 pt plus 4 pt minus 2 pt} + '' + + addBibResource "conferences" + + addBibResource "journals" + + addBibResource "misc" + + addBibResource "reports"; + content = '' + \nocite{*} + + \textbf{Conference papers} + + \printbibliography[heading=none,type=paper-conference] + + \textbf{Journal papers} + + \printbibliography[heading=none,type=article-journal] + + \textbf{Not peer-reviewed} + + \printbibliography[heading=none,nottype=article-journal,nottype=paper-conference,nottype=report] + + \textbf{Reports} + + \printbibliography[heading=none,type=report] + ''; +} |
