\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{iherdt} \pdfinfo{ /Title (nerdt-get-functions.pdf) /Creator (Cheatography) /Author (iherdt) /Subject (NERDT Get Functions 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}{F2A711} \definecolor{LightBackground}{HTML}{FEF9F0} \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{NERDT Get Functions Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{iherdt} via \textcolor{DarkBackground}{\uline{cheatography.com/23874/cs/5967/}}} \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}iherdt \\ \uline{cheatography.com/iherdt} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 3rd November, 2015.\\ Updated 12th 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{tabularx}{17.67cm}{x{5.7358 cm} x{5.5671 cm} x{5.5671 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Vertica Commands}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{`get-imps-buyerid-sellerid-interval}}` & Returns all imps transacted between a given buyer and seller member & get-im\{\{nobreak\}\}ps-buyerid-sellerid 668 357 \tn % Row Count 6 (+ 6) % Row 1 \SetRowColor{white} {\bf{`get-imps-dealids}}` & Gets impressions transacted on deal ID & \seqsplit{get-imps-dealids} 95674 \tn % Row Count 9 (+ 3) % Row 2 \SetRowColor{LightBackground} {\bf{`get-imps-campaignids-interval}}` & Returns all imps on a given campaign on a given interval & \seqsplit{get-imps-campaignids-interval} 10488813 7d \tn % Row Count 14 (+ 5) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{4.7236 cm} x{6.5793 cm} x{5.5671 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Campaign Troubleshooting}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{`get-campaign-dealids}}` & Gets campaigns for deal ID & \seqsplit{get-campaign-dealids} 56256,56262  \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} {\bf{`get-profile-campaignids}}` & Gets profile for campaign ID & \seqsplit{get-profile-campaignids} 4223456 \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} {\bf{`get-domain-listids}}` & Provides domains on list for given list ID & \seqsplit{get-domains-listids} 6836 \tn % Row Count 9 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{5.3984 cm} x{5.7358 cm} x{5.7358 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Creative Troubleshooting}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{`get-campaign-creativeids}}` & Gets campaigns for creative ID & \seqsplit{get-campaign-creativeids} 36844676 \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} {\bf{`get-lineitem-creativeids}}` & Gets line items for creative ID & \seqsplit{get-lineitem-creativeids} 27895619 \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} {\bf{`get-brand-creativeids}}` & Gets brand of the creative & \seqsplit{get-brand-creativeids} 1112212,1112211  \tn % Row Count 9 (+ 3) % Row 3 \SetRowColor{white} {\bf{`get-creativechecks-creativeids}}` & Gets standard information on creative ID & \seqsplit{get-creativechecks-creativeids} 35491073 \tn % Row Count 13 (+ 4) % Row 4 \SetRowColor{LightBackground} {\bf{`get-adxchecks-creativeids}}` & Runs adx checks for creative ID & \seqsplit{get-adxchecks-creativeids} 1112212,1112211 \tn % Row Count 17 (+ 4) % Row 5 \SetRowColor{white} {\bf{`get-facebookchecks-creativeids}}` & Conducts Facebook checks on creative ID & \seqsplit{get-facebookchecks-creativeids} 1112212,1112211  \tn % Row Count 21 (+ 4) % Row 6 \SetRowColor{LightBackground} {\bf{`get-creative-keyword}}` & Finds creative by keyword & \seqsplit{get-creative-keyword} doubleclick \tn % Row Count 24 (+ 3) % Row 7 \SetRowColor{white} {\bf{`get-creative-folderids}}` & Gets all creatives in folder ID & \seqsplit{get-creatives-folderids} 482036,482034 \tn % Row Count 27 (+ 3) % Row 8 \SetRowColor{LightBackground} {\bf{`get-attribute-creativeids}}` & Gets attributes for creative ID & \seqsplit{get-attributes-creativeids} 1112211,1112212 \tn % Row Count 31 (+ 4) \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{5.3984 cm} x{5.7358 cm} x{5.7358 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Creative Troubleshooting (cont)}} \tn % Row 9 \SetRowColor{LightBackground} {\bf{`get-auditstats-creativeids}}` & Gets audit UI details for creative ID & \seqsplit{get-auditstats-creativeids} 35339037,35339039 \tn % Row Count 4 (+ 4) % Row 10 \SetRowColor{white} {\bf{`get-audit-creativeids}}` & Gets audit information for creative ID & \seqsplit{get-auditchecks-creativeids} 1112211,1112212  \tn % Row Count 8 (+ 4) % Row 11 \SetRowColor{LightBackground} {\bf{`get-adxsnippet-creativeids}}` & Retrieves creative snippet from AdX API & \seqsplit{get-adxsnippet-creativeids} 1112212,1112211 \tn % Row Count 12 (+ 4) % Row 12 \SetRowColor{white} {\bf{`get-sherlockreasons-creativeids}}` & Gets sherlock data for creative ID & \seqsplit{get-sherlockreasons-creativeids} 33333333 \tn % Row Count 16 (+ 4) % Row 13 \SetRowColor{LightBackground} {\bf{`get-brand-name}}` & Finds brand by name & \seqsplit{get-brand-name} coke \tn % Row Count 18 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{5.7358 cm} x{5.5671 cm} x{5.5671 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Troubleshooting Deals}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{`get-deal-codes}}` & Returns AppNexus deal object ID and basic details for a given external deal code. & \seqsplit{get-deal-dealcodes} \seqsplit{443884788437221614} \tn % Row Count 7 (+ 7) % Row 1 \SetRowColor{white} {\bf{`get-dealchecks-dealids}}` & Gets deal \seqsplit{troubleshooting} information on deal ID & \seqsplit{get-dealchecks-dealids} 29303,29310 \tn % Row Count 11 (+ 4) % Row 2 \SetRowColor{LightBackground} {\bf{`get-partnercentersettings-memberids}}` & Provides information about how a member is interacting with other members on console & \seqsplit{get-partnercentersettings-memberids} 243,1813 \tn % Row Count 18 (+ 7) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{5.7358 cm} x{5.5671 cm} x{5.5671 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Sell-side Troubleshooting}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{`get-debugurl-placementids}}` & Gets debug url for placement ID & \seqsplit{get-debugurl-placementids} 5433154 \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} {\bf{`get-placement-customcategoryids}}` & Gets placements / placement groups for custom category ID & \seqsplit{get-placement-customcategoryids} 27419 \tn % Row Count 8 (+ 5) % Row 2 \SetRowColor{LightBackground} {\bf{`get-placement-memberids\{\{nobreak\}\}-categoryids}}` & Returns placements \seqsplit{characterized} by a specific universal category id in a specific member & \seqsplit{get-placement-memberids-categoryids} 243 45 \tn % Row Count 15 (+ 7) % Row 3 \SetRowColor{white} {\bf{`get-domainauditstatus-domains}}` & Looks up domain audit status for a given domain & \seqsplit{get-domainauditstatustool-domains} cnn.com,abc.com\{\{nobreak\}\} \tn % Row Count 20 (+ 5) % Row 4 \SetRowColor{LightBackground} {\bf{`get-category-nameslike}}` & Finds category by name & \seqsplit{get-category-nameslike} gambling,sports \tn % Row Count 23 (+ 3) % Row 5 \SetRowColor{white} {\bf{`get-adprofile-adqualityruleids}}` & Gets ad profile for AQ rule ID & \seqsplit{get-adprofile-adqualityruleids} 223044 \tn % Row Count 26 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \end{document}