From 45de8092565c7dad945f80169aaa8883c9c2237f Mon Sep 17 00:00:00 2001 From: Soispha Date: Mon, 21 Aug 2023 01:22:57 +0200 Subject: Fix(latex): Remove state full chapter files --- latex/.envrc | 3 ++- latex/content/todo/chapter_01.tex | 4 ---- latex/flake.nix | 3 ++- latex/headers/preamble.tex | 9 ++++++++- latex/lpm.toml | 3 --- latex/main.tex | 13 ++++++------- 6 files changed, 18 insertions(+), 17 deletions(-) delete mode 100644 latex/content/todo/chapter_01.tex delete mode 100644 latex/lpm.toml (limited to 'latex') diff --git a/latex/.envrc b/latex/.envrc index 3550a30..1d383f2 100644 --- a/latex/.envrc +++ b/latex/.envrc @@ -1 +1,2 @@ -use flake +use flake | use nix +watch flake.nix diff --git a/latex/content/todo/chapter_01.tex b/latex/content/todo/chapter_01.tex deleted file mode 100644 index 8c3709d..0000000 --- a/latex/content/todo/chapter_01.tex +++ /dev/null @@ -1,4 +0,0 @@ -%! TEX root = ../main.tex -% LTeX: language=de-DE - -\chapter{TODO} diff --git a/latex/flake.nix b/latex/flake.nix index 22a4cdb..52f7353 100644 --- a/latex/flake.nix +++ b/latex/flake.nix @@ -67,7 +67,8 @@ # This version is set automatically on `cog bump --auto`; version = "v1.0.0"; # GUIDING VERSION STRING - texlive = pkgs.texlive.combined.scheme-medium; + # TODO reduce to the needed ones + texlive = pkgs.texlive.combined.scheme-full; in { packages.default = pkgs.stdenv.mkDerivation { pname = ""; # TODO diff --git a/latex/headers/preamble.tex b/latex/headers/preamble.tex index 78903ef..9620808 100644 --- a/latex/headers/preamble.tex +++ b/latex/headers/preamble.tex @@ -201,7 +201,14 @@ \newcommand\hdsolution[1]{L\"osung versteckt} }{% \declaretheorem[numbered=no, style=thmsolution, name=L\"osung]{replacementSolution} - \newenvironment{solution}[1][]{\vspace{-1em}\begin{replacementSolution}[#1]}{\end{replacementSolution}} + + \NewEnviron{solution}[1][]{ + \vspace{-1em} + \begin{replacementSolution}[#1] + \ + \BODY + \end{replacementSolution} + } \newcommand\hdsolution[1]{#1} } \makeatother diff --git a/latex/lpm.toml b/latex/lpm.toml deleted file mode 100644 index c0925ff..0000000 --- a/latex/lpm.toml +++ /dev/null @@ -1,3 +0,0 @@ -[last_chapter] -user_name = "todo" -number = 1 diff --git a/latex/main.tex b/latex/main.tex index 2bb307d..8130689 100644 --- a/latex/main.tex +++ b/latex/main.tex @@ -5,18 +5,17 @@ \input{headers/preamble_local.tex} -\title{\textbf{Titel}} -\author{Name\thanks{Beispiel}} -\authors{Name} -\years{2022 - 2023} -\date{\DTMDate{2002-12-4}} +\title{\textbf{TODO}} +\author{name} +\authors{name\inst} +\years{2023} +\date{\DTMToday} -\includeonly{content/todo/chapter_01} +\includeonly{} \begin{document} \input{content/static/title} - \include{content/todo/chapter_01} % NEXT_CHAPTER \printbibliography\relax -- cgit 1.4.1