\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{zerofatz} \pdfinfo{ /Title (9-super-foods-for-healthy-lifestyle.pdf) /Creator (Cheatography) /Author (zerofatz) /Subject (9 Super Foods For Healthy Lifestyle 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}{05A398} \definecolor{LightBackground}{HTML}{EFF9F8} \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{9 Super Foods For Healthy Lifestyle Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{zerofatz} via \textcolor{DarkBackground}{\uline{cheatography.com/38154/cs/18996/}}} \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}zerofatz \\ \uline{cheatography.com/zerofatz} \\ \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 1st March, 2019.\\ 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}{Apples}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Apples are a great food for many reasons including the ability to reduce the risk or heart disease, certain cancers, high blood pressure, and type-2 diabetes. They also benefit the respiratory system by preventing lung cancer and asthma. By consuming apples your body gets fiber, potassium and antioxidants, such as Vitamin C and polyphenols. Studies show that the real benefit comes from the synergistic interaction between these ingredients. To take best advantage of apples for your health, eat a wide variety and make sure that you eat the peel, which contains several times more antioxidants than the inside. As they say, eat an apple a day.} \tn % Row Count 14 (+ 14) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Avocados}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{When you want to help your body absorb more nutrients from the foods you eat, have an avocado too. Fat soluble phytonutrients, like beta-carotene, are more easily absorbed by the body because of the monounsaturated fat in the avocado. Avocados also help you keep your weight down because they help you feel full, which triggers your body to stop eating. They are calorie rich at 48 calories per ounce, so for best results eat one-third to one-half an avocado two to three times a week.} \tn % Row Count 10 (+ 10) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Dark Chocolate}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{When you want a little indulgence with your health food, try dark chocolate. It contains lots of polyphenols which lower blood pressure and is a natural anti-inflammatory. You should keep in mind that blood pressure lowering qualities are only in dark chocolate, but not in its cousin, milk chocolate. In 2000 a study published by the American Journal of Clinical Nutrition showed that the effect on blood flow from high flavanol cocoa was similar to taking a low-dose aspirin. These means that dark chocolate could possibly be used to treat ailments like minor pains or headaches. For the best results use Newman's Own Sweet Dart Chocolate, as Dr Pratt has found it has more polyphenols than any other dark chocolate he has found. Like avocado, chocolate is high in calories, so shoot for no more than 100 calories a day.} \tn % Row Count 17 (+ 17) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Olive Oil}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{There has been much discussion lately about the benefits of the Mediterranean diet. Well olive oil is one of the main components of that diet and its benefits are outstanding. It is a great substitute for other oils and fats and has been shown to reduce the risk of breast and colon cancer, lower blood pressure, and improve the health of your cardiovascular system. For best results take a tablespoon a day of extra virgin olive oil that is cold pressed and greenish in color. This green color helps you spot high levels of polyphenols.} \tn % Row Count 11 (+ 11) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Garlic}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Another component of the Mediterranean diet, Garlic is great for your cardiovascular system. By eating garlic regularly, you can reduce your blood pressure, triglyceride levels and your LDL(bad) cholesterol. Garlic also has anti-inflammatory agents and antibiotic properties. To grab all the health benefits of garlic, eat one clove several times a week. Raw garlic is best, but cooked is good too. Keep in mind that dried garlic and garlic supplements don't have the same benefits as fresh garlic.} \tn % Row Count 11 (+ 11) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Honey}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Honey is not often seen on many lists of healthy foods, but don't let that fool you. Eating honey daily increases the amounts of antioxidant in the blood, helps to prevent constipation, and reduces cholesterol and blood pressure. If you are running low on energy, reach for the honey, not sugar. Honey does a better job of maintaining blood sugar and energy than other sweeteners. And choose dark honeys over light ones, because they are higher in antioxidants and flavor. One to two teaspoons several times a week should do the trick} \tn % Row Count 11 (+ 11) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Kiwis}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{If you want extreme quantities of Vitamin C and E that can reduce risk of asthma, osteoarthritis, and colon cancer, and boost your immune system, then grab a kiwi or two. An interesting point to keep in mind is that dietary vitamin E appears to lower the risk of Alzheimer's, and by consuming kiwis, you get vitamin E without the calories that most other vitamin e rich foods contain, like nuts and oils. Another stellar ingredient is lutein, which lowers the risk cataracts and macular degeneration. To get all the above benefits and reduce the risk of blood clots, then consume one kiwi, two to three times a week} \tn % Row Count 13 (+ 13) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Onions}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{For the benefits of onions, you can just reread the benefits of garlic, because they are pretty much the same. Try to eat dishes containing onions at least three times a week, and make sure that you let the onion sit for 5 to 10 minutes after you cut it open. If you apply heat too soon you will deactivate the thiopropanal sulfoxide, which is the substance in the onion that gives us the most heart benefits. And remember the more pungent the onion, the better it is for you.} \tn % Row Count 10 (+ 10) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Pomegranates}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Pomegranates are packed with tons of phytochemicals like potassium, which is great for lowering your blood pressure. Studies also suggest that pomegranates can slow the progression of prostate cancer and reduce the risk of atherosclerosis. Instead of fighting with the little pulpy seeds to get your dose of pomegranate, try four to eight ounces of 100\% juice several times a week. Be sure to stay away from juices with added sugar.} \tn % Row Count 9 (+ 9) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Apples}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{5.377cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/zerofatz_1551419006_234519_ThorHeyerdahl.jpg}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}