diff options
| author | aristote <quentin.aristote@irif.fr> | 2025-12-31 12:23:03 +0100 |
|---|---|---|
| committer | aristote <quentin.aristote@irif.fr> | 2025-12-31 12:23:03 +0100 |
| commit | f4c78d6dd3b05d4adeeb0cb7a0d6fd4a0bd07cdf (patch) | |
| tree | 8a7b8dde8e4c4a311c0fd2acdfb109947bdb6f98 | |
| parent | 369b1406b44e7905b2f49b37621dbad1d0787cac (diff) | |
sections: remove priority system
| -rw-r--r-- | src/bibliography/default.nix | 1 | ||||
| -rw-r--r-- | src/default.nix | 2 | ||||
| -rw-r--r-- | src/education/default.nix | 1 | ||||
| -rw-r--r-- | src/experience/default.nix | 1 | ||||
| -rw-r--r-- | src/languages/default.nix | 1 | ||||
| -rw-r--r-- | src/research/default.nix | 1 | ||||
| -rw-r--r-- | src/sections.nix | 14 | ||||
| -rw-r--r-- | src/service/default.nix | 1 |
8 files changed, 12 insertions, 10 deletions
diff --git a/src/bibliography/default.nix b/src/bibliography/default.nix index bf4bc27..b34ada4 100644 --- a/src/bibliography/default.nix +++ b/src/bibliography/default.nix @@ -12,7 +12,6 @@ let in { title = "Bibliography"; - priority = 30; extraHeader = '' \usepackage[style=ieee]{citation-style-language} \cslsetup{bib-item-sep = 8 pt plus 4 pt minus 2 pt} diff --git a/src/default.nix b/src/default.nix index dbc9fca..cd5c9cf 100644 --- a/src/default.nix +++ b/src/default.nix @@ -6,7 +6,7 @@ }: with latex; let - sections = sort.byKey "priority" (make ./sections.nix { }); + sections = make ./sections.nix { }; in with data.basics; lines [ diff --git a/src/education/default.nix b/src/education/default.nix index 8d373f8..b2e6289 100644 --- a/src/education/default.nix +++ b/src/education/default.nix @@ -10,7 +10,6 @@ let in { title = "Education"; - priority = 10; content = with latex; for (sortByStartDate education) ( diff --git a/src/experience/default.nix b/src/experience/default.nix index 96bf847..7cc3a39 100644 --- a/src/experience/default.nix +++ b/src/experience/default.nix @@ -9,7 +9,6 @@ let in { title = "Experience"; - priority = 15; content = with latex; for (sort.reverse.byFun (x: with x.date.start; day + 100 * month + 10000 * year) experience) ( diff --git a/src/languages/default.nix b/src/languages/default.nix index 067ba83..9f86c89 100644 --- a/src/languages/default.nix +++ b/src/languages/default.nix @@ -16,7 +16,6 @@ let in { title = "Languages"; - priority = 20; extraHeader = '' \usepackage{emoji} \setemojifont{NotoColorEmoji.ttf}[Path=./fonts/] diff --git a/src/research/default.nix b/src/research/default.nix index f8b1363..99c6f0d 100644 --- a/src/research/default.nix +++ b/src/research/default.nix @@ -3,6 +3,5 @@ }: { title = "Research output"; - priority = 1; content = builtins.readFile ./content.tex; } diff --git a/src/sections.nix b/src/sections.nix index fc749d7..aa2c527 100644 --- a/src/sections.nix +++ b/src/sections.nix @@ -5,8 +5,8 @@ }: let sectionTemplate = section: { - inherit (section) title priority; - extraHeader = if section ? extraHeader then section.extraHeader else ""; + inherit (section) title; + extraHeader = section.extraHeader or ""; content = latex.section section.title section.content; }; makeSection = path: sectionTemplate (make path { }); @@ -17,5 +17,13 @@ builtins.map makeSection [ ./research ./service ./languages - ./bibliography +] +++ [ + { + extraHeader = ""; + content = '' + \newpage + ''; + } + (makeSection ./bibliography) ] diff --git a/src/service/default.nix b/src/service/default.nix index 0b40956..6e183c9 100644 --- a/src/service/default.nix +++ b/src/service/default.nix @@ -9,7 +9,6 @@ let in { title = "Academic service"; - priority = 2; content = [ ( with service.reviews; |
