From 015e7dcdf03881c59b60ee16f714c6f549b37c9a Mon Sep 17 00:00:00 2001 From: Julius Riegel Date: Wed, 17 Jul 2019 11:33:02 +0200 Subject: [PATCH] Added a key-value table environment --- lib/environments.tex | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lib/environments.tex b/lib/environments.tex index 9c3bd98..e53f18d 100644 --- a/lib/environments.tex +++ b/lib/environments.tex @@ -1,3 +1,5 @@ + +% Requirements table \newenvironment{reqtable}{ \begin{tabular}{| p{0.05\linewidth} | p{0.35\linewidth} | p{0.5\linewidth} |} \hline @@ -6,4 +8,18 @@ }{ \hline \end{tabular} +} + +% table listing keys with values/descriptions +% parameters: +% 1 - the column name of the key +% 2 - the column name of the description/value +\newenvironment{keyvaluetable}[2]{ + \begin{tabular}{| p{0.35\linewidth} | p{0.5\linewidth} |} + \hline + \rowcolor{zcgray} + \textbf{#1} & \textbf{#2}\\ \hline +}{ + \hline +\end{tabular} } \ No newline at end of file