Use colors in table

This commit is contained in:
Florian Hoss 2022-06-27 19:27:31 +02:00
parent 38a9de9778
commit ceac086c1c
2 changed files with 23 additions and 18 deletions

View file

@ -20,6 +20,7 @@
\usepackage[utf8]{inputenc} \usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel} \usepackage[ngerman]{babel}
\usepackage[T1]{fontenc} \usepackage[T1]{fontenc}
\usepackage[table]{xcolor}
\usepackage{forest} \usepackage{forest}
\usepackage{rotating} \usepackage{rotating}
@ -46,15 +47,9 @@
\usepackage{geometry} \usepackage{geometry}
\geometry{a4paper, top=2.5cm, left=2.5cm, right=2.5cm, bottom=2.5cm} \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} \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{adjustbox}
\usepackage{fancyvrb,amsmath} \usepackage{fancyvrb,amsmath}
\RecustomVerbatimCommand{\VerbatimInput}{VerbatimInput}% \RecustomVerbatimCommand{\VerbatimInput}{VerbatimInput}%
@ -64,12 +59,6 @@
commentchar=* % comment character commentchar=* % comment character
} }
\lstset{language=Go,
basicstyle=\ttfamily\scriptsize,
keywordstyle=\color{blue}\ttfamily,
stringstyle=\color{red}\ttfamily,
commentstyle=\color{green}\ttfamily}
\setuptoc{toc}{totoc} \setuptoc{toc}{totoc}
\usepackage[ \usepackage[

View file

@ -3,20 +3,36 @@
\begin{table}[!ht] \begin{table}[!ht]
\begin{adjustbox}{width=0.95\textwidth} \begin{adjustbox}{width=0.95\textwidth}
\centering \centering
\begin{tabular}{l|l|l} \begin{tabular}{|l|l|l|}
\hline
\textbf{Impact Level} & \textbf{Dimension 1} & \textbf{Dimension 2} \\ \textbf{Impact Level} & \textbf{Dimension 1} & \textbf{Dimension 2} \\
\hline \hline
& & \\ & & \\
\hline
\end{tabular} \end{tabular}
\begin{tabular}{l|l|l} \begin{tabular}{|l|l|l|}
\hline
\textbf{Class} & \textbf{Time Period} \\ \textbf{Class} & \textbf{Time Period} \\
\hline \hline
& \\ & \\
\hline
\end{tabular} \end{tabular}
\begin{tabular}{l|l|l} \begin{tabular}{|l|l|l|}
\hline
\textbf{Risk Level} & \textbf{Description} \\ \textbf{Risk Level} & \textbf{Description} \\
\hline \hline
\rowcolor{pink}
Lala & \\
\hline
\rowcolor{orange}
& \\ & \\
\hline
\rowcolor{yellow}
& \\
\hline
\rowcolor{lime}
& \\
\hline
\end{tabular} \end{tabular}
\end{adjustbox} \end{adjustbox}
\caption{Impact, Occurrence and Defined action levels} \caption{Impact, Occurrence and Defined action levels}
@ -30,7 +46,7 @@
& \multicolumn{5}{l}{\textbf{Consequences}} \\ & \multicolumn{5}{l}{\textbf{Consequences}} \\
\textbf{Likelihood} & \textbf{Insignificant} & \textbf{Minor} & \textbf{Moderate} & \textbf{Critical} & \textbf{Catastrophic} \\ \textbf{Likelihood} & \textbf{Insignificant} & \textbf{Minor} & \textbf{Moderate} & \textbf{Critical} & \textbf{Catastrophic} \\
\hline \hline
& & & & & \\ & & & & \cellcolor{orange} & \\
\end{tabular} \end{tabular}
\end{adjustbox} \end{adjustbox}
\caption{Defined levels mapped to action levels} \caption{Defined levels mapped to action levels}