\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{Lovely Leah (lovelyleah)}
\pdfinfo{
  /Title (metabolism-and-digestion.pdf)
  /Creator (Cheatography)
  /Author (Lovely Leah (lovelyleah))
  /Subject (Metabolism \& Digestion 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{Metabolism \& Digestion Cheat Sheet}}}} \\
    \normalsize{by \textcolor{DarkBackground}{Lovely Leah (lovelyleah)} via \textcolor{DarkBackground}{\uline{cheatography.com/165795/cs/34710/}}}
\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}Lovely Leah (lovelyleah) \\
  \uline{cheatography.com/lovelyleah} \\
  \end{tabulary}
\vfill
\columnbreak
\begin{tabulary}{5.8cm}{L}
  \SetRowColor{FootBackground}
  \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}}  \\
   \vspace{-2pt}Published 3rd December, 2022.\\
   Updated 3rd December, 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{2.14011 cm} x{2.83689 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Vocabulary}}  \tn
% Row 0
\SetRowColor{LightBackground}
{\bf{Metabolism}} & The process of chemically changing nutrients, such as fats \& proteins, into end products that are used to meet the energy needs of the body or stored for future use, thereby helping maintain homeostasis \tn 
% Row Count 10 (+ 10)
% Row 1
\SetRowColor{white}
{\bf{Basal Metabolic Rate (BMR)}} & The minimum amount of energy required to maintain body functions in the resting, awake state \tn 
% Row Count 15 (+ 5)
% Row 2
\SetRowColor{LightBackground}
{\bf{Anabolism}} & The use of energy to change simple materials into complex body substances \& tissue \tn 
% Row Count 19 (+ 4)
% Row 3
\SetRowColor{white}
{\bf{Catabolism}} & The breaking down of substances from complex to simple, resulting in a release of energy \tn 
% Row Count 23 (+ 4)
% Row 4
\SetRowColor{LightBackground}
{\bf{Macronutrients}} & Nutrients that are needed in large amounts \tn 
% Row Count 25 (+ 2)
% Row 5
\SetRowColor{white}
{\bf{Micronutrients}} & Nutrients that are needed by the body in limited amounts \tn 
% Row Count 28 (+ 3)
% Row 6
\SetRowColor{LightBackground}
{\bf{Chyme}} & Semiliquid product of digestion that travels from the stomach through the intestines \tn 
% Row Count 32 (+ 4)
\end{tabularx}
\par\addvspace{1.3em}

\vfill
\columnbreak
\begin{tabularx}{5.377cm}{x{2.14011 cm} x{2.83689 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Vocabulary (cont)}}  \tn
% Row 7
\SetRowColor{LightBackground}
{\bf{Peristalsis}} & Wavelike muscular movement through the digestive tract \tn 
% Row Count 3 (+ 3)
% Row 8
\SetRowColor{white}
{\bf{Dysphagia}} & Difficulty Swallowing \tn 
% Row Count 4 (+ 1)
% Row 9
\SetRowColor{LightBackground}
{\bf{Marasmus}} & A protein \& caloric deficiency \tn 
% Row Count 6 (+ 2)
% Row 10
\SetRowColor{white}
{\bf{Kwashiorkor}} & Lack of protein accompanied by fluid retention \tn 
% Row Count 9 (+ 3)
% Row 11
\SetRowColor{LightBackground}
{\bf{Hyperlipidemia}} & Elevation of plasma cholesterol, triglycerides, or both \tn 
% Row Count 12 (+ 3)
% Row 12
\SetRowColor{white}
{\bf{Cachexia}} & Physical wasting \tn 
% Row Count 13 (+ 1)
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{5.377cm}{x{1.29402 cm} x{3.68298 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Carbohydrates}}  \tn
% Row 0
\SetRowColor{LightBackground}
{\bf{Definition}} & Chemical substances composed of carbon, hydrogen, \& oxygen molescules \tn 
% Row Count 3 (+ 3)
% Row 1
\SetRowColor{white}
{\bf{Function}} & Major suppliers of energy \& include sugars, starches, \& fiber \tn 
% Row Count 6 (+ 3)
% Row 2
\SetRowColor{LightBackground}
{\bf{Simple}} & Are broken down \& absorbed quickly, providing a quick source of energy \tn 
% Row Count 9 (+ 3)
% Row 3
\SetRowColor{white}
 & Ex: sugars, such as those derived from fruit (fructose), table sugar (sucrose), milk products (lactose) \& blood sugar (glucose) \tn 
% Row Count 14 (+ 5)
% Row 4
\SetRowColor{LightBackground}
{\bf{Complex}} & Take longer to break down before absorption \& use by the body's cells \tn 
% Row Count 17 (+ 3)
% Row 5
\SetRowColor{white}
 & Are composed of starches, glycogen, \& fiber \tn 
% Row Count 19 (+ 2)
% Row 6
\SetRowColor{LightBackground}
 & Provide the body with vitamins \& minerals \tn 
% Row Count 21 (+ 2)
% Row 7
\SetRowColor{white}
{\bf{{\emph{Fiber}}}} & Is a complex carb \& classified as soluble or insoluble \tn 
% Row Count 23 (+ 2)
% Row 8
\SetRowColor{LightBackground}
 & Solubility refers to the disposition of the fiber when mixed with another substance \tn 
% Row Count 26 (+ 3)
% Row 9
\SetRowColor{white}
 & Insoluble fiber doesn't retain water but allows formation of bulk, resulting in the accelerated passage of the end products of food through the intestines \& a slowing of starch absorption \tn 
