diff options
| author | aristote <quentin.aristote@irif.fr> | 2025-12-29 21:11:15 +0100 |
|---|---|---|
| committer | aristote <quentin.aristote@irif.fr> | 2025-12-29 21:11:15 +0100 |
| commit | df40831cad07c4b5ddfa75d05eba749e8e49367b (patch) | |
| tree | 967468fd7b716d2a96a75b36863c99b163a46c06 /src/bibliography | |
| parent | 00922323db486f0837e42661f70ccff9f923e7ca (diff) | |
add research output section
Diffstat (limited to 'src/bibliography')
| -rw-r--r-- | src/bibliography/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/bibliography/default.nix b/src/bibliography/default.nix new file mode 100644 index 0000000..bf4bc27 --- /dev/null +++ b/src/bibliography/default.nix @@ -0,0 +1,43 @@ +{ + data, + ... +}: +let + addBibResource = name: '' + \begin{filecontents*}{${name}.json} + ${builtins.toJSON data.research."${name}"} + \end{filecontents*} + \addbibresource{${name}.json} + ''; +in +{ + title = "Bibliography"; + priority = 30; + 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] + ''; +} |
