\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{Morty (morty)} \pdfinfo{ /Title (sas-studio-v.pdf) /Creator (Cheatography) /Author (Morty (morty)) /Subject (SAS Studio V 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}{1A0EC7} \definecolor{LightBackground}{HTML}{F0EFFB} \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{SAS Studio V Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{Morty (morty)} via \textcolor{DarkBackground}{\uline{cheatography.com/166288/cs/34800/}}} \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}Morty (morty) \\ \uline{cheatography.com/morty} \\ \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 23rd October, 2022.\\ 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.29402 cm} x{3.68298 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{WORKSPACE - GENERAL}} \tn % Row 0 \SetRowColor{LightBackground} Ctrl + Num {[}+{]} & Zoom in \textasciicircum{}{\bf{1) 2)}}\textasciicircum{} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} Ctrl + Num {[}-{]} & Zoom out \textasciicircum{}{\bf{2)}}\textasciicircum{} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} Ctrl + Num {[}0{]} & Zoom reset \textasciicircum{}{\bf{2)}}\textasciicircum{} \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} Alt + F11 & Toggle fullscreen view on | off \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} Alt + C & Toggle Console window on | off \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} F4 / Alt + N & Create a new SAS program \tn % Row Count 12 (+ 2) % Row 6 \SetRowColor{LightBackground} Ctrl + S & Save the SAS program/log/results \textasciicircum{}{\bf{3)}}\textasciicircum{} \tn % Row Count 14 (+ 2) % Row 7 \SetRowColor{white} F3 & Submit/run the selected or all code \tn % Row Count 16 (+ 2) % Row 8 \SetRowColor{LightBackground} F9 & Reset the SAS session \textasciicircum{}{\bf{4)}}\textasciicircum{} \tn % Row Count 18 (+ 2) % Row 9 \SetRowColor{white} Ctrl + P & Print the SAS program, log, or results \tn % Row Count 20 (+ 2) % Row 10 \SetRowColor{LightBackground} Shift + F10 & Open the context menu \tn % Row Count 22 (+ 2) % Row 11 \SetRowColor{white} Ctrl + O & Open \tn % Row Count 23 (+ 1) % Row 12 \SetRowColor{LightBackground} Ctrl + Z & Undo last edit \tn % Row Count 24 (+ 1) % Row 13 \SetRowColor{white} Ctrl + Y & Redo next edit (if undoing first) \tn % Row Count 26 (+ 2) % Row 14 \SetRowColor{LightBackground} Ctrl + F & Find text \tn % Row Count 27 (+ 1) % Row 15 \SetRowColor{white} Alt + PgDn & Goto next tab (tabbed interface) \tn % Row Count 29 (+ 2) % Row 16 \SetRowColor{LightBackground} Alt + PgUp & Goto prev. tab (tabbed interface) \tn % Row Count 31 (+ 2) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{1.29402 cm} x{3.68298 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{WORKSPACE - GENERAL (cont)}} \tn % Row 17 \SetRowColor{LightBackground} Ctrl + F6 & Open Landmarks \tn % Row Count 1 (+ 1) % Row 18 \SetRowColor{white} Ctrl + F9 & Display keyboard shortcuts \tn % Row Count 2 (+ 1) % Row 19 \SetRowColor{LightBackground} Ctrl + ` & Invert app colors \tn % Row Count 3 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{NOTES:}} \newline \textasciicircum{}{\bf{1)}} Zooming in SAS Studio hides the browser window scroll bars\textasciicircum{} \newline \textasciicircum{}{\bf{2)}} One may alternatively use the browser's functionality for zooming\textasciicircum{} \newline \textasciicircum{}{\bf{3)}} Display the Program/Log/Results tab, then press keyboard shortcut\textasciicircum{} \newline \textasciicircum{}{\bf{4)}} All libraries and work-tables created during the session are deleted\textasciicircum{}} \tn \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}{TEXT - GENERAL}} \tn % Row 0 \SetRowColor{LightBackground} Ctrl + Backspace & Delete to start of current word \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} Ctrl + Delete & Delete to start of next word \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} Insert & Toggle text mode insert | overwrite \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} Tab & Indent text \tn % Row Count 7 (+ 1) % Row 4 \SetRowColor{LightBackground} Shift + Tab & Decrease indentation \tn % Row Count 8 (+ 1) % Row 5 \SetRowColor{white} Ctrl + Shift + U & Cycle case upper | lower | mixed \tn % Row Count 10 (+ 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}{TEXT - SELECTION}} \tn % Row 0 \SetRowColor{LightBackground} Ctrl + A & All text in document \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Shift + Ctrl + Home & To top/start of program \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} Shift + Ctrl + End & To bottom/end of program \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} Shift + Ctrl + Up & To start of current paragraph/line \tn % Row Count 7 (+ 2) % Row 4 \SetRowColor{LightBackground} Shift + Ctrl + Down & To end of current paragraph/line \tn % Row Count 9 (+ 2) % Row 5 \SetRowColor{white} Shift + Ctrl + Left & To start of previous word \tn % Row Count 11 (+ 2) % Row 6 \SetRowColor{LightBackground} Shift + Ctrl + Right & To start of next word \tn % Row Count 13 (+ 2) \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}{TEXT - CODE EDITOR}} \tn % Row 0 \SetRowColor{LightBackground} Ctrl + / & Toggle line comment \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Ctrl + \textbackslash{} & Toggle block comment \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Ctrl + Num {[}-{]} & Fold section \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} Ctrl + Num {[}+{]} & Unfold section \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} Alt + Num {[}-{]} & Fold all \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} Alt + Num {[}+{]} & Unfold all \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} Ctrl + Spacebar & Show autocomplete list \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} Ctrl + Shift + Spacebar & Show prev. autocomplete list \tn % Row Count 9 (+ 2) % Row 8 \SetRowColor{LightBackground} F3 & Submit/Run selected/all code \tn % Row Count 11 (+ 2) % Row 9 \SetRowColor{white} Alt + A & Create new snippet \tn % Row Count 12 (+ 1) % Row 10 \SetRowColor{LightBackground} Alt + I & Insert snippet \tn % Row Count 13 (+ 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}{NAVIGATION - NAVIGATION PANE}} \tn % Row 0 \SetRowColor{LightBackground} Shift + Alt + F10 & Open a pop-up menu \textasciicircum{}{\bf{1) 2)}}\textasciicircum{} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} Home & Navigate to top level node \textasciicircum{}{\bf{2)}}\textasciicircum{} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} Ctrl + Home & Navigate to top sect. node \textasciicircum{}{\bf{2)}}\textasciicircum{} \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} End & Navigate to bottom level node \textasciicircum{}{\bf{2)}}\textasciicircum{} \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} Ctrl + End & Navigate to bottom sect. node \textasciicircum{}{\bf{2)}}\textasciicircum{} \tn % Row Count 10 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{FOOTNOTES:}} \newline \textasciicircum{}{\bf{1)}} An item must be selected before pressing the keyboard shortcut\textasciicircum{} \newline \textasciicircum{}{\bf{2)}} Valid in the navigation pane\textasciicircum{}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.19448 cm} x{3.78252 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{NAVIGATION - GENERAL}} \tn % Row 0 \SetRowColor{LightBackground} Ctrl + Home & Jump to the top \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} Ctrl + End & Jump to the bottom \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} Ctrl + Up & Jump to start of current paragraph/line \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} Ctrl + Down & Jump to start of next paragraph/line \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} Ctrl + Left & Jump to start of previous word \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} Ctrl + Right & Jump to start of next word \tn % Row Count 12 (+ 2) % Row 6 \SetRowColor{LightBackground} Alt + Up & Jump to first visible line \tn % Row Count 13 (+ 1) % Row 7 \SetRowColor{white} Alt + Down & Jump to last visible line \tn % Row Count 15 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{0.84609 cm} x{4.13091 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{NAVIGATION - CODE EDITOR}} \tn % Row 0 \SetRowColor{LightBackground} Alt + 1 & Focus the first active pane \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} Alt + 2 & Focus the current active secondary tab \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} Alt + 3 & Focus the label of the primary tab \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} Alt + 4 & Focus the body of the Code tab \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} Alt + 5 & Go to the Log \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} Alt + 6 & Go to the Results \tn % Row Count 12 (+ 2) % Row 6 \SetRowColor{LightBackground} Ctrl + G & Jump to a specific line number \tn % Row Count 14 (+ 2) % Row 7 \SetRowColor{white} Ctrl + {[} & Jump to matching start bracket \tn % Row Count 16 (+ 2) % Row 8 \SetRowColor{LightBackground} Ctrl + {]} & Jump to matching end bracket \tn % Row Count 18 (+ 2) % Row 9 \SetRowColor{white} Ctrl + ( & Jump to the matching parenthesis \tn % Row Count 20 (+ 2) % Row 10 \SetRowColor{LightBackground} Alt + {[} & Jump to the matching DO \tn % Row Count 22 (+ 2) % Row 11 \SetRowColor{white} Alt + {]} & Jump to the matching END \tn % Row Count 24 (+ 2) % Row 12 \SetRowColor{LightBackground} Alt + L & Clear the Log \tn % Row Count 26 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.79172 cm} x{3.18528 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{SAS STUDIO - GENERAL}} \tn % Row 0 \SetRowColor{LightBackground} ESC & Quit current \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Enter & Perform the default action \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} Delete & Delete \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} Ctrl + X & Cut selected text \tn % Row Count 5 (+ 1) % Row 4 \SetRowColor{LightBackground} Ctrl + C & Copy selected text \tn % Row Count 6 (+ 1) % Row 5 \SetRowColor{white} Ctrl + V & Paste selected text \tn % Row Count 7 (+ 1) % Row 6 \SetRowColor{LightBackground} Ctrl + P & Print \tn % Row Count 8 (+ 1) % Row 7 \SetRowColor{white} Ctrl + Shift + PgUp & Upload \tn % Row Count 10 (+ 2) % Row 8 \SetRowColor{LightBackground} Ctrl + Shift + PgDn & Download \tn % Row Count 12 (+ 2) % Row 9 \SetRowColor{white} Alt + S & Search \tn % Row Count 13 (+ 1) % Row 10 \SetRowColor{LightBackground} Alt + U & Submission status \tn % Row Count 14 (+ 1) % Row 11 \SetRowColor{white} Alt + W & Close active primary tab \tn % Row Count 15 (+ 1) % Row 12 \SetRowColor{LightBackground} Alt + M & Toggle \& focus command line \tn % Row Count 17 (+ 2) % Row 13 \SetRowColor{white} Ctrl + Alt + I & Show \& focus command line \tn % Row Count 18 (+ 1) % Row 14 \SetRowColor{LightBackground} Ctrl + Shift + X & Clear command queue \tn % Row Count 20 (+ 2) % Row 15 \SetRowColor{white} Ctrl + Alt + 1 & Focus on toolbar button \tn % Row Count 21 (+ 1) % Row 16 \SetRowColor{LightBackground} Alt + 7 & Go to output data tab \tn % Row Count 22 (+ 1) % Row 17 \SetRowColor{white} Ctrl + Alt + T & Go to the toolbar (expr. builder) \tn % Row Count 24 (+ 2) % Row 18 \SetRowColor{LightBackground} Ctrl + Alt + V & Go to the values tab (expr. bldr) \tn % Row Count 26 (+ 2) % Row 19 \SetRowColor{white} Ctrl + Alt + L & Go to the log tab (expr. builder) \tn % Row Count 28 (+ 2) % Row 20 \SetRowColor{LightBackground} F8 & Run all \tn % Row Count 29 (+ 1) % Row 21 \SetRowColor{white} F1 & Open SAS Studio online help \tn % Row Count 31 (+ 2) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{1.79172 cm} x{3.18528 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{SAS STUDIO - GENERAL (cont)}} \tn % Row 22 \SetRowColor{LightBackground} Ctrl + H & Find and replace \tn % Row Count 1 (+ 1) % Row 23 \SetRowColor{white} Ctrl + Shift + B & Format code \tn % Row Count 3 (+ 2) % Row 24 \SetRowColor{LightBackground} Alt + F1 & Toggle focus main tab | editor \tn % Row Count 5 (+ 2) % Row 25 \SetRowColor{white} Shift + F1 & Toggle focus parent tab | editor \tn % Row Count 7 (+ 2) % Row 26 \SetRowColor{LightBackground} F6 & Focus first control in prev. sect. \tn % Row Count 9 (+ 2) % Row 27 \SetRowColor{white} Shift + F6 & Focus first control in next sect. \tn % Row Count 11 (+ 2) % Row 28 \SetRowColor{LightBackground} Alt + R & Recall last run code \tn % Row Count 12 (+ 1) % Row 29 \SetRowColor{white} Ctrl + Shift + D & Open DATA step in Debugger \tn % Row Count 14 (+ 2) % Row 30 \SetRowColor{LightBackground} Alt + F10 & Execute one program statement \tn % Row Count 16 (+ 2) % Row 31 \SetRowColor{white} Alt + Shift + B & Toggle breakpoint marker \tn % Row Count 18 (+ 2) % Row 32 \SetRowColor{LightBackground} Shift + F9 & Clear all breakpoints \tn % Row Count 19 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}