\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{Morfalou} \pdfinfo{ /Title (maps-iii.pdf) /Creator (Cheatography) /Author (Morfalou) /Subject (Maps III 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}{153BA3} \definecolor{LightBackground}{HTML}{F0F2F9} \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{Maps III Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{Morfalou} via \textcolor{DarkBackground}{\uline{cheatography.com/194511/cs/40675/}}} \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}Morfalou \\ \uline{cheatography.com/morfalou} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 9th October, 2023.\\ Updated 9th October, 2023.\\ 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} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Relevance}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\bf{Satisfiying user intent}}} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{Prominence}}} \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\bf{Distance}}} \tn % Row Count 3 (+ 1) \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}{General Rating Rules}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Rate each results individually}} & Demote based on relevance and distance \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{Always rate vs the world}} & If there is better in the real world, demote the result given \tn % Row Count 6 (+ 4) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{{\bf{Ignore duplicates or order of results}}} \tn % Row Count 7 (+ 1) % Row 3 \SetRowColor{white} {\bf{Rate Bad inappropriate or illegal results}} & If content embarrassing if seen by users \tn % Row Count 10 (+ 3) % Row 4 \SetRowColor{LightBackground} {\bf{Adult content}} & From {\bf{{\emph{Navigational}}}} to {\bf{{\emph{Bad}}}} if the query clearly requests this type / {\bf{{\emph{Bad}}}} if it doesn't \tn % Row Count 16 (+ 6) \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}{Query Connection}} \tn % Row 0 \SetRowColor{LightBackground} The first factor to take into consideration & If {\bf{{\emph{Yes}}}} you can rate user intent and Relevance \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} & If {\bf{{\emph{No}}}} Rating is automatically {\bf{{\emph{Bad}}}} \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} User Intent if connection exists & Primary intent = {\bf{{\emph{Navigational or Excellent}}}} \tn % Row Count 9 (+ 3) % Row 3 \SetRowColor{white} & Secondary intent = {\bf{{\emph{Good}}}} \tn % Row Count 11 (+ 2) % Row 4 \SetRowColor{LightBackground} & Unlikely intent = {\bf{{\emph{Acceptable}}}} \tn % Row Count 13 (+ 2) % Row 5 \SetRowColor{white} \mymulticolumn{2}{x{8.4cm}}{After this, you must rate Name, Address and Pin Accuracy} \tn % Row Count 15 (+ 2) \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}{Prominence and distance}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Refers to popularity, order of prominence}} & International (the city of Sydney {\bf{{\emph{Navigational}}}}) \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} & Known in the country (Sydney Opera House {\bf{{\emph{Good}}}}) \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} & Known in the region \tn % Row Count 7 (+ 1) % Row 3 \SetRowColor{white} & Locally \tn % Row Count 8 (+ 1) % Row 4 \SetRowColor{LightBackground} & May not even be known locally \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} {\bf{When primary intent is respected}} & {\bf{{\emph{Navigational}}}} \tn % Row Count 12 (+ 2) % Row 6 \SetRowColor{LightBackground} {\bf{Distance}} & The farther away the result if from the area of expected results, the less desirable it becomes (especially chain businesses, hospitals, grocery stores) \tn % Row Count 20 (+ 8) % Row 7 \SetRowColor{white} & Must look all the possible results in the real world \tn % Row Count 23 (+ 3) % Row 8 \SetRowColor{LightBackground} & Distribution of possible results \tn % Row Count 25 (+ 2) % Row 9 \SetRowColor{white} & Population density (urban, suburban or rural) \tn % Row Count 28 (+ 3) % Row 10 \SetRowColor{LightBackground} {\bf{For distance demotion use 10\% rule}} & Take the closer result than add 10\% of the distance, all results within will keep the {\bf{{\emph{Excellent}}}} rating, the ones outside will get demoted \tn % Row Count 36 (+ 8) \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}{Prominence and distance (cont)}} \tn % Row 11 \SetRowColor{LightBackground} & The fewer the results and population density is low, you must be more generous when it comes to ratings and demotions \tn % Row Count 6 (+ 6) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{3.76 cm} x{4.24 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Types of Connections}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{General}} & Brand, Airport or city (one or multiple) \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\bf{Abbreviations or Alternate names}} & cdg, sears tower \tn % Row Count 5 (+ 3) % Row 2 \SetRowColor{LightBackground} {\bf{Category}} & food \tn % Row Count 6 (+ 1) % Row 3 \SetRowColor{white} {\bf{Spell correction}} & only for obvious issues (missing letter, wrong diacritics or wrong street name if close to the user -street instead of boulevard-) \tn % Row Count 13 (+ 7) % Row 4 \SetRowColor{LightBackground} {\bf{Transit}} & If query indicates a specific transit system, the result must match the system \tn % Row Count 17 (+ 4) % Row 5 \SetRowColor{white} {\bf{Special characters}} & If the use of special character is valid (valid variation, adds value, perceived as a form of expression or style -café in english-) \tn % Row Count 24 (+ 7) % Row 6 \SetRowColor{LightBackground} {\bf{Address}} & If result does not include the unit number or another number from the request rate {\bf{{\emph{Good}}}} \tn % Row Count 29 (+ 5) % Row 7 \SetRowColor{white} & If result is only the street name {\bf{{\emph{Acceptable}}}} \tn % Row Count 32 (+ 3) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{8.4cm}{x{3.76 cm} x{4.24 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Types of Connections (cont)}} \tn % Row 8 \SetRowColor{LightBackground} & If only the locality returned {\bf{{\emph{Bad}}}} \tn % Row Count 2 (+ 2) % Row 9 \SetRowColor{white} {\bf{Lack of connection}} & If so rate {\bf{{\emph{Bad}}}} \tn % Row Count 4 (+ 2) \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}{Various Queries}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{For addresses not existing}} & Rate if they existed, but don't demote existing addresses farther from non-existing ones \tn % Row Count 5 (+ 5) % Row 1 \SetRowColor{white} {\bf{City vs Municipality}} & City is always the primary intent. States, countries and municipalities will be as a secondary intent {\bf{{\emph{Good}}}} \tn % Row Count 11 (+ 6) % Row 2 \SetRowColor{LightBackground} & If query is specific about a country or state, and the city is returned, it will be rated {\bf{{\emph{Bad}}}} because it will not respect the user intent \tn % Row Count 19 (+ 8) % Row 3 \SetRowColor{white} {\bf{Unexpected result}} & If result returned is unexpected, look if secondary intent is respected {\bf{{\emph{Good}}}}, if not, rate {\bf{{\emph{Bad}}}} \tn % Row Count 25 (+ 6) % Row 4 \SetRowColor{LightBackground} {\bf{Multiple Transit POIs (one airport with metro, train, tram, buses stations)}} & Other transit POIs at the queried one should be treated as secondary intent {\bf{{\emph{Good}}}} \tn % Row Count 30 (+ 5) \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}{Various Queries (cont)}} \tn % Row 5 \SetRowColor{LightBackground} & {\bf{{\emph{Acceptable}}}} if less likely to satisfy the user intent \tn % Row Count 3 (+ 3) % Row 6 \SetRowColor{white} {\bf{POIs and Transit}} & If POI is sharing a transit, look for prominence and intent \tn % Row Count 6 (+ 3) % Row 7 \SetRowColor{LightBackground} {\bf{Transit queries}} & If one is rated {\bf{{\emph{Navigational}}}} other will be demoted on distance and prominence \tn % Row Count 11 (+ 5) % Row 8 \SetRowColor{white} {\bf{Stops vs Stations}} & All stations are stops, not the other way around \tn % Row Count 14 (+ 3) % Row 9 \SetRowColor{LightBackground} & Returning a station for a stop query is ok, but not a stop if station queried \tn % Row Count 18 (+ 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}{Service Level, Parkings and Permanent\_Closure}} \tn % Row 0 \SetRowColor{LightBackground} If query request a specific level or service & Not reflected on the result = {\bf{{\emph{Good}}}} and demote as necessary \tn % Row Count 4 (+ 4) % Row 1 \SetRowColor{white} & Generic level of service (offers more services than requested) = {\bf{{\emph{Excellent}}}} \tn % Row Count 8 (+ 4) % Row 2 \SetRowColor{LightBackground} If query does not specify & Any relevant result = {\bf{{\emph{Excellent}}}} \tn % Row Count 10 (+ 2) % Row 3 \SetRowColor{white} Parking intent & Rate free and paid as equal, if private parking returned rate {\bf{{\emph{Bad}}}} \tn % Row Count 14 (+ 4) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}