\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{Oscar (OJHerr)} \pdfinfo{ /Title (grundlegende-deutsche-verben-prateritum.pdf) /Creator (Cheatography) /Author (Oscar (OJHerr)) /Subject (Grundlegende deutsche Verben - Pr{\"a}teritum 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}{7A00A6} \definecolor{LightBackground}{HTML}{F6EFF9} \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{Grundlegende deutsche Verben - Pr{\"a}teritum Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{Oscar (OJHerr)} via \textcolor{DarkBackground}{\uline{cheatography.com/33928/cs/10625/}}} \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}Oscar (OJHerr) \\ \uline{cheatography.com/ojherr} \\ \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 27th January, 2017.\\ 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*}{4} \begin{tabularx}{3.833cm}{x{1.7165 cm} x{1.7165 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{sein (to be)}} \tn % Row 0 \SetRowColor{LightBackground} ich war & wir waren \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} du warst & ihr wart \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} er/sie/es war & Sie/sie waren \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.78516 cm} x{1.64784 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{haben (to have)}} \tn % Row 0 \SetRowColor{LightBackground} ich hatte & wir hatten \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} du hattest & ihr hattet \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} er/sie/es hatte & Sie/sie hatten \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.78516 cm} x{1.64784 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{machen (to make)}} \tn % Row 0 \SetRowColor{LightBackground} ich machte & wir machten \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} du machtest & ihr machtet \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} er/sie/es machte & Sie/sie machten \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.75083 cm} x{1.68217 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{arbeiten (to work)}} \tn % Row 0 \SetRowColor{LightBackground} ich arbeitete & wir arbeiteten \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} du arbeitetest & ihr arbeitetet \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} er/sie/es arbeitete & Sie/sie arbeiteten \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.7165 cm} x{1.7165 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{gehen (to go)}} \tn % Row 0 \SetRowColor{LightBackground} ich ging & wir gingen \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} du gingst & ihr gingt \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} er/sie/es ging & Sie/sie gingen \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.7165 cm} x{1.7165 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{laufen (to run)}} \tn % Row 0 \SetRowColor{LightBackground} ich lief & wir liefen \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} du liefst & ihr lieft \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} er/sie/es lief & Sie/sie liefen \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.7165 cm} x{1.7165 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{sprechen (to speak)}} \tn % Row 0 \SetRowColor{LightBackground} ich sprach & wir sprachen \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} du sprachst & ihr spracht \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} er/sie/es sprach & Sie/sie sprachen \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.7165 cm} x{1.7165 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{kommen (to come)}} \tn % Row 0 \SetRowColor{LightBackground} ich kam & wir kamen \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} du kamst & ihr kamt \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} er/sie/es kam & Sie/sie kamen \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.78516 cm} x{1.64784 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{fragen (to ask)}} \tn % Row 0 \SetRowColor{LightBackground} ich fragte & wir fragten \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} du fragtest & ihr fragtet \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} er/sie/es fragte & Sie/sie fragten \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.7165 cm} x{1.7165 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{aussehen (to appear, look a certain way)}} \tn % Row 0 \SetRowColor{LightBackground} ich sah aus & wir sahen aus \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} du sahst aus & ihr saht aus \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} er/sie/es sah aus & Sie/sie sahen aus \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.75083 cm} x{1.68217 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{werden (will)}} \tn % Row 0 \SetRowColor{LightBackground} ich wurde/ward & wir wurden/warden \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} du wurdest/wardest & ihr wurdet/wardet \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} er wurde/ward & sie wurden/warden \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.78516 cm} x{1.64784 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{lernen (to learn)}} \tn % Row 0 \SetRowColor{LightBackground} ich lernte & wir lernten \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} du lerntest & ihr lerntet \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} er/sie/es lernte & Sie/sie lernten \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.7165 cm} x{1.7165 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{bestehen (to exist, insist, pass a test)}} \tn % Row 0 \SetRowColor{LightBackground} ich bestand & wir bestanden \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} du bestandest & ihr bestandet \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} er/sie/es bestand & Sie/sie bestanden \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.7165 cm} x{1.7165 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{beginnen (to begin)}} \tn % Row 0 \SetRowColor{LightBackground} ich begann & wir begannen \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} du begannst & ihr begannt \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} er/sie/es begann & Sie/sie begannen \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.75083 cm} x{1.68217 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{erkl{\"a}ren (to explain)}} \tn % Row 0 \SetRowColor{LightBackground} ich erkl{\"a}rte & wir erkl{\"a}rten \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} du erkl{\"a}rtest & ihr erkl{\"a}rtet \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} er/sie/es erkl{\"a}rte & Sie/sie erkl{\"a}rten \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.81949 cm} x{1.61351 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{geh{\"o}ren (to belong)}} \tn % Row 0 \SetRowColor{LightBackground} ich geh{\"o}rte & wir geh{\"o}rten \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} du geh{\"o}rtest & ihr geh{\"o}rtet \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} er/sie/es geh{\"o}rtet & Sie/sie geh{\"o}rtet \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{x{1.78516 cm} x{1.64784 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{3.833cm}}{\bf\textcolor{white}{suchen (to look for, search)}} \tn % Row 0 \SetRowColor{LightBackground} ich suchte & wir suchten \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} du suchstest & ihr suchtet \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} er/sie/es suchte & Sie/sie suchten \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}