\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{SpaceDuck (SpaceDuck)} \pdfinfo{ /Title (weights-and-measures.pdf) /Creator (Cheatography) /Author (SpaceDuck (SpaceDuck)) /Subject (Weights and Measures 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}{008888} \definecolor{LightBackground}{HTML}{EFF7F7} \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{Weights and Measures Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{SpaceDuck (SpaceDuck)} via \textcolor{DarkBackground}{\uline{cheatography.com/4/cs/52/}}} \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}SpaceDuck (SpaceDuck) \\ \uline{cheatography.com/spaceduck} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 29th October, 2011.\\ Updated 13th May, 2016.\\ 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{1.44333 cm} x{3.53367 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Length (Metric)}} \tn % Row 0 \SetRowColor{LightBackground} 10 mm & 1 Centimeter (cm) \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} 10 cm & 1 Decimeter (dm) \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} 10 dm & 1 Meter (m) \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} 100 cm & 1 m \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} 1000 mm & 1 m \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} 1m & 1 Dekameter (dam) \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} 10 dam & 1 Hectometer (hm) \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} 100 m & 1 hm \tn % Row Count 8 (+ 1) % Row 8 \SetRowColor{LightBackground} 10 hm & 1 Kilometer (km) \tn % Row Count 9 (+ 1) % Row 9 \SetRowColor{white} 1000 m & 1 km \tn % Row Count 10 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.83689 cm} x{2.14011 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Area (Metric)}} \tn % Row 0 \SetRowColor{LightBackground} 100 mm$^{\textrm{2}}$ & 1 cm$^{\textrm{2}}$ \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} 10,000 cm$^{\textrm{2}}$ & 1 m$^{\textrm{2}}$ \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} 100 m$^{\textrm{2}}$ & 1 Are \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} 100 Ares & 1 Hectare \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} 100 Ares & 10,000 m$^{\textrm{2}}$ \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} 100 Hectares & 1 km$^{\textrm{2}}$ \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} 1,000,000 m$^{\textrm{2}}$ & 1 km$^{\textrm{2}}$ \tn % Row Count 7 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.44333 cm} x{3.53367 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Volume (Metric)}} \tn % Row 0 \SetRowColor{LightBackground} 10 ml & 1 Centilitre (cl) \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} 10 cl & 1 Decilitre (dl) \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} 10 dl & 1 Litre (l) \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} 100 cl & 1 l \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} 1000 ml & 1 l \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} 10 l & 1 Dekalitre \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} 10 dal & 1 Hecolitre \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} 10 hl & 1 Kilolitre \tn % Row Count 8 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.63781 cm} x{2.33919 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Weight (Metric)}} \tn % Row 0 \SetRowColor{LightBackground} 10 Milligrams (mg) & 1 Centigram (cg) \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} 10 cg & 1 Decigram (dg) \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} 10 dg & 1 Gram (g) \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} 10 g & 1 Dekagram (dag) \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} 10 dag & 1 Hectogram (hg) \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} 1000 g & 1 Kilogram (kg) \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} 10 hg & 1 kg \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} 1,000 kg & 1 Metric Ton \tn % Row Count 8 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.09494 cm} x{3.88206 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Length (Imperial)}} \tn % Row 0 \SetRowColor{LightBackground} 12 Inches & 1 Foot \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} 3 Feet & 1 Yard \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} 220 Yards & 1 Furlong \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} 8 \seqsplit{Furlongs} & 1 Mile \tn % Row Count 7 (+ 2) % Row 4 \SetRowColor{LightBackground} 1 Mile & 1760 Yards, 5280 Feet, 63360 Inches \tn % Row Count 9 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.93643 cm} x{2.04057 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Area (Imperial)}} \tn % Row 0 \SetRowColor{LightBackground} 144 Sq Inches & 1 Sq Foot \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} 9 Sq Feet & 1 Sq Yard \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} 4840 Sq Yards & 1 Acre \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} 640 Acres & 1 Sq Mile \tn % Row Count 4 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{3.23505 cm} x{1.74195 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Volume (Imperial)}} \tn % Row 0 \SetRowColor{LightBackground} 20 Fluid Ounces & 1 Pint \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} 2 Pints & 1 Quart \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} 8 Pints & 1 Gallon \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} 2 Gallons & 1 Peck \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} 8 Gallons & 1 Bushel \tn % Row Count 5 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.39356 cm} x{3.58344 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Weight (Imperial)}} \tn % Row 0 \SetRowColor{LightBackground} 16 Drams & 1 Ounce (oz) \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} 16 ozs & 1 Pound (lb) \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} 14 lbs & 1 Stone (st) \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} 8 st & 1 Hundredweight (cwt) \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} 20 cwt & 1 Ton \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} 160 st & 1 Ton \tn % Row Count 6 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{1.74195 cm} x{3.23505 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Metric to Imperial Length}} \tn % Row 0 \SetRowColor{LightBackground} 1 mm & 0.039 Inch \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} 1 cm & 0.393 Inch \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} 1 m & 1.093 Yard \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} 1 km & 0.621 Miles \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{} \tn % Row Count 4 (+ 0) % Row 5 \SetRowColor{white} 1 Inch & 2.54 cm \tn % Row Count 5 (+ 1) % Row 6 \SetRowColor{LightBackground} 1 Foot & 0.304 m \tn % Row Count 6 (+ 1) % Row 7 \SetRowColor{white} 1 Yard & 0.914 m \tn % Row Count 7 (+ 1) % Row 8 \SetRowColor{LightBackground} 1 Mile & 1.609 km \tn % Row Count 8 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.94103 cm} x{3.03597 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Metric to Imperial Area}} \tn % Row 0 \SetRowColor{LightBackground} 1 cm$^{\textrm{2}}$ & 0.1550 sq Inch \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} 1 m$^{\textrm{2}}$ & 1.1960 sq Yard \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} 1 Hectare & 2.4711 Acres \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} 1 km$^{\textrm{2}}$ & 0.3861 sq Mile \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{} \tn % Row Count 4 (+ 0) % Row 5 \SetRowColor{white} 1 sq Inch & 6.4516 cm$^{\textrm{2}}$ \tn % Row Count 5 (+ 1) % Row 6 \SetRowColor{LightBackground} 1 sq Foot & 0.0929 m$^{\textrm{2}}$ \tn % Row Count 6 (+ 1) % Row 7 \SetRowColor{white} 1 sq Yard & 0.8361 m$^{\textrm{2}}$ \tn % Row Count 7 (+ 1) % Row 8 \SetRowColor{LightBackground} 1 Acre & 4046.9 m$^{\textrm{2}}$ \tn % Row Count 8 (+ 1) % Row 9 \SetRowColor{white} 1 Mile & 2.59 km$^{\textrm{2}}$ \tn % Row Count 9 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.09034 cm} x{2.88666 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Metric to Imperial Volume}} \tn % Row 0 \SetRowColor{LightBackground} 1 Fluid Ounce & 28.413 ml \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} 1 Pint & 0.56831 l \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} 1 Gallon & 4.5461 l \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} 1 Litre & 1.759 Pint \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} 1 Litre & 35.195 Fluid Ounce \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} 1 Hecolitre & 21.996 Gallons \tn % Row Count 6 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.09034 cm} x{2.88666 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Metric to Imperial Weight}} \tn % Row 0 \SetRowColor{LightBackground} 1 g & 0.0353 oz \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} 1 kg & 2.2046 lb \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} 1 Metric Ton & 0.9842 Imperial Ton \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{} \tn % Row Count 3 (+ 0) % Row 4 \SetRowColor{LightBackground} 1 oz & 28.35 g \tn % Row Count 4 (+ 1) % Row 5 \SetRowColor{white} 1 lb & 0.4536 kg \tn % Row Count 5 (+ 1) % Row 6 \SetRowColor{LightBackground} 1 st & 6.3503 kg \tn % Row Count 6 (+ 1) % Row 7 \SetRowColor{white} 1 cwt & 50.802 kg \tn % Row Count 7 (+ 1) % Row 8 \SetRowColor{LightBackground} 1 Imperial Ton & 1.016 Metric Ton \tn % Row Count 8 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}