\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{Suniahk (suniahk)} \pdfinfo{ /Title (freemarker-directives.pdf) /Creator (Cheatography) /Author (Suniahk (suniahk)) /Subject (Freemarker Directives 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}{20BFBA} \definecolor{LightBackground}{HTML}{F1FBFA} \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{Freemarker Directives Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{Suniahk (suniahk)} via \textcolor{DarkBackground}{\uline{cheatography.com/19837/cs/2789/}}} \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}Suniahk (suniahk) \\ \uline{cheatography.com/suniahk} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 6th November, 2014.\\ 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{2.23965 cm} x{2.73735 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Built In References - Strings}} \tn % Row 0 \SetRowColor{LightBackground} boolean & Converts string to boolean (true, false) \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} cap\_first & Capitalizes first word of string \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} capitalize & Capitalizes every word in string properly \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} chop\_linebreak & Removes line-break from end of string \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} contains (substring) & Checks if string contains substring \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} date, time, datetime & Converts string to date/time/datetime based on *\_format \tn % Row Count 13 (+ 3) % Row 6 \SetRowColor{LightBackground} ends\_with (substring) & Checks if string ends with substring \tn % Row Count 15 (+ 2) % Row 7 \SetRowColor{white} \seqsplit{ensure\_ends\_with} (substring) & Returns string with substring appended if not already there \tn % Row Count 18 (+ 3) % Row 8 \SetRowColor{LightBackground} \seqsplit{ensure\_starts\_with} (substring) & Same as ensure\_ends\_with, but prepended \tn % Row Count 20 (+ 2) % Row 9 \SetRowColor{white} groups{[}x{]} & Returns the returns the regex group from the matches method if it exists \tn % Row Count 24 (+ 4) % Row 10 \SetRowColor{LightBackground} html & Returns the string with html characters parsed to ampersand codes \tn % Row Count 27 (+ 3) % Row 11 \SetRowColor{white} index\_of (substring) & Returns the index of the requested substring in string \tn % Row Count 30 (+ 3) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{2.23965 cm} x{2.73735 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Built In References - Strings (cont)}} \tn % Row 12 \SetRowColor{LightBackground} j\_string & Escapes the string for Java String Literals \tn % Row Count 2 (+ 2) % Row 13 \SetRowColor{white} js\_string & Escapes the string for Javascript String Literals \tn % Row Count 5 (+ 3) % Row 14 \SetRowColor{LightBackground} json\_string & Escapes the string for JSON String Literals \tn % Row Count 7 (+ 2) % Row 15 \SetRowColor{white} keep\_after (substring, flags="") & Returns all text after substring, not including substring \tn % Row Count 10 (+ 3) % Row 16 \SetRowColor{LightBackground} keep\_before (substring, flags="") & Returns all text before substring, not including substring \tn % Row Count 13 (+ 3) % Row 17 \SetRowColor{white} last\_index\_of (substring) & Returns the index of the last occurance of substring \tn % Row Count 16 (+ 3) % Row 18 \SetRowColor{LightBackground} left\_pad (x, seperator=" ") & Returns the string with {[}seperator{]} prepended up to a maximum length \tn % Row Count 20 (+ 4) % Row 19 \SetRowColor{white} length & The number of characters in the string \tn % Row Count 22 (+ 2) % Row 20 \SetRowColor{LightBackground} lower\_case & Returns string in all lower case \tn % Row Count 24 (+ 2) % Row 21 \SetRowColor{white} matches & Regex Pattern checker \tn % Row Count 25 (+ 1) % Row 22 \SetRowColor{LightBackground} number & The string as a number \tn % Row Count 26 (+ 1) % Row 23 \SetRowColor{white} replace (substring, replace) & Returns all occurances of substring with replace \tn % Row Count 29 (+ 3) % Row 24 \SetRowColor{LightBackground} right\_pad (x, seperator=" ") & Same as left\_pad, but appended instead \tn % Row Count 31 (+ 2) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{2.23965 cm} x{2.73735 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Built In References - Strings (cont)}} \tn % Row 25 \SetRowColor{LightBackground} remove\_beginning (substring) & Returns string with substring removed from the beginning \tn % Row Count 3 (+ 3) % Row 26 \SetRowColor{white} remove\_ending & Same as remove\_beginning, except fromt he ending \tn % Row Count 6 (+ 3) % Row 27 \SetRowColor{LightBackground} rtf & Rich Text Format \tn % Row Count 7 (+ 1) % Row 28 \SetRowColor{white} split (substring) & Split a string at each substring \tn % Row Count 9 (+ 2) % Row 29 \SetRowColor{LightBackground} starts\_with & Same as ends\_with, but for string beginning \tn % Row Count 11 (+ 2) % Row 30 \SetRowColor{white} string & Takes a multi-value variable and returns just the string parts \tn % Row Count 14 (+ 3) % Row 31 \SetRowColor{LightBackground} substring & Depricated, use string{[}x..y{]} \tn % Row Count 16 (+ 2) % Row 32 \SetRowColor{white} trim & Removes leading and trailing whitespace \tn % Row Count 18 (+ 2) % Row 33 \SetRowColor{LightBackground} uncap\_first & The opposite of cap\_first \tn % Row Count 20 (+ 2) % Row 34 \SetRowColor{white} upper\_case & Opposite of lower\_case \tn % Row Count 21 (+ 1) % Row 35 \SetRowColor{LightBackground} url & URL Character escaping \tn % Row Count 22 (+ 1) % Row 36 \SetRowColor{white} url\_path & Same as url but doesn't escape slashes \tn % Row Count 24 (+ 2) % Row 37 \SetRowColor{LightBackground} word\_list & Returns a sequence of all words in a string \tn % Row Count 26 (+ 2) % Row 38 \SetRowColor{white} xhtml & Same as html, but for xhtml escaping \tn % Row Count 28 (+ 2) % Row 39 \SetRowColor{LightBackground} xml & Same as hxtml, but difference code for ' \tn % Row Count 30 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.69218 cm} x{3.28482 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Built In References - Numbers}} \tn % Row 0 \SetRowColor{LightBackground} abs & Absolute Value \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} c & Num to String without formatting \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} is\_infinite & True if number is floating point infinite \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} is\_nan & True if number is NaN \tn % Row Count 6 (+ 1) % Row 4 \SetRowColor{LightBackground} round, floor, ceiling & Rounds to closest, lowest, and highest, respectively \tn % Row Count 8 (+ 2) % Row 5 \SetRowColor{white} \seqsplit{string.format} & Num to String with optional formatting (format can be number, currency, percent, or computer) \tn % Row Count 12 (+ 4) \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}{Built In References - Date/time/date-time}} \tn % Row 0 \SetRowColor{LightBackground} date & Returns date only from a datetime value (Only use if variable is problematic) \tn % Row Count 4 (+ 4) % Row 1 \SetRowColor{white} time & Returns time only from a datetime value (Only use if variable is problematic) \tn % Row Count 8 (+ 4) % Row 2 \SetRowColor{LightBackground} datetime & Returns date and time from a datetime value (Only use if variable is problematic) \tn % Row Count 12 (+ 4) % Row 3 \SetRowColor{white} \seqsplit{(date/time/datetime)\_if\_unknown} & Marks a date-like value with specified missing subtype \tn % Row Count 15 (+ 3) % Row 4 \SetRowColor{LightBackground} iso\_... & Converts date-like value to specified iso format. Depricated in favour of \_format settings \tn % Row Count 20 (+ 5) % Row 5 \SetRowColor{white} string.format & Converts date-like object to string. See freemarker manual for formats \tn % Row Count 24 (+ 4) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.04057 cm} x{2.93643 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Built In References - Booleans}} \tn % Row 0 \SetRowColor{LightBackground} c & Boolean to String for computer languages \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \seqsplit{string("string1"}, "string2") & Boolean to String with human-readable flags. Provided as "string1" for true and "string2" for false \tn % Row Count 7 (+ 5) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.69218 cm} x{3.28482 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Built In References - Sequences}} \tn % Row 0 \SetRowColor{LightBackground} chunk(x, filler=null) & Splits sequence into multiple sequences of size x. Last chunk \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} first & Returns the first element of the sequence \tn % Row Count 5 (+ 2) % Row 2 \SetRowColor{LightBackground} \seqsplit{join(seperator)} & Concatonates sequence elements with seperator in between \tn % Row Count 8 (+ 3) % Row 3 \SetRowColor{white} last & Returns the last element in the sequence \tn % Row Count 10 (+ 2) % Row 4 \SetRowColor{LightBackground} reverse & Returns the sequence in reverse order \tn % Row Count 12 (+ 2) % Row 5 \SetRowColor{white} \seqsplit{seq\_contains(needle)} & Returns true if the squence contains needle \tn % Row Count 14 (+ 2) % Row 6 \SetRowColor{LightBackground} \seqsplit{seq\_index\_of(needle)} & Same as contains, but returns the index of the first element \tn % Row Count 17 (+ 3) % Row 7 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{\seqsplit{seq\_last\_index\_of(needle)}} \tn % Row Count 18 (+ 1) % Row 8 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{size} \tn % Row Count 19 (+ 1) % Row 9 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{sort} \tn % Row Count 20 (+ 1) % Row 10 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{sort\_by} \tn % Row Count 21 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.34379 cm} x{3.63321 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Built In References - Nodes (XML)}} \tn % Row 0 \SetRowColor{LightBackground} \seqsplit{ancestors(name)} & Returns a sequence of nodes ancestors. Starts with immediate parent and ends with root. Should be filtered with name \tn % Row Count 5 (+ 5) % Row 1 \SetRowColor{white} children & Returns a sequence of all child nodes \tn % Row Count 7 (+ 2) % Row 2 \SetRowColor{LightBackground} node\_name & Returns the node name (directive invoked when node is "visited") \tn % Row Count 10 (+ 3) % Row 3 \SetRowColor{white} \seqsplit{node\_namespace} & Returns namespace string of node \tn % Row Count 12 (+ 2) % Row 4 \SetRowColor{LightBackground} node\_type & Returns a string with the node type \tn % Row Count 14 (+ 2) % Row 5 \SetRowColor{white} parent & Returns the immediate parent node \tn % Row Count 16 (+ 2) % Row 6 \SetRowColor{LightBackground} root & Returns the root node \tn % Row Count 17 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} x{4.4793 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Common Flags}} \tn % Row 0 \SetRowColor{LightBackground} i & Case Insensitive (eg. x==X) \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} f & First Only (Only apply to first occurance) \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} r & Substring is regex \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} m & Multi-line mode for regex \tn % Row Count 5 (+ 1) % Row 4 \SetRowColor{LightBackground} s & Enables dot-all mode for regex (. is wildcard) \tn % Row Count 7 (+ 2) % Row 5 \SetRowColor{white} c & Allows whitespace and comments in regex \tn % Row Count 9 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.74655 cm} x{4.23045 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Built In References - Hashes}} \tn % Row 0 \SetRowColor{LightBackground} Keys & A sequence with all the hash keys \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \seqsplit{Values} & A sequence with all the hash values \tn % Row Count 3 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.38896 cm} x{2.58804 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Rarely Used Built-Ins}} \tn % Row 0 \SetRowColor{LightBackground} byte, double, float, int, long, short & Converts numbers to other types of numbers \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} eval & Evaluate a string as an FTL expression \tn % Row Count 5 (+ 2) % Row 2 \SetRowColor{LightBackground} has\_content & Returns true if variable exists and isn't empty, false otherwise \tn % Row Count 9 (+ 4) % Row 3 \SetRowColor{white} interpret & Returns the value of a string interpreted as FTL code. Sort of like a function \tn % Row Count 13 (+ 4) % Row 4 \SetRowColor{LightBackground} is\_...{[}type{]} & Checks if variable is of type {[}type{]}. See docs for full list \tn % Row Count 17 (+ 4) % Row 5 \SetRowColor{white} namespace & Returns macro or function namespace, if any \tn % Row Count 20 (+ 3) % Row 6 \SetRowColor{LightBackground} new & Creates a variable of type class. Usage is var = "FQDN"?new(options) \tn % Row Count 24 (+ 4) % Row 7 \SetRowColor{white} number\_to\_{[}date/time/datetime{]} & Converts a number to date/time/datetime, using the number of seconds since epoch \tn % Row Count 28 (+ 4) \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}{Template Language Quick Reference}} \tn % Row 0 \SetRowColor{LightBackground} assign name=value {[}in namespacehash{]} & Creates a variable called name \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} attempt/recover & try/catch \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} compress & Removes all but one newline character between lines \tn % Row Count 6 (+ 3) % Row 3 \SetRowColor{white} escape x as x?{[}escape type{]} & \textless{}pre\textgreater{} tag for freemarker code \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} flush & Forces generated output to be written. 99\% of the time is not neccessary \tn % Row Count 12 (+ 4) % Row 5 \SetRowColor{white} ftl & Tells programs that file is an ftl file. Takes optional parameters found on the docs page \tn % Row Count 17 (+ 5) % Row 6 \SetRowColor{LightBackground} function/return & Similar to a macro, except returns a specific value as denoted by return \tn % Row Count 21 (+ 4) % Row 7 \SetRowColor{white} global & Makes a global variable. Variable will be exposed as if at data-model level \tn % Row Count 25 (+ 4) % Row 8 \SetRowColor{LightBackground} if/elseif/else & Creates an if/elseif/else block \tn % Row Count 27 (+ 2) % Row 9 \SetRowColor{white} import path as hash & Imports the library at location path for use in the current ftl file \tn % Row Count 31 (+ 4) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{2.33919 cm} x{2.63781 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Template Language Quick Reference (cont)}} \tn % Row 10 \SetRowColor{LightBackground} include path & Includes the file at location path for use in current document \tn % Row Count 3 (+ 3) % Row 11 \SetRowColor{white} list sequence as item & foreach loop \tn % Row Count 5 (+ 2) % Row 12 \SetRowColor{LightBackground} local & Like assign, but creates local variables within macros or functions \tn % Row Count 9 (+ 4) % Row 13 \SetRowColor{white} \seqsplit{macro/nested/return} & Macro outputs a block of user-defined code which wraps nested (optionally, otherwise just outputs the code). return works as a break \tn % Row Count 16 (+ 7) % Row 14 \SetRowColor{LightBackground} noparse & \textless{}pre\textgreater{} tag for ftl \tn % Row Count 17 (+ 1) % Row 15 \SetRowColor{white} nt & No trim. Disables whitespace stripping \tn % Row Count 19 (+ 2) % Row 16 \SetRowColor{LightBackground} setting name=value & Modifies parse settings. View full list in the docs page \tn % Row Count 22 (+ 3) % Row 17 \SetRowColor{white} stop {[}reason{]} & Per ftl docs: an emergency brake. Don't use in normal situations. Returns reason if set \tn % Row Count 27 (+ 5) % Row 18 \SetRowColor{LightBackground} \seqsplit{switch/case/default/break} & A regular switch block \tn % Row Count 29 (+ 2) % Row 19 \SetRowColor{white} t, lt, rt & Trim, left trim, right trim. Ignores whitespace based on tag position used \tn % Row Count 33 (+ 4) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{2.33919 cm} x{2.63781 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Template Language Quick Reference (cont)}} \tn % Row 20 \SetRowColor{LightBackground} \seqsplit{visit/recurse/fallback} & Used for parsing trees, usually XML. See the ftl docs for full info \tn % Row Count 4 (+ 4) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}