\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{RainyMoons (RainyMoons)}
\pdfinfo{
  /Title (the-warsaw-pact.pdf)
  /Creator (Cheatography)
  /Author (RainyMoons (RainyMoons))
  /Subject (The Warsaw Pact 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}{0FCC8C}
\definecolor{LightBackground}{HTML}{F0FBF7}
\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{The Warsaw Pact Cheat Sheet}}}} \\
    \normalsize{by \textcolor{DarkBackground}{RainyMoons (RainyMoons)} via \textcolor{DarkBackground}{\uline{cheatography.com/153402/cs/44110/}}}
\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}RainyMoons (RainyMoons) \\
  \uline{cheatography.com/rainymoons} \\
  \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 15th August, 2024.\\
   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}{What was the Warsaw Pact}}  \tn
% Row 0
\SetRowColor{LightBackground}
\mymulticolumn{1}{x{5.377cm}}{The Warsaw Pact, officially known as the "Treaty of Friendship, Cooperation, and Mutual Assistance," was a military alliance of communist nations in Eastern Europe} \tn 
% Row Count 4 (+ 4)
% Row 1
\SetRowColor{white}
\mymulticolumn{1}{x{5.377cm}}{Formed in 1955 as a counterbalance to NATO (North Atlantic Treaty Organization), it was a key element of the Cold War geopolitical landscape} \tn 
% Row Count 7 (+ 3)
\hhline{>{\arrayrulecolor{DarkBackground}}-}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{5.377cm}{x{2.18988 cm} x{2.78712 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Historical Context}}  \tn
% Row 0
\SetRowColor{LightBackground}
{\bf{Post WWII Division of Europe}} & After World War II, Europe was divided into Western and Eastern blocs, controlled by the United States and the Soviet Union, respectively \tn 
% Row Count 7 (+ 7)
% Row 1
\SetRowColor{white}
 & The "Iron Curtain" metaphorically represented the division between the capitalist West and the communist East \tn 
% Row Count 12 (+ 5)
% Row 2
\SetRowColor{LightBackground}
{\bf{Formation of NATO (1949)}} & NATO was formed by Western nations as a collective defense alliance against the perceived threat of Soviet expansion \tn 
% Row Count 18 (+ 6)
% Row 3
\SetRowColor{white}
 & This led to heightened tensions and the militarization of Europe \tn 
% Row Count 21 (+ 3)
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{5.377cm}{x{1.74195 cm} x{3.23505 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Creation of the Warsaw Pact}}  \tn
% Row 0
\SetRowColor{LightBackground}
{\bf{Formation (1955)}} & The Warsaw Pact was signed on May 14, 1955, in Warsaw, Poland \tn 
% Row Count 3 (+ 3)
% Row 1
\SetRowColor{white}
 & The founding members included the Soviet Union, Albania, Bulgaria, Czechoslovakia, East Germany, Hungary, Poland, and Romania \tn 
% Row Count 8 (+ 5)
% Row 2
\SetRowColor{LightBackground}
 & Albania later withdrew from the pact in 1968 due to ideological differences \tn 
% Row Count 11 (+ 3)
% Row 3
\SetRowColor{white}
{\bf{Goals \& Objectives}} & The primary aim was to establish a unified military command under Soviet control \tn 
% Row Count 15 (+ 4)
% Row 4
\SetRowColor{LightBackground}
 & It was also meant to serve as a mechanism for the Soviet Union to maintain control over its satellite states in Eastern Europe \tn 
% Row Count 20 (+ 5)
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{5.377cm}{x{2.04057 cm} x{2.93643 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Structure \& Functioning}}  \tn
% Row 0
\SetRowColor{LightBackground}
{\bf{Unified Military Command}} & The Soviet Union held a dominant position in the Warsaw Pact, with Soviet generals often leading the alliance's military command \tn 
% Row Count 6 (+ 6)
% Row 1
\SetRowColor{white}
 & The pact members were obligated to support each other in case of an attack on any member state \tn 
% Row Count 11 (+ 5)
% Row 2
\SetRowColor{LightBackground}
{\bf{Political Control}} & The Warsaw Pact was not only a military alliance but also a tool for the Soviet Union to exert political influence over its allies \tn 
% Row Count 17 (+ 6)
% Row 3
\SetRowColor{white}
 & Member states had limited autonomy and were expected to follow the Soviet Union's lead in international affairs \tn 
