aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-09-19 17:27:21 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-09-19 17:27:21 +0200
commitb5ad864b5f020a73e4e0a068302cd22209f01fbb (patch)
tree71ef73fbab1f3b529e18eca7e6080cb273430db4
parent6655651c11bafde04122a451f35ed4bb9ed1808f (diff)
remove version from documents
-rw-r--r--contributing.md4
-rw-r--r--latexmkrc2
-rw-r--r--meta.tex1
-rw-r--r--plan.tex8
-rw-r--r--projdoc.cls11
5 files changed, 9 insertions, 17 deletions
diff --git a/contributing.md b/contributing.md
index c11c834..db58388 100644
--- a/contributing.md
+++ b/contributing.md
@@ -2,10 +2,6 @@ This document is an extension of the [crêpe engine contribution
guidelines][crepe-engine-contrib]. Rules in this document override those in the
other document.
-# Versioning
-
-- TODO: discuss w/ group
-
# Code style
- Indent using tabs
diff --git a/latexmkrc b/latexmkrc
index 880f859..d2c3cdc 100644
--- a/latexmkrc
+++ b/latexmkrc
@@ -2,7 +2,7 @@
use File::Spec::Functions;
-$pdflatex = "xelatex --interaction=nonstopmode %O %S";
+$pdflatex = "xelatex --interaction=nonstopmode --shell-escape %O %S";
$pdf_mode = 1;
$dvi_mode = 0;
$postscript_mode = 0;
diff --git a/meta.tex b/meta.tex
index cad4b81..db7c7b1 100644
--- a/meta.tex
+++ b/meta.tex
@@ -1,6 +1,5 @@
\organization{Avans University of Applied Sciences}
\project{Project cr\^epe}
-\version{0.0}
\author{%
Loek Le Blansch\and%
Wouter Boerenkamps\and%
diff --git a/plan.tex b/plan.tex
index 076ce11..6ebd73a 100644
--- a/plan.tex
+++ b/plan.tex
@@ -1,15 +1,7 @@
\documentclass{projdoc}
\input{meta.tex}
-% @Jaro: Zie hieronder
-% Version 0.0 seems not right
-% I'm also missing a 'version table'
-% Shall we use this version system?:
-% Version numbers after the comma indicate an interim version and version numbers
-% before the comma indicate versions ready for publication
-
\title{Project Plan}
-\version{0.1}
\begin{document}
\tablestables
diff --git a/projdoc.cls b/projdoc.cls
index fe6317b..ee94835 100644
--- a/projdoc.cls
+++ b/projdoc.cls
@@ -164,8 +164,6 @@
\def\project#1{\def\@project{#1}}
\let\@organization\relax
\def\organization#1{\def\@organization{#1}}
-\let\@version\relax
-\def\version#1{\def\@version{#1}}
\def\@maketitle{%
\centering%
\parskip=0pt%
@@ -195,8 +193,15 @@
}%
\vfill\flushright%
\par{%
- \par{\strut{}Version \@version\strut}%
\par{\strut\@date\strut}%
+ \begingroup%
+ \endlinechar=\m@ne\everyeof{\noexpand}%
+ \edef\x{%
+ \endgroup%
+ \def\noexpand\commit{\@@input|"git rev-parse --short HEAD" }%
+ }%
+ \x%
+ \par{\strut\footnotesize({\ttfamily\commit})\strut}%
}%
\par\vspace*{2in}%
}