\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{AoNo (SerenaHoenn)} \pdfinfo{ /Title (google-search-engine-optimization-seo-cheat-sheet.pdf) /Creator (Cheatography) /Author (AoNo (SerenaHoenn)) /Subject (Google Search Engine Optimization(SEO) 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}{0F47FF} \definecolor{LightBackground}{HTML}{F0F3FF} \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{Google Search Engine Optimization(SEO) Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{AoNo (SerenaHoenn)} via \textcolor{DarkBackground}{\uline{cheatography.com/20375/cs/3169/}}} \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}AoNo (SerenaHoenn) \\ \uline{cheatography.com/serenahoenn} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 11th January, 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{multicols*}{3} \begin{tabularx}{5.377cm}{x{1.69218 cm} x{3.28482 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Basic Examples}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{This Search}} & {\bf{Finds Pages Containing...}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} biking Italy & the words biking and Italy \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} recycle steel OR iron & information on recycling steel or recycling iron \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} "I have a dream" & the exact phrase I have a dream \tn % Row Count 7 (+ 2) % Row 4 \SetRowColor{LightBackground} salsa –dance & the word salsa but NOT the word dance \tn % Row Count 9 (+ 2) % Row 5 \SetRowColor{white} Louis "I" France & information about Louis the First (I), weeding out other kings of France \tn % Row Count 12 (+ 3) % Row 6 \SetRowColor{LightBackground} castle \textasciitilde{}glossary & glossaries about castles, as well as dictonaries, lists of terms, terminology, etc. \tn % Row Count 16 (+ 4) % Row 7 \SetRowColor{white} \seqsplit{fortune-telling} & all forms of the term, whether spelled as a single word, a phrase, or hyphenated \tn % Row Count 20 (+ 4) % Row 8 \SetRowColor{LightBackground} \seqsplit{define:imbroglio} & definitions of the word imbroglio from the Web \tn % Row Count 22 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.68655 cm} x{1.92234 cm} x{1.96811 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{5.377cm}}{\bf\textcolor{white}{Alternative Query Types}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Operators}} & {\bf{Meaning}} & {\bf{Type Into Search Box (\& Results)}} \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} \seqsplit{cache:} & Display Google's cached version of a web page. & \seqsplit{cache:www.irs.gov(Show} Google's cached version of the US Internal Revenue Service home page.) \tn % Row Count 9 (+ 6) % Row 2 \SetRowColor{LightBackground} info: (or id:) & Find info about a page. & \seqsplit{info:www.theonion.com} (Find information about The Onion website.) \tn % Row Count 13 (+ 4) % Row 3 \SetRowColor{white} \seqsplit{related:} & List web pages that are similar or related to the URL. & \seqsplit{related:www.healthfinder.gov} (Find websites related to the Healthfinder website.) \tn % Row Count 18 (+ 5) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.46464 cm} x{0.9154 cm} x{2.19696 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{5.377cm}}{\bf\textcolor{white}{Calculator}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Operators}} & {\bf{Meaning}} & {\bf{Type Into Search Box (\& Results)}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} + – * / & basic \seqsplit{arithmetic} & 12 + 34 - 56 * 7 / 8 \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \% {\bf{of}} & \seqsplit{percentage} of & 45\% of 39 \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} \textasciicircum{} or ** & raise to a power & 2\textasciicircum{}5 or 2**5 \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} old units {\bf{in}} new units & convert units & {\bf{300 Euros in USD}}, {\bf{130 lbs in kg}}, or {\bf{31 in hex}} \tn % Row Count 11 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.64078 cm} x{1.96811 cm} x{1.96811 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{5.377cm}}{\bf\textcolor{white}{Restrict Search to Google News}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Operators}} & {\bf{Meaning}} & {\bf{Type Into Search Box (\& Results)}} \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} \seqsplit{location:} & Find News articles from sources located in the specified location. & queen location:uk (Find British news articles on the Queen.) \tn % Row Count 7 (+ 4) % Row 2 \SetRowColor{LightBackground} \seqsplit{source:} & Find News articles from specified sources. & peace source:ha\_aretz (Show articles on peace from the Israeli newspaper Ha'aretz.) \tn % Row Count 12 (+ 5) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.64078 cm} x{1.96811 cm} x{1.96811 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{5.377cm}}{\bf\textcolor{white}{Restrict Search to Google Groups}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Operators}} & {\bf{Meaning}} & {\bf{Type Into Search Box (\& Results)}} \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} \seqsplit{author:} & Find Groups messages from the specified author. & flying author:Hamish author:Reid (Search for Hamish Reid's articles on flying.) \tn % Row Count 8 (+ 5) % Row 2 \SetRowColor{LightBackground} \seqsplit{group:} & Find Groups messages from the specified newsgroup. & ivan doig \seqsplit{group:rec.arts.books} (Search for postings about Ivan Doig in the group rec.arts.books.) \tn % Row Count 14 (+ 6) % Row 3 \SetRowColor{white} \seqsplit{insubject:} & Find Groups messages containing crazy quilts in the subject. & insubject:"crazy quilts" (Find articles containing crazy quilts in the subject line.) \tn % Row Count 19 (+ 5) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{0.86963 cm} x{1.87657 cm} x{1.8308 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{5.377cm}}{\bf\textcolor{white}{Restrict Search}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Operators}} & {\bf{Meaning}} & {\bf{Type Into Search Box (\& Results)}} \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} city1 city2 & Book flights. & sfo bos (Book flights from San Francisco (SFO) to Boston (BOS).) \tn % Row Count 7 (+ 4) % Row 2 \SetRowColor{LightBackground} site: & Search only one website or domain. & Halloween \seqsplit{site:www.census.gov} (Search for information on Halloween gathered by the US Census Bureau.) \tn % Row Count 14 (+ 7) % Row 3 \SetRowColor{white} {[}\#{]}..{[}\#{]} & Search within a range of numbers. & Dave Barry pirate 2002..2006 (Search for Dave Barry articles mentioning pirates written in these years.) \tn % Row Count 21 (+ 7) % Row 4 \SetRowColor{LightBackground} \seqsplit{filetype:} (or ext:) & Find documents of the specified type. & Form 1098-T IRS filetype:pdf (Find the US tax form 1098-T in PDF format.) \tn % Row Count 26 (+ 5) % Row 5 \SetRowColor{white} link: & Find linked pages, i.e., show pages that point to the URL. & \seqsplit{link:warriorlibrarian}.com (Find pages that link to Warrior Librarian's website.) \tn % Row Count 31 (+ 5) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.09848 cm} x{1.73926 cm} x{1.73926 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{5.377cm}}{\bf\textcolor{white}{Specialized Information Queries}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Operators}} & {\bf{Meaning}} & {\bf{Type Into Search Box (\& Results)}} \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} book (or books) & Search full-text of books. & book Ender's Game (Show book-related information. Note: No colon needed after book.) \tn % Row Count 9 (+ 6) % Row 2 \SetRowColor{LightBackground} define, what is, what are & Show a definition for a word or phrase. & define monopsony, what is podcast (Show a definition for the words monopsony and podcast. Note: No colon after define, what is, or what are.) \tn % Row Count 19 (+ 10) % Row 3 \SetRowColor{white} define: & Provide definitions for words, phrases, and acronyms from the Web. & define:kerning (Find definitions for kerning from the Web.) \tn % Row Count 24 (+ 5) % Row 4 \SetRowColor{LightBackground} movie: & Find reviews and showtimes. & movie: traffic (Search for information about this movie, including reviews, showtimes, etc.) \tn % Row Count 31 (+ 7) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{1.09848 cm} x{1.73926 cm} x{1.73926 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{5.377cm}}{\bf\textcolor{white}{Specialized Information Queries (cont)}} \tn % Row 5 \SetRowColor{LightBackground} stocks: & Given ticker symbols, show stock information & stocks: goog (Find Google's current stock price.) \tn % Row Count 4 (+ 4) % Row 6 \SetRowColor{white} weather & Given a location (US zip code or city), show the weather & weather Seattle WA, weather 81612 (Show the current weather and forecast. Note: No colon after weather.) \tn % Row Count 11 (+ 7) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.64078 cm} x{1.96811 cm} x{1.96811 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{5.377cm}}{\bf\textcolor{white}{Restrict Search to Sites where Query Words Appear}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Operators}} & {\bf{Meaning}} & {\bf{Type Into Search Box (\& Results)}} \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} \seqsplit{allinanchor:} & All query words must appear in anchor text of links to the page. & \seqsplit{allinanchor:useful} parenting sites (Search for pages that are called useful parenting sites by others.) \tn % Row Count 10 (+ 7) % Row 2 \SetRowColor{LightBackground} \seqsplit{inanchor:} & Terms must appear in anchor text of links to the page. & restaurants Portland \seqsplit{inanchor:kid-friendly} (Search for pages on Portland restaurants for which links to the page say they are "kid friendly.") \tn % Row Count 19 (+ 9) % Row 3 \SetRowColor{white} \seqsplit{allintext:} & All query words must appear in the text of the page. & \seqsplit{allintext:ingredients} cilantro chicken lime (Search for recipes with these three ingredients.) \tn % Row Count 25 (+ 6) % Row 4 \SetRowColor{LightBackground} \seqsplit{intext:} & The terms must appear in the text of the page. & Dan Shugar \seqsplit{intext:Powerlight} (Find pages mentioning Dan Shugar where his company, Powerlight, is included in the text of the page, i.e., less likely to be from the corporate website.) \tn % Row Count 36 (+ 11) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{p{0.64078 cm} x{1.96811 cm} x{1.96811 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{5.377cm}}{\bf\textcolor{white}{Restrict Search to Sites where Query Words Appear (cont)}} \tn % Row 5 \SetRowColor{LightBackground} \seqsplit{allintitle:} & All query words must appear in the title of the page. & allintitle: Google Advanced Operators (Search for pages with titles containing "Google," "Advanced,", and "Operators".) \tn % Row Count 7 (+ 7) % Row 6 \SetRowColor{white} \seqsplit{intitle:} & The terms must appear in the title of the page. & movies comedy intitle:top ten (Search for pages with the words movie and comedy that include top ten in the title of the page.) \tn % Row Count 15 (+ 8) % Row 7 \SetRowColor{LightBackground} \seqsplit{allinurl:} & All query words must appear in the URL. & allinurl:pez faq (Search for pages containing the words pez \& faq in the URL.) \tn % Row Count 20 (+ 5) % Row 8 \SetRowColor{white} \seqsplit{inurl:} & The terms must appear in the URL of the page. & pharmaceutical inurl:investor (Search for pages in which the URL contains the word investor.) \tn % Row Count 26 (+ 6) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}