% Row Count 22 (+ 5)
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{5.377cm}{x{2.23965 cm} x{2.73735 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Key Events Involving the Warsaw Pact}}  \tn
% Row 0
\SetRowColor{LightBackground}
{\bf{Hungarian Uprising (1956)}} & A nationwide revolt against the Soviet-imposed policies in Hungary was crushed by Warsaw Pact forces \tn 
% Row Count 5 (+ 5)
% Row 1
\SetRowColor{white}
 & This intervention demonstrated the Soviet Union's willingness to use military force to maintain control over its allies \tn 
% Row Count 11 (+ 6)
% Row 2
\SetRowColor{LightBackground}
{\bf{Prague Spring (1968)}} & A period of political liberalization in Czechoslovakia, known as the Prague Spring, was ended by a Warsaw Pact invasion led by the Soviet Union \tn 
% Row Count 18 (+ 7)
% Row 3
\SetRowColor{white}
 & This event further solidified the notion that the Warsaw Pact was a mechanism for Soviet domination rather than mutual defense \tn 
% Row Count 24 (+ 6)
% Row 4
\SetRowColor{LightBackground}
{\bf{Poland and Martial Law (1981)}} & The rise of the Solidarity movement in Poland led to fears of a Warsaw Pact intervention \tn 
% Row Count 28 (+ 4)
% Row 5
\SetRowColor{white}
 & Although direct military intervention was avoided, the Polish government imposed martial law under pressure from the Soviet Union \tn 
% Row Count 34 (+ 6)
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{5.377cm}{x{2.23965 cm} x{2.73735 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Decline and Dissolution}}  \tn
% Row 0
\SetRowColor{LightBackground}
{\bf{Gorbachev's Reforms}} & Mikhail Gorbachev's policies of Glasnost (openness) and Perestroika (restructuring) in the 1980s led to the loosening of Soviet control over Eastern Europe \tn 
% Row Count 8 (+ 8)
% Row 1
\SetRowColor{white}
 & These reforms encouraged movements for independence and democracy in Warsaw Pact countries \tn 
% Row Count 13 (+ 5)
% Row 2
\SetRowColor{LightBackground}
{\bf{Collapse of Communist Regimes}} & The fall of the Berlin Wall in 1989 and the subsequent collapse of communist governments across Eastern Europe marked the decline of the Warsaw Pact \tn 
% Row Count 20 (+ 7)
% Row 3
\SetRowColor{white}
 & The alliance became increasingly irrelevant as former member states sought closer ties with the West \tn 
% Row Count 25 (+ 5)
% Row 4
\SetRowColor{LightBackground}
{\bf{Official Dissolution (1991)}} & The Warsaw Pact was officially dissolved on July 1, 1991, after the collapse of the Soviet Union \tn 
% Row Count 30 (+ 5)
\end{tabularx}
\par\addvspace{1.3em}

\vfill
\columnbreak
\begin{tabularx}{5.377cm}{x{2.23965 cm} x{2.73735 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Decline and Dissolution (cont)}}  \tn
% Row 5
\SetRowColor{LightBackground}
 & Many former Warsaw Pact members later joined NATO, symbolizing a significant shift in European geopolitics \tn 
% Row Count 5 (+ 5)
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{5.377cm}{x{1.9908 cm} x{2.9862 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Legacy and Impact}}  \tn
% Row 0
\SetRowColor{LightBackground}
{\bf{Impact on the Cold War}} & The Warsaw Pact played a crucial role in maintaining the division of Europe and sustaining the Cold War's bipolar world order \tn 
% Row Count 6 (+ 6)
% Row 1
\SetRowColor{white}
{\bf{Human Rights Violations}} & The use of Warsaw Pact forces to suppress uprisings in member states led to widespread human rights abuses and resentment against Soviet domination \tn 
% Row Count 13 (+ 7)
% Row 2
\SetRowColor{LightBackground}
{\bf{Post-Cold War Europe}} & The dissolution of the Warsaw Pact contributed to the end of the Cold War and the eventual reunification of Europe \tn 
% Row Count 18 (+ 5)
% Row 3
\SetRowColor{white}
 & The legacy of the pact still influences relations between Russia and the former Eastern Bloc countries \tn 
% Row Count 23 (+ 5)
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{5.377cm}{x{2.33919 cm} x{2.63781 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Conclusion}}  \tn
% Row 0
\SetRowColor{LightBackground}
{\bf{Significance of the Warsaw Pact}} & The Warsaw Pact was a key instrument of Soviet power in Eastern Europe and a central element of Cold War tensions \tn 
% Row Count 6 (+ 6)
% Row 1
\SetRowColor{white}
 & Its history illustrates the dynamics of power, control, and resistance in the context of Cold War geopolitics \tn 
% Row Count 12 (+ 6)
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\end{tabularx}
\par\addvspace{1.3em}


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

\end{document}