\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{rhorber} \pdfinfo{ /Title (jira-text-formatting-notation.pdf) /Creator (Cheatography) /Author (rhorber) /Subject (JIRA Text Formatting Notation 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}{255688} \definecolor{LightBackground}{HTML}{F1F4F7} \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{JIRA Text Formatting Notation Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{rhorber} via \textcolor{DarkBackground}{\uline{cheatography.com/45342/cs/13350/}}} \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}rhorber \\ \uline{cheatography.com/rhorber} \\ \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 March, 2018.\\ Updated 1st March, 2018.\\ 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.4885 cm} x{2.4885 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Text Effects}} \tn % Row 0 \SetRowColor{LightBackground} *strong* & {\bf{bold}} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \_emphasis\_ & {\emph{italic}} \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} ??citation?? & Citation \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} -deleted- & \textasciitilde{}\textasciitilde{}strikethrough\textasciitilde{}\textasciitilde{} \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} +inserted+ & underlined \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} \textasciicircum{}superscript\textasciicircum{} & \textasciicircum{}superscript\textasciicircum{} \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} \textasciitilde{}subscript\textasciitilde{} & subscript \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} \{\{monospace\}\} & `monospace/code` \tn % Row Count 8 (+ 1) % Row 8 \SetRowColor{LightBackground} bq. Text & Block quote, like Cheatography's Answer block \tn % Row Count 11 (+ 3) % Row 9 \SetRowColor{white} \{quote\}\{\{nl\}\}quotable\{\{nl\}\}paragraph\{\{nl\}\}\{quote\} & Block quote a multiline paragraph \tn % Row Count 14 (+ 3) % Row 10 \SetRowColor{LightBackground} \{color:red\}\{\{nl\}\}text\{\{nl\}\}\{color\} & Text color \tn % Row Count 16 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.18988 cm} x{2.78712 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Links}} \tn % Row 0 \SetRowColor{LightBackground} {[}\#anchor{]}\{\{nl\}\}{[}\textasciicircum{}attachment.ext{]} & Internal link to an anchor or attachment \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {[}http://example.com{]} & External link \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} {[}Alias|http://...{]} & External link with alias \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} {[}mailto:foobar@example.com{]} & Email link, with icon \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} {[}file:///c:/tmp/foo.txt{]} & Download link to a file \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} \{anchor:anchorname\} & Creates an anchor \tn % Row Count 12 (+ 2) % Row 6 \SetRowColor{LightBackground} {[}\textasciitilde{}username{]} & Link to user profile page \tn % Row Count 14 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.64241 cm} x{3.33459 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Text Breaks}} \tn % Row 0 \SetRowColor{LightBackground} (empty line) & Produces a new paragraph \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \textbackslash{}\textbackslash{} & Creates a line break \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} -{}-{}-{}- & Horizontal ruler \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} -{}-{}- & Long dash symbol \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} -{}- & Dash symbol \tn % Row Count 5 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Attachments}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Some attachments of a specific type can be embedded into a wiki renderable field from attached files, taking in a comma-separated list of properties: \newline % Row Count 3 (+ 3) `!quicktime.mov!` \newline % Row Count 4 (+ 1) `!spaceKey:pageTitle\textasciicircum{}attachment.mov!` \newline % Row Count 5 (+ 1) `!quicktime.mov|width=300,height=40!` \newline % Row Count 6 (+ 1) `!media.wmv|id=media!`% Row Count 7 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Tables}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{||heading 1||heading 2||heading 3|| \newline |col A1|col A2|col A3| \newline |col B1|col B2|col B3|} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Makes a table. Use double bars for a table \newline heading row.} \tn \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}{Lists}} \tn % Row 0 \SetRowColor{LightBackground} *~some\{\{nl\}\}*~bullet\{\{nl\}\}**~indented\{\{nl\}\}**~bullets\{\{nl\}\}*~points & A bulleted list (must be in first column) \tn % Row Count 5 (+ 5) % Row 1 \SetRowColor{white} \#~a\{\{nl\}\}\#~numbered\{\{nl\}\}\#~list & A numbered list (must be in first column). \tn % Row Count 8 (+ 3) % Row 2 \SetRowColor{LightBackground} -~different\{\{nl\}\}-~bullet\{\{nl\}\}-~types & List items (with -), several lines create a single list \tn % Row Count 11 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{Use more (**, ***; \#\#, \#\#\#) for deeper indentations. Bulleted and numbered lists can be mixed (\#*, *\#).} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.54747 cm} x{4.42953 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Headings}} \tn % Row 0 \SetRowColor{LightBackground} h1 & Biggest heading \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} h2 & Bigger heading \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} h3 & Big heading \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} h4 & Normal heading \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} h5 & Small heading \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} h6 & Smallest heading \tn % Row Count 6 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{To create a header, place "hn. " at the start of the line (where n can be a number from 1-6).} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Images}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{`!http://example.com/img.gif!\{\{nl\}\}!attached-image.gif!`} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Inserts an image into the page.} \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{`!img.jpg|thumbnail!`} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Insert a thumbnail of the image into the page.} \tn % Row Count 5 (+ 2) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{`!img.gif|align=right, vspace=4!`} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}For any image, you can also specify attributes of the image tag as a comma separated list of name=value pairs like so.} \tn % Row Count 9 (+ 4) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4177 cm} x{1.79611 cm} p{0.45947 cm} x{1.50372 cm} } \SetRowColor{DarkBackground} \mymulticolumn{4}{x{5.377cm}}{\bf\textcolor{white}{Misc. (Icons/emoticons)}} \tn % Row 0 \SetRowColor{LightBackground} \textbackslash{}x & Escape a character & & \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} :) & 😊 & :( & ☚ī¸ \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} :P & 😛 & :D & 😀 \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} ;) & 😉 & (y) & \{\{fa-thumbs-up\}\} \tn % Row Count 6 (+ 2) % Row 4 \SetRowColor{LightBackground} (n) & \{\{fa-thumbs-down\}\} & (i) & \{\{fa-info-circle\}\} (blue) \tn % Row Count 8 (+ 2) % Row 5 \SetRowColor{white} (/) & \{\{fa-check-circle\}\} (green) & (x) & ❎ (red) \tn % Row Count 10 (+ 2) % Row 6 \SetRowColor{LightBackground} (!) & \{\{fa-exclamation-triangle\}\} (yellow) & (+) & \{\{fa-plus-circle\}\} (green) \tn % Row Count 13 (+ 3) % Row 7 \SetRowColor{white} (-) & \{\{fa-minus-square\}\} (red) & (?) & \{\{fa-question-circle\}\} (blue) \tn % Row Count 16 (+ 3) % Row 8 \SetRowColor{LightBackground} (on) & \{\{fa-lightbulb-o\}\} (lit) & (off) & \{\{fa-lightbulb-o\}\} (off) \tn % Row Count 18 (+ 2) % Row 9 \SetRowColor{white} (*) & \{\{fa-star\}\} (yellow) & (*r) & \{\{fa-star\}\} (red) \tn % Row Count 20 (+ 2) % Row 10 \SetRowColor{LightBackground} (*g) & \{\{fa-star\}\} (green) & (*b) & \{\{fa-star\}\} (blue) \tn % Row Count 22 (+ 2) % Row 11 \SetRowColor{white} (*y) & \{\{fa-star\}\} (yellow) & & \tn % Row Count 24 (+ 2) % Row 12 \SetRowColor{LightBackground} \seqsplit{(flag)} & \{\{fa-flag\}\} (red) & \seqsplit{(flagoff)} & \{\{fa-flag-o\}\} \tn % Row Count 27 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}----} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Advanced Formatting}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{`\{noformat\}\{\{nl\}\}preformatted piece of text\{\{nl\}\}so *no* further \_formatting\_ is done here\{\{nl\}\}\{noformat\}`} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Preformatted text block with no syntax highlighting.} \tn % Row Count 5 (+ 5) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{`\{code:title=Bar.java\}\{\{nl\}\}public String getFoo() \{\{\{nl\}\}~~return foo;\{\{nl\}\}\}\{\{nl\}\}\{code\}`} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Makes a preformatted block of code with syntax highlighting. Languages: Java (default), JavaScript, ActionScript, XML, SQL.} \tn % Row Count 11 (+ 6) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{`\{panel\}\{\{nl\}\}Some text\{\{nl\}\}\{panel\}`} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Embraces a block of text within a fully customizable panel.} \tn % Row Count 14 (+ 3) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{`\{panel:title=My Title|borderStyle=dashed\}\{\{nl\}\}a block of text surrounded with a *panel*\{\{nl\}\}\{panel\}`} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Panel with optional parameters.} \tn % Row Count 18 (+ 4) \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{The optional parameters you can define, for `panel` and `code`, are the following ones: \newline title, borderStyle, borderColor, borderWidth, bgColor, titleBGColor} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}