% Row Count 33 (+ 7)
\end{tabularx}
\par\addvspace{1.3em}

\vfill
\columnbreak
\begin{tabularx}{5.377cm}{x{1.29402 cm} x{3.68298 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Carbohydrates (cont)}}  \tn
% Row 10
\SetRowColor{LightBackground}
 & Soluble fiber mixes with water \& forms gel-like substance, which results in slower digestion \tn 
% Row Count 4 (+ 4)
% Row 11
\SetRowColor{white}
 & Lack of fiber can lead to bowel-related conditions, such as constipation, hemorrhoids, \& formation of diverticula \tn 
% Row Count 8 (+ 4)
% Row 12
\SetRowColor{LightBackground}
 & The presence of protrusions of the intestinal membrane through the muscular layer of the intestine is called {\emph{diverticulosis}} \tn 
% Row Count 13 (+ 5)
\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}{Fats}}  \tn
% Row 0
\SetRowColor{LightBackground}
{\bf{Definition}} & Composed of carbon, hydrogen, \& oxygen \& yield 9 kilocalories per gram when metabolized with the body \tn 
% Row Count 5 (+ 5)
% Row 1
\SetRowColor{white}
{\bf{Lipids}} & Refer to any fat within the body, including true fats \& oils (such as fatty acids, cholesterol, \& phospholipids) \tn 
% Row Count 11 (+ 6)
% Row 2
\SetRowColor{LightBackground}
{\bf{Function}} & Needed for energy\& to support cellular growth \tn 
% Row Count 14 (+ 3)
% Row 3
\SetRowColor{white}
{\bf{Benefits}} & Energy production, support \& insulation of major organs \& nerve fibers, energy storage of adipose tissue, lubrication for body tissues, vitamin absorption, \& transportation of fat-soluble vitamins (A, D, E, \& K) \tn 
% Row Count 24 (+ 10)
% Row 4
\SetRowColor{LightBackground}
{\bf{Triglycerides}} & The most abundant lipids in food \tn 
% Row Count 26 (+ 2)
% Row 5
\SetRowColor{white}
 & Although it's important to have a limited intake of triglycerides, an excess can be unhealthy, contributing to health problems such as coronary artery disease \& obesity \tn 
% Row Count 34 (+ 8)
\end{tabularx}
\par\addvspace{1.3em}

\vfill
\columnbreak
\begin{tabularx}{5.377cm}{x{2.18988 cm} x{2.78712 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Fats (cont)}}  \tn
% Row 6
\SetRowColor{LightBackground}
{\bf{Saturated Fatty Acids}} & Contain as many hydrogen atoms as carbon atoms can bond with \& no double carbon bonds \tn 
% Row Count 4 (+ 4)
% Row 7
\SetRowColor{white}
 & Sources include hard margarines, vegetable shortenings, pastries, crackers, fried foods, cheese, ice cream, \& other processed foods \tn 
% Row Count 10 (+ 6)
% Row 8
\SetRowColor{LightBackground}
{\bf{Monounsaturated Fatty Acids}} & Have only 1 double bond between carbon atoms \tn 
% Row Count 12 (+ 2)
% Row 9
\SetRowColor{white}
 & Sources include canola, olive, \& peanut oils, as well as almonds, sesame seeds, avocados, \& cashews \tn 
% Row Count 17 (+ 5)
% Row 10
\SetRowColor{LightBackground}
{\bf{Polyunsaturated Fatty Acids}} & Have multiple pairs of double carbon bonds \tn 
% Row Count 19 (+ 2)
% Row 11
\SetRowColor{white}
 & Sources include corn , safflower, sesame, soybean, \& sunflower seed oils, \& fish (such as halibut herring, mackerel, salmon, sardines, fresh tuna, trout, \& whitefish) \tn 
% Row Count 27 (+ 8)
% Row 12
\SetRowColor{LightBackground}
{\bf{Transfats}} & Composed of partially hydrogenated fatty acids, \& saturated fats \tn 
% Row Count 30 (+ 3)
\end{tabularx}
\par\addvspace{1.3em}

\vfill
\columnbreak
\begin{tabularx}{5.377cm}{x{2.18988 cm} x{2.78712 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Fats (cont)}}  \tn
% Row 13
\SetRowColor{LightBackground}
 & Known to raise the body's total cholesterol \tn 
% Row Count 2 (+ 2)
% Row 14
\SetRowColor{white}
{\bf{Cholesterol}} & A waxy, fatlike substance that is found in all cells of the body \tn 
% Row Count 5 (+ 3)
% Row 15
\SetRowColor{LightBackground}
 & \textasciitilde{}75\% is produced by the liver \& intestines; the remaining 25\% is from dietary intake \tn 
% Row Count 9 (+ 4)
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\end{tabularx}
\par\addvspace{1.3em}

\begin{tabularx}{5.377cm}{x{1.34379 cm} x{3.63321 cm} }
\SetRowColor{DarkBackground}
\mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Protein}}  \tn
% Row 0
\SetRowColor{LightBackground}
{\bf{Function}} & Actively participate in the development, maintenance, \& repair of the body's tissues, organs, \& cells \tn 
% Row Count 4 (+ 4)
% Row 1
\SetRowColor{white}
{\bf{Amino Acids}} & Referred to as the "building blocks" of proteins \tn 
% Row Count 6 (+ 2)
\hhline{>{\arrayrulecolor{DarkBackground}}--}
\end{tabularx}
\par\addvspace{1.3em}


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

\end{document}