From 3a92049e376b98ff40562f7d923770e5112ae9bf Mon Sep 17 00:00:00 2001
From: John Swinbank <swinbank@astron.nl>
Date: Sun, 15 Nov 2020 17:36:11 +0100
Subject: [PATCH] Automatically calculate table position

---
 texmf/tex/latex/astron/astron.cls | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/texmf/tex/latex/astron/astron.cls b/texmf/tex/latex/astron/astron.cls
index fb14c74..aee573e 100644
--- a/texmf/tex/latex/astron/astron.cls
+++ b/texmf/tex/latex/astron/astron.cls
@@ -156,6 +156,8 @@
 \vspace{4cm}
 \end{center}
 
+\newlength{\mylength}
+\settoheight{\mylength}{%
 \begin{tabularx}{\textwidth}{|p{0.35\textwidth}|p{0.35\textwidth}|X|}
 \cline{2-3} \cline{3-3}
 \multicolumn{1}{c|}{} & \textbf{\footnotesize{}Organisatie / Organization} & \textbf{\footnotesize{}Datum / Date}\tabularnewline
@@ -174,6 +176,28 @@
 \textbf{\footnotesize{}Handtekening / Signature:\vspace{1cm}} & & \tabularnewline
 \hline
 \end{tabularx}
+}
+
+\begin{textblock*}{1\textwidth}(2cm,\dimexpr25.2cm-2\mylength+\fboxsep)
+\begin{tabularx}{\textwidth}{|p{0.35\textwidth}|p{0.35\textwidth}|X|}
+\cline{2-3} \cline{3-3}
+\multicolumn{1}{c|}{} & \textbf{\footnotesize{}Organisatie / Organization} & \textbf{\footnotesize{}Datum / Date}\tabularnewline
+\hline
+\textbf{\footnotesize{}Auteur(s) / Author(s):\vspace{0.2cm}} & & \tabularnewline
+\docAuthors
+\hline
+\textbf{\footnotesize{}Controle / Checked:\vspace{0.2cm}} & & \tabularnewline
+\docCheckers
+\hline
+\textbf{\footnotesize{}Goedkeuring / Approval:\vspace{0.2cm}} & & \tabularnewline
+\docApprovers
+\hline
+\textbf{\footnotesize{}Autorisatie / Authorization:} & & \tabularnewline
+\docAuthorizers
+\textbf{\footnotesize{}Handtekening / Signature:\vspace{1cm}} & & \tabularnewline
+\hline
+\end{tabularx}
+\end{textblock*}
 
 
 \begin{textblock*}{1\textwidth}(2cm,25.2cm)
-- 
GitLab