\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{4sStylZ}
\pdfinfo{
  /Title (adelia-400-iws-l4g-editor.pdf)
  /Creator (Cheatography)
  /Author (4sStylZ)
  /Subject (Adelia-400 (IWS) L4G editor 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}{000000}
\definecolor{LightBackground}{HTML}{F7F7F7}
\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{Adelia-400 (IWS) L4G editor Cheat Sheet}}}} \\
    \normalsize{by \textcolor{DarkBackground}{4sStylZ} via \textcolor{DarkBackground}{\uline{cheatography.com/19725/cs/2694/}}}
\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}4sStylZ \\
  \uline{cheatography.com/4sstylz} \\
  \end{tabulary}
\vfill
\columnbreak
\begin{tabulary}{5.8cm}{L}
  \SetRowColor{FootBackground}
  \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}}  \\
   \vspace{-2pt}Published 15th October, 2014.\\
   Updated 21st December, 2016.\\
   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{4.13091 cm} x{0.84609 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{General}}  \tn
% Row 0
\SetRowColor{LightBackground}
{\bf{Aide sur une fonction}} & F1 \tn 
% Row Count 1 (+ 1)
% Row 1
\SetRowColor{white}
{\bf{Basculer entre les sources ouverts}} & \seqsplit{Ctrl+Tab} \tn 
% Row Count 3 (+ 2)
% Row 2
\SetRowColor{LightBackground}
{\bf{Compiler à partir de l'éditeur}} & \seqsplit{Ctrl+S} \tn 
% Row Count 5 (+ 2)
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{5.377cm}{x{3.63321 cm} x{1.34379 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Fichier}}  \tn
% Row 0
\SetRowColor{LightBackground}
Ouvrir & Ctrl+O \tn 
% Row Count 1 (+ 1)
% Row 1
\SetRowColor{white}
Nouveau & Ctrl+N \tn 
% Row Count 2 (+ 1)
% Row 2
\SetRowColor{LightBackground}
Fermer une fenêtre & Ctrl+F4 \tn 
% Row Count 3 (+ 1)
% Row 3
\SetRowColor{white}
Sauvegarder & F2 \tn 
% Row Count 4 (+ 1)
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{5.377cm}{x{3.93183 cm} p{1.04517 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Referentiel}}  \tn
% Row 0
\SetRowColor{LightBackground}
Fonctions & Ctrl+1 \tn 
% Row Count 1 (+ 1)
% Row 1
\SetRowColor{white}
Macro-instructions & Ctrl+2 \tn 
% Row Count 2 (+ 1)
% Row 2
\SetRowColor{LightBackground}
{\bf{Message d'erreur}} & Ctrl+3 \tn 
% Row Count 3 (+ 1)
% Row 3
\SetRowColor{white}
{\bf{Modèle logique}} & Ctrl+4 \tn 
% Row Count 4 (+ 1)
% Row 4
\SetRowColor{LightBackground}
Programmes & Ctrl+5 \tn 
% Row Count 5 (+ 1)
% Row 5
\SetRowColor{white}
{\bf{Règles de gestion}} & Ctrl+6 \tn 
% Row Count 6 (+ 1)
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{5.377cm}{x{3.53367 cm} p{1.44333 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Programme}}  \tn
% Row 0
\SetRowColor{LightBackground}
Transactions & Ctrl+N \tn 
% Row Count 1 (+ 1)
% Row 1
\SetRowColor{white}
Modèle logique & Ctrl+M \tn 
% Row Count 2 (+ 1)
% Row 2
\SetRowColor{LightBackground}
Variables & Ctrl+B \tn 
% Row Count 3 (+ 1)
% Row 3
\SetRowColor{white}
Vues & Ctrl+U \tn 
% Row Count 4 (+ 1)
% Row 4
\SetRowColor{LightBackground}
Vérifier & Ctrl+F \tn 
% Row Count 5 (+ 1)
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{5.377cm}{X}
\SetRowColor{DarkBackground}
\mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Insertion d'RG}}  \tn
\SetRowColor{LightBackground}
\mymulticolumn{1}{x{5.377cm}}{INSERER\_RG \textless{}nomRg\textgreater{}(\textless{}variable1\textgreater{};\textless{}variable2\textgreater{})} \tn 
\hhline{>{\arrayrulecolor{DarkBackground}}-}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{5.377cm}{x{2.88666 cm} x{2.09034 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Outils}}  \tn
% Row 0
\SetRowColor{LightBackground}
Indenter Selection & Ctrl+Maj+I \tn 
% Row Count 1 (+ 1)
% Row 1
\SetRowColor{white}
Indenter le source & Ctrl+Maj+S \tn 
% Row Count 2 (+ 1)
% Row 2
\SetRowColor{LightBackground}
Décalage droite & Ctrl + {\bf{+}} \tn 
% Row Count 3 (+ 1)
% Row 3
\SetRowColor{white}
Déclage gauche & Ctrl + {\bf{-}} \tn 
% Row Count 4 (+ 1)
% Row 4
\SetRowColor{LightBackground}
Commenter & Ctrl + * \tn 
% Row Count 5 (+ 1)
% Row 5
\SetRowColor{white}
Décommenter & Ctrl + / \tn 
% Row Count 6 (+ 1)
% Row 6
\SetRowColor{LightBackground}
Inverser la casse & Ctrl+Verr.Maj \tn 
% Row Count 7 (+ 1)
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{5.377cm}{x{3.88206 cm} x{1.09494 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Edition}}  \tn
% Row 0
\SetRowColor{LightBackground}
Annuler & Ctrl+Z \tn 
% Row Count 1 (+ 1)
% Row 1
\SetRowColor{white}
Refaire & Ctrl+Y \tn 
% Row Count 2 (+ 1)
% Row 2
\SetRowColor{LightBackground}
Couper & Ctrl+X \tn 
% Row Count 3 (+ 1)
% Row 3
\SetRowColor{white}
Copier & Ctrl+C \tn 
% Row Count 4 (+ 1)
% Row 4
\SetRowColor{LightBackground}
Coller & Ctrl+V \tn 
% Row Count 5 (+ 1)
% Row 5
\SetRowColor{white}
Tout sélectionner & Ctrl+a \tn 
% Row Count 6 (+ 1)
% Row 6
\SetRowColor{LightBackground}
Aller au début/à la fin du bloc & Ctrl+\textasciicircum{} \tn 
% Row Count 8 (+ 2)
% Row 7
\SetRowColor{white}
{\bf{Surligner les occurences du mot}} & \seqsplit{Ctrl+Maj+O} \tn 
% Row Count 10 (+ 2)
% Row 8
\SetRowColor{LightBackground}
{\bf{Rechercher}} & Ctrl+R \tn 
% Row Count 11 (+ 1)
% Row 9
\SetRowColor{white}
{\bf{Recherche suivante}} & F5 \tn 
% Row Count 12 (+ 1)
% Row 10
\SetRowColor{LightBackground}
{\bf{Recherche précédente}} & Ctrl+F5 \tn 
% Row Count 13 (+ 1)
% Row 11
\SetRowColor{white}
Erreur suivante & F8 \tn 
% Row Count 14 (+ 1)
% Row 12
\SetRowColor{LightBackground}
Erreur précédente & Ctrl+F8 \tn 
% Row Count 15 (+ 1)
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{5.377cm}{X}
\SetRowColor{DarkBackground}
\mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Obtention d'un rapport}}  \tn
\SetRowColor{white}
\mymulticolumn{1}{x{5.377cm}}{Pour obtenir un rapport complet du programme exploitable via bloc-note ou N++ :  \newline % Row Count 2 (+ 2)
Effectuez une vérification du programme et un clic droit sur la fenêtre de vérification puis "Sauvegarder le rapport".% Row Count 5 (+ 3)
} \tn 
\hhline{>{\arrayrulecolor{DarkBackground}}-}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{5.377cm}{x{1.21133 cm} p{0.4177 cm} x{1.12779 cm} x{1.42018 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{4}{x{5.377cm}}{\bf\textcolor{white}{Operateurs}}  \tn
% Row 0
\SetRowColor{LightBackground}
\seqsplit{Récupération} de l'heure courante & HEURE & HEURE WW\_EXMPL & Numérique de 14 positions (heure \& date) \tn 
% Row Count 4 (+ 4)
% Row 1
\SetRowColor{white}
Arrondi & H & \seqsplit{MONTANT\_TTC} H = \seqsplit{MONTANT\_HT} + \seqsplit{(MONTANT\_HT} * TVA) &  \tn 
% Row Count 9 (+ 5)
% Row 2
\SetRowColor{LightBackground}
Opérateur NON & NON & SI NON \seqsplit{(CL\_COD\_CLIENT\_COMMENCE\_PAR} 'HAR') &  \tn 
% Row Count 14 (+ 5)
\hhline{>{\arrayrulecolor{DarkBackground}}----}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{5.377cm}{x{1.24425 cm} x{3.73275 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Instructions de cinematique}}  \tn
% Row 0
\SetRowColor{LightBackground}
PRESENTER VUE & Lis la vue + Charge les zones fichiers dans les zones si cela abouti ou systématiquement si l'on utilise PRESENTER VUE *FORCE \tn 
% Row Count 5 (+ 5)
% Row 1
\SetRowColor{white}
RAPATRIER VUE & Permet de transférer les infos écrans de la cinématique dans les zones fichiers correspondantes \tn 
% Row Count 9 (+ 4)
% Row 2
\SetRowColor{LightBackground}
RANGER VUE & Créer ou Met à jour un fichier par rapport à la cinématique \tn 
% Row Count 12 (+ 3)
% Row 3
\SetRowColor{white}
PLACER & Lis l'enregistrement du fichier de la vue (Uniquement dans VALIDATION) \tn 
% Row Count 15 (+ 3)
% Row 4
\SetRowColor{LightBackground}
CLASSER & Créer ou Met à jour l'enregistrement de la vue par rapport à la cinématique. Doit être utilisé après placé (Uniquement dans VALIDATION) \tn 
% Row Count 20 (+ 5)
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\end{tabularx}
\par\addvspace{1.3em}


% That's all folks
\end{multicols*}

\end{document}