\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{miamacnair} \pdfinfo{ /Title (grammer.pdf) /Creator (Cheatography) /Author (miamacnair) /Subject (Grammer 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}{8AC8FF} \definecolor{LightBackground}{HTML}{F0F8FF} \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{Grammer Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{miamacnair} via \textcolor{DarkBackground}{\uline{cheatography.com/90110/cs/20459/}}} \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}miamacnair \\ \uline{cheatography.com/miamacnair} \\ \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 4th September, 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*}{2} \begin{tabularx}{8.4cm}{x{1.14 cm} x{3.42 cm} x{3.04 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{8.4cm}}{\bf\textcolor{white}{Parts of a Speech}} \tn % Row 0 \SetRowColor{LightBackground} Noun: & names of a person, place or thing & ex.\textbackslash{}\textbackslash{} mother school, banana \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \seqsplit{Pronoun:} & takes the place of a noun & ex.\textbackslash{}\textbackslash{} she, we, it \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \seqsplit{Adjective:} & describes or modifies a noun & ex.\textbackslash{}\textbackslash{} nice, arrogant, awesome \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} Verb: & indicated an action or state of being & ex.\textbackslash{}\textbackslash{} sing, run, is, need \tn % Row Count 9 (+ 3) % Row 4 \SetRowColor{LightBackground} \seqsplit{Adverb:} & modifies a verb, an adjective or another adverb & ex.\textbackslash{}\textbackslash{} slowly, repeatedly, very \tn % Row Count 12 (+ 3) % Row 5 \SetRowColor{white} \seqsplit{Preposition} & shows the relationship of a noun to a verb, adjective or another noun & ex.\textbackslash{}\textbackslash{} on, by, to, in, of, for, from \tn % Row Count 16 (+ 4) % Row 6 \SetRowColor{LightBackground} \seqsplit{Conjunction:} & connects other words, phrases or sentences & ex.\textbackslash{}\textbackslash{} because, and, or, but \tn % Row Count 19 (+ 3) % Row 7 \SetRowColor{white} \seqsplit{Interjection:} & calls attention to what is being said & ex.\textbackslash{}\textbackslash{} Yes! Wow! Yikes! \tn % Row Count 22 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{1.368 cm} x{2.508 cm} x{3.724 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{8.4cm}}{\bf\textcolor{white}{Types of Sentences}} \tn % Row 0 \SetRowColor{LightBackground} \seqsplit{Declarative:} & makes a statement & ex.\textbackslash{}\textbackslash{} The ice cream is in the freezer. \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \seqsplit{Interrogative:} & asks a question & ex.\textbackslash{}\textbackslash{} Where are the car keys? \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \seqsplit{Imperative:} & gives commands or requests & ex.\textbackslash{}\textbackslash{} Hand in your assignment. \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} \seqsplit{Exclamatory:} & expresses a strong feeling & ex.\textbackslash{}\textbackslash{} I've been robbed! \tn % Row Count 8 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{1.596 cm} x{2.964 cm} x{3.04 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{8.4cm}}{\bf\textcolor{white}{Punctuation:}} \tn % Row 0 \SetRowColor{LightBackground} \seqsplit{Question} Mark (?) & ends an interrogative sentence & ex.\textbackslash{}\textbackslash{} Can you come over to play! \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} Period (.) & ends a declarative sentence & ex.\textbackslash{}\textbackslash{} She left early. \tn % Row Count 5 (+ 2) % Row 2 \SetRowColor{LightBackground} \seqsplit{Exclamation} Point (!) & ends an exclamatory or imperative sentence & ex.\textbackslash{}\textbackslash{} I can't believe we won! \tn % Row Count 8 (+ 3) % Row 3 \SetRowColor{white} Comma (,) & separates elements in a series & ex.\textbackslash{}\textbackslash{} Bring a pencil, pen, ruler and compass \tn % Row Count 11 (+ 3) % Row 4 \SetRowColor{LightBackground} \seqsplit{Semicolon} (;) & signals more pause than a comma but less than a period & ex.\textbackslash{}\textbackslash{} Meet me there; it is easy to find. \tn % Row Count 15 (+ 4) % Row 5 \SetRowColor{white} Colon (:) & signals that a list is coming ahead & ex.\textbackslash{}\textbackslash{} For the recipe you will need: choc chips, flour, milk and nuts. \tn % Row Count 20 (+ 5) % Row 6 \SetRowColor{LightBackground} Dash (-) & indicates a break in thought; used & Our best runners - Susan and Kim not there. \tn % Row Count 23 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{3.12 cm} x{4.88 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Apostrophe}} \tn % Row 0 \SetRowColor{LightBackground} used to show a contraction & ex.\textbackslash{}\textbackslash{} I'll mail my application to you right away. \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} used to Show Possession & ex.\textbackslash{}\textbackslash{} He paid for the gas when he used Dan's car. \tn % Row Count 6 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{4 cm} x{4 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Quotations Marks}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{Use double quotation marks:} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} for a direct quotation & ex.\textbackslash{}\textbackslash{} "What doesn't kill me makes me stronger." -Friedrich Nietzsche \tn % Row Count 5 (+ 4) % Row 2 \SetRowColor{LightBackground} in most dialogue & ex.\textbackslash{}\textbackslash{} "l am going to a movie with Jenny on Saturday," he replied. \tn % Row Count 9 (+ 4) % Row 3 \SetRowColor{white} for titles of songs, literary works, movies, television series, etc. & ex.\textbackslash{}\textbackslash{} The movie "Network" is on TV Friday. \tn % Row Count 13 (+ 4) % Row 4 \SetRowColor{LightBackground} Use single quotation marks to enclose a quotation within a quotation. & ex.\textbackslash{}\textbackslash{} "She yelled 'Stop' when the bus pulled away," Dan added. \tn % Row Count 17 (+ 4) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{4 cm} x{4 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Spelling Rules:}} \tn % Row 0 \SetRowColor{LightBackground} 1. I before e except after c, or when sounded as a & ex.\textbackslash{}\textbackslash{} receive, freight \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} 2. When a verb ends in ie., change the ie to y before adding the Suffix ing & ex.\textbackslash{}\textbackslash{} die becomes dying, tie becomes tying \tn % Row Count 7 (+ 4) % Row 2 \SetRowColor{LightBackground} 3. When a word ends in y preceded by a consonant, change the y to i before adding the suffix (unless the suffix begins with i. if the Suffix begins with i, keep the y.) & ex.\textbackslash{}\textbackslash{} envy becomes envious, study becomes studying \tn % Row Count 16 (+ 9) % Row 3 \SetRowColor{white} 4. Keep the final e before a suffix beginning with a consonant & ex.\textbackslash{}\textbackslash{} advertise becomes advertisement \tn % Row Count 20 (+ 4) % Row 4 \SetRowColor{LightBackground} 5. With the suffixes able and ous, don't drop the e before the Suffixes if the word ends in a soft ce or ge & ex.\textbackslash{}\textbackslash{} knowledge becomes knowledgeable \tn % Row Count 26 (+ 6) % Row 5 \SetRowColor{white} 6. Doubling the final consonant when a suffix is added to a two syllable word. In the US: most words do not, In Canada: most words do. & ex.\textbackslash{}\textbackslash{} US: counsel becomes counselor, Canada counsel becomes counsellor \tn % Row Count 33 (+ 7) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{8.4cm}{x{4 cm} x{4 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Spelling Rules: (cont)}} \tn % Row 6 \SetRowColor{LightBackground} 7. When a word ends with more than one.consonant, dont double when adding the Suffix & ex.\textbackslash{}\textbackslash{} drown becomes drowning \tn % Row Count 5 (+ 5) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}