about summary refs log tree commit diff stats
path: root/latex
diff options
context:
space:
mode:
Diffstat (limited to 'latex')
-rw-r--r--latex/.envrc3
-rw-r--r--latex/content/todo/chapter_01.tex4
-rw-r--r--latex/flake.nix3
-rw-r--r--latex/headers/preamble.tex9
-rw-r--r--latex/lpm.toml3
-rw-r--r--latex/main.tex13
6 files changed, 18 insertions, 17 deletions
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