From 7cdc4dc8f2328613212bde4aa631e6006cbcc9fc Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Mon, 23 Oct 2023 18:26:43 +0200 Subject: [PATCH] Title page --- book.org | 26 ++++++++++++++++++++++++ flake.nix | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 82 insertions(+), 3 deletions(-) diff --git a/book.org b/book.org index 40983b8..7e53b72 100644 --- a/book.org +++ b/book.org @@ -6,6 +6,16 @@ #+LATEX_HEADER: \usepackage[inline]{enumitem} #+LATEX_HEADER: \usepackage{listings} #+LATEX_HEADER: \usepackage{color} +#+LATEX_HEADER: \usepackage[type=report]{ugent2016-title} +#+LATEX_HEADER: \academicyear{2023–2024} +#+LATEX_HEADER: \subtitle{Learn to code with a data-driven platform} +#+LATEX_HEADER: \titletext{A dissertation submitted to Ghent University in partial fulfilment of the requirements for the degree of Doctor of Computer Science.} +#+LATEX_HEADER: \promotors{% +#+LATEX_HEADER: Supervisors:\\ +#+LATEX_HEADER: Prof.\ Dr.\ Peter Dawyndt\\ +#+LATEX_HEADER: Prof.\ Dr.\ Ir.\ Bart Mesuere\\ +#+LATEX_HEADER: Prof.\ Dr.\ Bram De Wever +#+LATEX_HEADER: } #+OPTIONS: toc:nil #+OPTIONS: ':t #+cite_export: csl citation-style.csl @@ -26,6 +36,22 @@ :UNNUMBERED: t :END: +* Summaries +:PROPERTIES: +:CREATED: [2023-10-23 Mon 17:56] +:UNNUMBERED: t +:END: + +** Summmary in English +:PROPERTIES: +:CREATED: [2023-10-23 Mon 17:54] +:END: + +** Nederlandstalige samenvatting +:PROPERTIES: +:CREATED: [2023-10-23 Mon 17:54] +:END: + #+LATEX: \mainmatter * Introduction diff --git a/flake.nix b/flake.nix index a85719b..35569c6 100644 --- a/flake.nix +++ b/flake.nix @@ -15,12 +15,65 @@ outputs = { self, nixpkgs, devshell, flake-utils }: flake-utils.lib.eachDefaultSystem (system: let - pkgs = import nixpkgs { inherit system; overlays = [ devshell.overlays.default ]; }; - in { + pkgs = import nixpkgs { inherit system; overlays = [ devshell.overlays.default ]; config.allowUnfree = true; }; + ugent2016 = pkgs.stdenvNoCC.mkDerivation (finalAttrs: { + pname = "ugent2016"; + version = "0.10.0"; + passthru = { + pkgs = [ finalAttrs.finalPackage ]; + tlDeps = with pkgs.texlive; [ + etoolbox + kvoptions + xstring + auxhook + translations + fontspec + pgf + textcase + graphics + geometry + setspace + ulem + ]; + tlType = "run"; + }; + + src = pkgs.fetchurl { + url = "https://github.com/niknetniko/ugent2016/releases/download/${finalAttrs.version}/ugent2016.zip"; + hash = "sha256-70/5WHljZwbB//CiKy5AKuVTpwyK2BmbPD/Z4lQwPc8="; + }; + + nativeBuildInputs = [ pkgs.unzip ]; + + sourceRoot = "."; + + dontConfigure = true; + dontBuild = true; + + installPhase = '' + runHook preInstall + + mkdir -p $out + unzip ugent2016.tds -d $out + + runHook postInstall + ''; + + dontFixup = true; + + meta = with pkgs.lib; { + description = "Styles for UGent"; + license = licenses.unfreeRedistributable; + maintainers = [ ]; + platforms = platforms.all; + }; + }); + in + { devShells.default = pkgs.devshell.mkShell { name = "PhD thesis"; packages = [ - pkgs.texlive.combined.scheme-full + (pkgs.texlive.combine { inherit (pkgs.texlive) scheme-full; inherit ugent2016; }) pkgs.nixpkgs-fmt ]; commands = [