\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{thirkcircus} \pdfinfo{ /Title (mac.pdf) /Creator (Cheatography) /Author (thirkcircus) /Subject (Mac 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}{A3A3A3} \definecolor{LightBackground}{HTML}{F3F3F3} \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{Mac Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{thirkcircus} via \textcolor{DarkBackground}{\uline{cheatography.com/203200/cs/43252/}}} \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}thirkcircus \\ \uline{cheatography.com/thirkcircus} \\ \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 13th May, 2024.\\ 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{2.18988 cm} x{2.78712 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Mac OSX App}} \tn % Row 0 \SetRowColor{LightBackground} ⌥ Space & Raycast \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} ⌃⌥ Space & Shortcat \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} ⌘ ⌘ & Keycue \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} ⇧ ⌘ Space & 1Password quick access \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} ⇧ ⌥ ⌘ Space & 1Password \tn % Row Count 5 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.23965 cm} x{2.73735 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Mac OSX}} \tn % Row 0 \SetRowColor{LightBackground} ⌘ W & Close Front Windows \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} ⌘ Q & Quit App \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} ⌘ ⌥ Esc & Force Quit \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} ⌘ ⇧ ⌥ Esc for 3 sec & Force Quit front App \tn % Row Count 5 (+ 2) % Row 4 \SetRowColor{LightBackground} ⌘ \textasciicircum{} F & Full Screen \tn % Row Count 6 (+ 1) % Row 5 \SetRowColor{white} ⌘ ⌥ D & Show/Hide Dock \tn % Row Count 7 (+ 1) % Row 6 \SetRowColor{LightBackground} ⌘ ` & Switch open windows of App \tn % Row Count 9 (+ 2) % Row 7 \SetRowColor{white} ⌘ Tab & Switch open App \tn % Row Count 10 (+ 1) % Row 8 \SetRowColor{LightBackground} \textasciicircum{} , & App Preferences \tn % Row Count 11 (+ 1) % Row 9 \SetRowColor{white} ⌘ \textasciicircum{} H & Hide everything except open App \tn % Row Count 13 (+ 2) % Row 10 \SetRowColor{LightBackground} ⌘ H & Hide App \tn % Row Count 14 (+ 1) % Row 11 \SetRowColor{white} ⌘ M & Minimise App \tn % Row Count 15 (+ 1) % Row 12 \SetRowColor{LightBackground} ⌘ ⇧ / & Search Help \tn % Row Count 16 (+ 1) % Row 13 \SetRowColor{white} 🌐 E & Character Viewer \tn % Row Count 17 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.89126 cm} x{3.08574 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Mac OSX Window Control}} \tn % Row 0 \SetRowColor{LightBackground} \textasciicircum{} {\emph{and}} ← / → & Switch Desktop \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} ⌃ ↑ & Mission Control: All Windows \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} ⌃ ↓ & Mission Control: App Windows \tn % Row Count 6 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.33919 cm} x{2.63781 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Raycast Windows Control}} \tn % Row 0 \SetRowColor{LightBackground} ⇧ \textasciicircum{} ⌥ ⌘ {\emph{and}} 1/3/7/9 & Quarter screen Window \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} ⇧ \textasciicircum{} ⌥ ⌘ {\emph{and}} 2/5/8 & Middle/80\%/Maximise Window \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} ⇧ \textasciicircum{} ⌥ ⌘ {\emph{and}} 4/6 & Left/Right half Window \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} ⇧ \textasciicircum{} ⌥ ⌘ ↩ & Maximise Window \tn % Row Count 7 (+ 1) % Row 4 \SetRowColor{LightBackground} ⇧ ⌥ ⌘ {\emph{and}} 1/4/7 or 3/6/9 & 1/3 or 2/3 or 3/4 Window \tn % Row Count 9 (+ 2) % Row 5 \SetRowColor{white} ⇧ \textasciicircum{} ⌥ ⌘ {\emph{and}} ← / → & Move Window to Next/Previous Desktop \tn % Row Count 11 (+ 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}{Mac OSX Finder}} \tn % Row 0 \SetRowColor{LightBackground} ⌘ I & File Info \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} ⌘ Y & Preview File \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} ⌘ ↓ & Open File \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} ⌘ ↑ & Open Folder \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} ⌘ {[} & Go up a folder level \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} ⌘ 1 & View as Icons \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} ⌘ 2 & View as List \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} ⌘ 3 & View as Columns \tn % Row Count 8 (+ 1) % Row 8 \SetRowColor{LightBackground} ⌘ 4 & View as Gallery \tn % Row Count 9 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.59264 cm} x{3.38436 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Slack}} \tn % Row 0 \SetRowColor{LightBackground} ⌘ ⇧ \textbackslash{} & React to last message \{\{nl\}\} (or message with focus) \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} ⌘ ⇧ A & All unread \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} ⌘ ⇧ T & Threads \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} ⌘ G & Search \tn % Row Count 5 (+ 1) % Row 4 \SetRowColor{LightBackground} ⌘ / & Show keyboard shortcuts \tn % Row Count 6 (+ 1) % Row 5 \SetRowColor{white} ⌘ ⇧ Y & Set status \tn % Row Count 7 (+ 1) % Row 6 \SetRowColor{LightBackground} ⌘ \textasciicircum{} {\emph{and}} ←/→ & Move focus to the next section \tn % Row Count 9 (+ 2) % Row 7 \SetRowColor{white} T & Open a thread \tn % Row Count 10 (+ 1) % Row 8 \SetRowColor{LightBackground} E & Edit message \tn % Row Count 11 (+ 1) % Row 9 \SetRowColor{white} R & React to message \tn % Row Count 12 (+ 1) % Row 10 \SetRowColor{LightBackground} A & Save to/remove from Later \tn % Row Count 13 (+ 1) % Row 11 \SetRowColor{white} M & Remind me about this message \tn % Row Count 15 (+ 2) % Row 12 \SetRowColor{LightBackground} F & Forward message \tn % Row Count 16 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.4885 cm} x{2.4885 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Chrome}} \tn % Row 0 \SetRowColor{LightBackground} ⌘ ⌥ I & Dev Tools \tn % Row Count 1 (+ 1) \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}{Screenshots}} \tn % Row 0 \SetRowColor{LightBackground} ⇧ ⌘ 4 & Save selected area to file \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} ⇧ \textasciicircum{} ⌘ 4 & Copy selected area to clipboard \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} ⇧ ⌘ 5 & Screenshot options \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} ⇧ \textasciicircum{} 4 & Snagit \tn % Row Count 5 (+ 1) % Row 4 \SetRowColor{LightBackground} ⇧ ⌘ 3 & Start/Stop Loom \tn % Row Count 6 (+ 1) % Row 5 \SetRowColor{white} ⇧ \textasciicircum{} ⌘ 3 & Restart Loom \tn % Row Count 8 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.84149 cm} x{3.13551 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{iTerm2}} \tn % Row 0 \SetRowColor{LightBackground} ⌘ T & New Tab \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} ⌘ W & Close Window \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} ⌘ {\emph{and}} number key & Go to Tab \tn % Row Count 4 (+ 2) % Row 3 \SetRowColor{white} ⌘ D & Split Window Vertically \{\{nl\}\} same Profile \tn % Row Count 6 (+ 2) % Row 4 \SetRowColor{LightBackground} ⌘ ⇧ D & Split Window Horizontally \{\{nl\}\} same Profile \tn % Row Count 8 (+ 2) % Row 5 \SetRowColor{white} ⌘ ⌥ V & Split Window Vertically \{\{nl\}\} new Profile \tn % Row Count 10 (+ 2) % Row 6 \SetRowColor{LightBackground} ⌘ ⌥ H & Split Window Horizontally \{\{nl\}\} new Profile \tn % Row Count 12 (+ 2) % Row 7 \SetRowColor{white} ⌘ ⌥ {\emph{and}} arrow key & Go to Split Pane by Direction \tn % Row Count 14 (+ 2) % Row 8 \SetRowColor{LightBackground} ⌘ {\emph{and}} {]}/{[} & Go to Split Pane \{\{nl\}\} by order of use \tn % Row Count 16 (+ 2) % Row 9 \SetRowColor{white} ⌘ \textasciicircum{} {\emph{and}} arrow key & Resize Pane \tn % Row Count 18 (+ 2) % Row 10 \SetRowColor{LightBackground} ⌘ ↩ & Fullscreen \tn % Row Count 19 (+ 1) % Row 11 \SetRowColor{white} ⌘ K & Clear screen/pane \tn % Row Count 20 (+ 1) % Row 12 \SetRowColor{LightBackground} \textasciicircum{} L & Clear screen \tn % Row Count 21 (+ 1) % Row 13 \SetRowColor{white} ⌘ ⌥ I & Broadcast command to all panes \tn % Row Count 23 (+ 2) % Row 14 \SetRowColor{LightBackground} ⌘ / & Find Cursor \tn % Row Count 24 (+ 1) % Row 15 \SetRowColor{white} \textasciicircum{} D & Exit shell \tn % Row Count 25 (+ 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}{iTerm2 Editing}} \tn % Row 0 \SetRowColor{LightBackground} \textasciicircum{} U & Delete to start of line \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \textasciicircum{} K & Delete to end of line \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \textasciicircum{} W & Delete previous word \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} \textasciicircum{} R & Search command history \{\{nl\}\} (repeat \textasciicircum{} R to cycle through results) \tn % Row Count 6 (+ 3) % Row 4 \SetRowColor{LightBackground} \textasciicircum{} R twice & Search the last remembered search term \tn % Row Count 8 (+ 2) % Row 5 \SetRowColor{white} \textasciicircum{} Y & End search at current history entry \tn % Row Count 10 (+ 2) % Row 6 \SetRowColor{LightBackground} \textasciicircum{} G & Cancel search \tn % Row Count 11 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.14011 cm} x{2.83689 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{iTerm2 Movement}} \tn % Row 0 \SetRowColor{LightBackground} \textasciicircum{} A & Move to the start of line \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \textasciicircum{} E & Move to the end of line \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} ⌥ F & Move forward a word \tn % Row Count 5 (+ 1) % Row 3 \SetRowColor{white} ⌥ B & Move backward a word \tn % Row Count 6 (+ 1) % Row 4 \SetRowColor{LightBackground} ⌥ {\emph{and}} arrow keys & Traverse line by word \tn % Row Count 8 (+ 2) % Row 5 \SetRowColor{white} ⌘ M & Set Mark \tn % Row Count 9 (+ 1) % Row 6 \SetRowColor{LightBackground} ⌘ J & Jump to Mark \tn % Row Count 10 (+ 1) % Row 7 \SetRowColor{white} ⌘ ⇧ C & Enter Copy Mode \tn % Row Count 11 (+ 1) % Row 8 \SetRowColor{LightBackground} \textasciicircum{} V & Enter Character Selection Mode \tn % Row Count 13 (+ 2) % Row 9 \SetRowColor{white} H J K L {\emph{or}} arrow keys & Move cursor \tn % Row Count 15 (+ 2) % Row 10 \SetRowColor{LightBackground} \textasciicircum{} K & Copy text \tn % Row Count 16 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}