\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{Dmitry H. (buckster12)} \pdfinfo{ /Title (os-x.pdf) /Creator (Cheatography) /Author (Dmitry H. (buckster12)) /Subject (OS X 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}{42CCDB} \definecolor{LightBackground}{HTML}{E7F8FA} \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{OS X Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{Dmitry H. (buckster12)} via \textcolor{DarkBackground}{\uline{cheatography.com/107370/cs/21493/}}} \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}Dmitry H. (buckster12) \\ \uline{cheatography.com/buckster12} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 1st January, 2020.\\ Updated 3rd January, 2020.\\ 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{3.03597 cm} x{1.94103 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Signs}} \tn % Row 0 \SetRowColor{LightBackground} Command (or Cmd) ⌘ & Shift ⇧ \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Option (or Alt) ⌥ & Caps Lock ⇪ \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} & Ctrl ⌃ \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.54287 cm} x{3.43413 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Main}} \tn % Row 0 \SetRowColor{LightBackground} ⌘ - W & close the front window \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} ⌥ - ⌘ - W & close all windows of the app \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} ⌘ - M & hide to tray (Dock) \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} ⌘ - H & Hide the windows of the front app \tn % Row Count 6 (+ 2) % Row 4 \SetRowColor{LightBackground} \textasciicircum{} - ⌘ - Space & open app "Characters" \tn % Row Count 8 (+ 2) % Row 5 \SetRowColor{white} \textasciicircum{} - ⌘ - F & Use the app in full screen \tn % Row Count 9 (+ 1) % Row 6 \SetRowColor{LightBackground} ⇧ - ⌘ - 5 & take a screenshot \tn % Row Count 11 (+ 2) % Row 7 \SetRowColor{white} ⇧ - ⌘ - 3 & fast full screenshot \tn % Row Count 13 (+ 2) % Row 8 \SetRowColor{LightBackground} ⇧ - ⌘ - 4 & fast custom screenshot \tn % Row Count 15 (+ 2) % Row 9 \SetRowColor{white} ⌘ - , (comma) & open settings of app \tn % Row Count 17 (+ 2) \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}{Shutdown}} \tn % Row 0 \SetRowColor{LightBackground} \textasciicircum{} - ⌘- Q & Immediately lock your screen \tn % Row Count 1 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{0.89586 cm} x{4.08114 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Finder (view)}} \tn % Row 0 \SetRowColor{LightBackground} \seqsplit{⇧-⌘-P} & show/hide the Preview panel \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \seqsplit{⇧-⌘-T} & Show or hide the tab bar \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \seqsplit{⌥-⌘-D} & Show or hide the Dock \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} \seqsplit{⌥-⌘-P} & Hide/show the path bar \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} \seqsplit{⌥-⌘-S} & Hide/show the Sidebar \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} ⌘ - / & Hide/show the status bar \tn % Row Count 11 (+ 1) % Row 6 \SetRowColor{LightBackground} ⌘ - J & Show View Options \tn % Row Count 12 (+ 1) % Row 7 \SetRowColor{white} ⌘-T & Show/hide the tab bar when a single tab is open \tn % Row Count 14 (+ 2) % Row 8 \SetRowColor{LightBackground} \seqsplit{⌥-⌘-T} & Show/hide the toolbar when a single tab is open \tn % Row Count 16 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.14471 cm} x{3.83229 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Finder}} \tn % Row 0 \SetRowColor{LightBackground} ⌘-D & Duplicate the selected files \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} ⌘-E & Eject the selected disk or volume \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} ⌘-F & Start a Spotlight search \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} ⌘-I & Show the Get Info window for a selected file \tn % Row Count 6 (+ 2) % Row 4 \SetRowColor{LightBackground} \seqsplit{⇧-⌘-C} & Open the Computer window \tn % Row Count 7 (+ 1) % Row 5 \SetRowColor{white} \seqsplit{⇧-⌘-D} & Open the desktop folder \tn % Row Count 8 (+ 1) % Row 6 \SetRowColor{LightBackground} \seqsplit{⇧-⌘-F} & Open the Recents window, showing all of the files you viewed or changed recently \tn % Row Count 11 (+ 3) % Row 7 \SetRowColor{white} \seqsplit{⇧-⌘-G} & Open a Go to Folder window \tn % Row Count 12 (+ 1) % Row 8 \SetRowColor{LightBackground} \seqsplit{⇧-⌘-H} & Open the Home folder of the current macOS user account \tn % Row Count 14 (+ 2) % Row 9 \SetRowColor{white} \seqsplit{⇧-⌘-I} & Open iCloud Drive \tn % Row Count 15 (+ 1) % Row 10 \SetRowColor{LightBackground} \seqsplit{⇧-⌘-K} & Open the Network window \tn % Row Count 16 (+ 1) % Row 11 \SetRowColor{white} \seqsplit{Option-⌘-L} & Open the Downloads folder \tn % Row Count 18 (+ 2) % Row 12 \SetRowColor{LightBackground} \seqsplit{⇧-⌘-N} & Create a new folder \tn % Row Count 19 (+ 1) % Row 13 \SetRowColor{white} \seqsplit{⇧-⌘-O} & Open the Documents folder \tn % Row Count 20 (+ 1) % Row 14 \SetRowColor{LightBackground} \seqsplit{⇧-⌘-R} & Open the AirDrop window \tn % Row Count 21 (+ 1) % Row 15 \SetRowColor{white} \textasciicircum{}-⇧-⌘-T & Add selected Finder item to the Dock \tn % Row Count 23 (+ 2) % Row 16 \SetRowColor{LightBackground} \seqsplit{⇧-⌘-U} & Open the Utilities folder \tn % Row Count 24 (+ 1) % Row 17 \SetRowColor{white} ⌘ - N & open new window of Finder \tn % Row Count 25 (+ 1) % Row 18 \SetRowColor{LightBackground} ⌘ - Y & Use Quick Look to preview the selected files \tn % Row Count 27 (+ 2) % Row 19 \SetRowColor{white} ⌘-L & Make an alias of the selected item \tn % Row Count 29 (+ 2) \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}{Documents (Safari as well)}} \tn % Row 0 \SetRowColor{LightBackground} ⌘ - Up Arrow & to the beginning of the document \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} ⌘ - Down Arrow & to the end of the document \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \textasciicircum{} - A & Move to the beginning of the line or paragraph \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} \textasciicircum{} - E & Move to the end of a line or paragraph \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} \textasciicircum{} - P & Move up one line \tn % Row Count 9 (+ 1) % Row 5 \SetRowColor{white} \textasciicircum{} - N & Move down one line \tn % Row Count 10 (+ 1) % Row 6 \SetRowColor{LightBackground} ⌥ - ⌘ - F & Go to the search field \tn % Row Count 12 (+ 2) % Row 7 \SetRowColor{white} ⌥ - ⌘ - I & Show or hide the inspector window \tn % Row Count 14 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}