about summary refs log tree commit diff stats
path: root/templates/latex
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-04-02 13:44:56 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-04-02 13:44:56 +0200
commit10948ed35a04d6cbe05819acf9903e5e7395375b (patch)
treee5b57b6ef3aec62686d087969d9ed441209f7751 /templates/latex
parentfix(templates.nix): Adjust to the new `init` script (diff)
downloadflake-templates-10948ed35a04d6cbe05819acf9903e5e7395375b.tar.gz
flake-templates-10948ed35a04d6cbe05819acf9903e5e7395375b.zip
feat(treewide): Also remove hard-coded values in the `templates/` dir
Diffstat (limited to 'templates/latex')
-rw-r--r--templates/latex/flake.nix6
-rw-r--r--templates/latex/main.tex8
2 files changed, 7 insertions, 7 deletions
diff --git a/templates/latex/flake.nix b/templates/latex/flake.nix
index 0247cce..a87c795 100644
--- a/templates/latex/flake.nix
+++ b/templates/latex/flake.nix
@@ -72,7 +72,7 @@
       pkgs = nixpkgs.legacyPackages.${system};
 
       # This version is set automatically on `cog bump --auto`;
-      version = "v1.0.0"; # GUIDING VERSION STRING
+      version = "v%INIT_APPLICATION_VERSION"; # GUIDING VERSION STRING
 
       # TODO reduce to the needed ones
       texlive = pkgs.texlive.combined.scheme-full;
@@ -80,7 +80,7 @@
       treefmtEval = import ./treefmt.nix {inherit treefmt-nix pkgs;};
 
       build = pkgs.stdenv.mkDerivation {
-        pname = "TODO";
+        pname = "%INIT_APPLICATION_NAME";
         inherit version;
         src = ./.;
 
@@ -98,7 +98,7 @@
         '';
 
         installPhase = ''
-          install -D ./build/main.pdf $out/TODO;
+          install -D ./build/main.pdf "$out/%INIT_APPLICATION_NAME";
         '';
       };
     in {
diff --git a/templates/latex/main.tex b/templates/latex/main.tex
index 591e600..a458b07 100644
--- a/templates/latex/main.tex
+++ b/templates/latex/main.tex
@@ -7,14 +7,14 @@
 \input{headers/preamble_local.tex}
 
 \title{\textbf{TODO}}
-\author{Benedikt Peetz \\
-\href{mailto:benedikt.peetz@b-peetz.de}{benedikt.peetz@b-peetz.de}\\[1cm]
+\author{%INIT_AUTHOR_NAME \\
+\href{mailto:%INIT_AUTHOR_EMAIL}{%INIT_AUTHOR_EMAIL}\\[1cm]
 {\small Supervisor: TODO}}
 \date{\DTMToday}
 
 % For the copyright section
-\years{2024}
-\authors{Benedikt Peetz}
+\years{%INIT_YEAR}
+\authors{%INIT_AUTHOR_NAME}
 
 \makeatletter
 \hypersetup{