From ceac086c1cdfca773c94724a749042429751f84b Mon Sep 17 00:00:00 2001 From: Florian Hoss Date: Mon, 27 Jun 2022 19:27:31 +0200 Subject: [PATCH] Use colors in table --- Lab05/documentation/main.tex | 15 ++------------- Lab05/documentation/part4/part4.tex | 26 +++++++++++++++++++++----- 2 files changed, 23 insertions(+), 18 deletions(-) diff --git a/Lab05/documentation/main.tex b/Lab05/documentation/main.tex index cab3ca2..89657c6 100644 --- a/Lab05/documentation/main.tex +++ b/Lab05/documentation/main.tex @@ -20,6 +20,7 @@ \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage[T1]{fontenc} +\usepackage[table]{xcolor} \usepackage{forest} \usepackage{rotating} @@ -46,15 +47,9 @@ \usepackage{geometry} \geometry{a4paper, top=2.5cm, left=2.5cm, right=2.5cm, bottom=2.5cm} -\usepackage{float,listings,xcolor,csquotes,microtype,scrlayer-scrpage,etoolbox} +\usepackage{float,listings,csquotes,microtype,scrlayer-scrpage,etoolbox} \usepackage[official]{eurosym} -\definecolor{codegreen}{rgb}{0,0.6,0} -\definecolor{codegray}{rgb}{0.5,0.5,0.5} -\definecolor{codepurple}{rgb}{0.58,0,0.82} -\definecolor{backcolour}{rgb}{0.95,0.95,0.92} -\definecolor{weborange}{rgb}{1,0.65,0} - \usepackage{adjustbox} \usepackage{fancyvrb,amsmath} \RecustomVerbatimCommand{\VerbatimInput}{VerbatimInput}% @@ -64,12 +59,6 @@ commentchar=* % comment character } -\lstset{language=Go, - basicstyle=\ttfamily\scriptsize, - keywordstyle=\color{blue}\ttfamily, - stringstyle=\color{red}\ttfamily, - commentstyle=\color{green}\ttfamily} - \setuptoc{toc}{totoc} \usepackage[ diff --git a/Lab05/documentation/part4/part4.tex b/Lab05/documentation/part4/part4.tex index ae8d9ba..58160e8 100644 --- a/Lab05/documentation/part4/part4.tex +++ b/Lab05/documentation/part4/part4.tex @@ -3,20 +3,36 @@ \begin{table}[!ht] \begin{adjustbox}{width=0.95\textwidth} \centering -\begin{tabular}{l|l|l} +\begin{tabular}{|l|l|l|} + \hline \textbf{Impact Level} & \textbf{Dimension 1} & \textbf{Dimension 2} \\ \hline & & \\ + \hline \end{tabular} -\begin{tabular}{l|l|l} +\begin{tabular}{|l|l|l|} + \hline \textbf{Class} & \textbf{Time Period} \\ \hline & \\ + \hline \end{tabular} -\begin{tabular}{l|l|l} +\begin{tabular}{|l|l|l|} + \hline \textbf{Risk Level} & \textbf{Description} \\ \hline - & \\ + \rowcolor{pink} + Lala & \\ + \hline + \rowcolor{orange} + & \\ + \hline + \rowcolor{yellow} + & \\ + \hline + \rowcolor{lime} + & \\ + \hline \end{tabular} \end{adjustbox} \caption{Impact, Occurrence and Defined action levels} @@ -30,7 +46,7 @@ & \multicolumn{5}{l}{\textbf{Consequences}} \\ \textbf{Likelihood} & \textbf{Insignificant} & \textbf{Minor} & \textbf{Moderate} & \textbf{Critical} & \textbf{Catastrophic} \\ \hline - & & & & & \\ + & & & & \cellcolor{orange} & \\ \end{tabular} \end{adjustbox} \caption{Defined levels mapped to action levels}