aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-09-26 15:50:58 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-09-26 15:50:58 +0200
commit6329755a372d90985bda1cd164fae8d91d4a60c6 (patch)
tree6d774ae20df9a35a3e98a6ca3e1c692456a8c31c
parent7a385155a6b89077ec53b25efea10aa77b0a746d (diff)
remove meta.tex and just set defaults directly in projdoc.cls
-rw-r--r--example.tex1
-rw-r--r--meta.tex9
-rw-r--r--plan.tex1
-rw-r--r--projdoc.cls15
-rw-r--r--requirements.tex1
-rw-r--r--research.tex1
-rw-r--r--timerep.tex1
7 files changed, 13 insertions, 16 deletions
diff --git a/example.tex b/example.tex
index 24c525b..9f36f59 100644
--- a/example.tex
+++ b/example.tex
@@ -1,7 +1,6 @@
\documentclass{projdoc}
% if the document compiles too slow (likely due to many/large images), try compiling
% with the [draft] option. this replaces all images with placeholders.
-\input{meta.tex}
\title{Example Document}
diff --git a/meta.tex b/meta.tex
deleted file mode 100644
index db7c7b1..0000000
--- a/meta.tex
+++ /dev/null
@@ -1,9 +0,0 @@
-\organization{Avans University of Applied Sciences}
-\project{Project cr\^epe}
-\author{%
- Loek Le Blansch\and%
- Wouter Boerenkamps\and%
- Jaro Rutjes\and%
- Max Smits\and%
- Niels Stunnebrink%
-}
diff --git a/plan.tex b/plan.tex
index c439aa7..a67598e 100644
--- a/plan.tex
+++ b/plan.tex
@@ -1,5 +1,4 @@
\documentclass{projdoc}
-\input{meta.tex}
\title{Project Plan}
diff --git a/projdoc.cls b/projdoc.cls
index 16b1790..8a2c05d 100644
--- a/projdoc.cls
+++ b/projdoc.cls
@@ -1,6 +1,19 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{projdoc}[2024-09-03 class projdoc]
+% project defaults
+\makeatletter
+\def\@project{Project cr\^epe}
+\def\@organization{Avans University of Applied Sciences}
+\def\@author{%
+ Loek Le Blansch\and%
+ Wouter Boerenkamps\and%
+ Jaro Rutjes\and%
+ Max Smits\and%
+ Niels Stunnebrink%
+}
+\makeatother
+
% based on article
\LoadClass{article}
@@ -160,9 +173,7 @@
% \maketitle format
\makeatletter
-\let\@project\relax
\def\project#1{\def\@project{#1}}
-\let\@organization\relax
\def\organization#1{\def\@organization{#1}}
\def\@maketitle{%
\centering%
diff --git a/requirements.tex b/requirements.tex
index be0e103..6b4a87a 100644
--- a/requirements.tex
+++ b/requirements.tex
@@ -1,5 +1,4 @@
\documentclass{projdoc}
-\input{meta.tex}
\makeatletter
\projdoc@description@leftmargin=2ex
diff --git a/research.tex b/research.tex
index 228f3ac..5aa7c4f 100644
--- a/research.tex
+++ b/research.tex
@@ -1,5 +1,4 @@
\documentclass{projdoc}
-\input{meta.tex}
\title{Research document}
diff --git a/timerep.tex b/timerep.tex
index 7590217..34a30ea 100644
--- a/timerep.tex
+++ b/timerep.tex
@@ -1,5 +1,4 @@
\documentclass{projdoc}
-\input{meta.tex}
\title{Time Report}