\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{andi2ninja} \pdfinfo{ /Title (vagt-kursus.pdf) /Creator (Cheatography) /Author (andi2ninja) /Subject (Vagt Kursus Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{A3A3A3} \definecolor{LightBackground}{HTML}{F3F3F3} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{Vagt Kursus Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{andi2ninja} via \textcolor{DarkBackground}{\uline{cheatography.com/67402/cs/32092/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}andi2ninja \\ \uline{cheatography.com/andi2ninja} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Not Yet Published.\\ Updated 19th May, 2022.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{3} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Grundloven}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Grundloven kom til d. 5 juni 1849 \newline % Row Count 1 (+ 1) {\bf{§1}} - Denne grundlov gælder for alle dele af Danmarks Rige. \newline % Row Count 3 (+ 2) {\bf{§3}} - Magtens 3 delling \newline % Row Count 4 (+ 1) Den lovgivende magt er hos kongen og folketinget i forening. Den udøvende magt er hos kongen. Den dømmende magt er hos domstolene. \newline % Row Count 7 (+ 3) \textasciicircum{}Lovgivende : FL - Folketinget\textasciicircum{} \newline % Row Count 8 (+ 1) \textasciicircum{}Dømmende : DD - Dommeren Dømmer\textasciicircum{} \newline % Row Count 9 (+ 1) \textasciicircum{}Udøvende : bUR - Bekendtgørelsen udøvende regering\textasciicircum{} \newline % Row Count 11 (+ 2) {\bf{§71}} \newline % Row Count 12 (+ 1) {\bf{ {\emph{Stk.1. }} }} Den personlige frihed er ukrænkelig. \newline % Row Count 14 (+ 2) {\bf{ {\emph{Stk. 2.}} }} Frihedsberøvelse kan kun finde sted med hjemmel i loven. \newline % Row Count 16 (+ 2) {\bf{ {\emph{Stk. 3.}} }} Enhver, der anholdes, skal inden 24 timer stilles for en dommer. \newline % Row Count 18 (+ 2) {\bf{§72}} - Boligen er ukrænkelig. \newline % Row Count 19 (+ 1) Husundersøgelse, beslaglæggelse og undersøgelse af breve og andre papirer samt brud på post-, telegraf- og telefonhemmeligheden må, hvor ingen lov hjemler en særegen undtagelse, alene ske efter en retskendelse. \newline % Row Count 24 (+ 5) {\bf{§73}} \newline % Row Count 25 (+ 1) {\emph{ {\bf{Stk. 1.}} }} Ejendomsretten er ukrænkelig. \newline % Row Count 26 (+ 1) {\bf{§77}} - Ytringsfrihed \newline % Row Count 27 (+ 1) Enhver er berettiget til på tryk, i skrift og tale at offentliggøre sine tanker, dog under ansvar for domstolene. \newline % Row Count 30 (+ 3) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Grundloven (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{§78}} \newline % Row Count 1 (+ 1) {\emph{ {\bf{Stk. 1.}} }} Borgerne har ret til uden forudgående tilladelse at danne foreninger i ethvert lovligt øjemed. \newline % Row Count 4 (+ 3) {\bf{ §79 }} - Forsamlingsfrihed \newline % Row Count 5 (+ 1) Borgerne har ret til uden forudgående tilladelse at samle sig ubevæbnede. Offentlige forsamlinger har politiet ret til at overvære. Forsamlinger under åben himmel kan forbydes, når der af dem kan befrygtes fare for den offentlige fred. \newline % Row Count 10 (+ 5) {\bf{§81 }} - Værnepligt% Row Count 11 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Vagtens Arbejdsgrundlag}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Grundlaget} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Kontrakten} \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Instruktionen} \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Forholdsordren} \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Rondebeskrivelsen} \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Systemet - "Dallasbrik"} \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Rapportering} \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Signalementer} \tn % Row Count 8 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.4885 cm} x{2.4885 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Straffeattester}} \tn % Row 0 \SetRowColor{LightBackground} Private & 5 til 2år \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Offentlige & 10 år \tn % Row Count 2 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} x{4.4793 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Beskrivelse af køretøjer}} \tn % Row 0 \SetRowColor{LightBackground} F & Fabrikat \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} A & Alder \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} K & Kulør \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} T & Type \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} O & Og \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} R & Registreringsnummer \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} S & Særlig kendetegn \tn % Row Count 7 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} x{4.4793 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Vagtens 6 hovedarbejdsopgaver}} \tn % Row 0 \SetRowColor{LightBackground} B & Brand \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} K & Kriminalitet \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} T & Teknik \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} E & Energy \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} V & Vand \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} S & Service \tn % Row Count 6 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{Forebygge - Betjene - Forhindre} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Straffeloven}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{§13 - Nødværge}} \newline % Row Count 1 (+ 1) Handlinger foretagne i nødværge er straffri, for så vidt de har været nødvendige for at modstå eller afværge et påbegyndt eller overhængende uretmæssigt angreb og ikke åbenbart går ud over, hvad der under hensyn til angrebets farlighed, angriberens person og det angrebne retsgodes betydning er forsvarligt. \newline % Row Count 8 (+ 7) {\emph{Stk. 2.}} Overskrider nogen grænserne for lovligt nødværge, bliver han dog straffri, hvis overskridelsen er rimeligt begrundet i den ved angrebet fremkaldte skræk eller ophidselse. \newline % Row Count 12 (+ 4) {\emph{Stk. 3.}} Tilsvarende regler finder anvendelse på handlinger, som er nødvendige for på retmæssig måde at skaffe lovlige påbud adlydt, iværksætte en lovlig pågribelse eller hindre en fanges eller tvangsanbragt persons rømning. \newline % Row Count 17 (+ 5) {\bf{§14 - Nødret}} \newline % Row Count 18 (+ 1) En handling, der ellers ville være strafbar, straffes ikke, når den var nødvendig til afværgelse af truende skade på person eller gods, og lovovertrædelsen måtte anses for at være af forholdsvis underordnet betydning.% Row Count 23 (+ 5) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}