\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{Neil} \pdfinfo{ /Title (schematiq-for-beginners.pdf) /Creator (Cheatography) /Author (Neil) /Subject (Schematiq for beginners 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}{A3A3A3} \definecolor{LightBackground}{HTML}{F3F3F3} \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{Schematiq for beginners Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{Neil} via \textcolor{DarkBackground}{\uline{cheatography.com/189731/cs/39562/}}} \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}Neil \\ \uline{cheatography.com/neil} \\ \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 14th July, 2023.\\ 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*}{2} \begin{tabularx}{8.4cm}{x{2 cm} x{6 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Getting started with text}} \tn % Row 0 \SetRowColor{LightBackground} txt.Split & Splits text: "A,B" =\textgreater{} "A" and "B" (in separate cells) \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} txt.Join & Joins text: "A", "B" and "C" =\textgreater{} "A,B,C" \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \seqsplit{txt.Reverse} & Reverses a text input: "ABC" =\textgreater{} "CBA" \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} \seqsplit{txt.Format} & Applies a pattern: txt.Format("Hi \{0\}", "Fred") =\textgreater{} "Hi Fred" \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} \seqsplit{regex.IsMatch} & Tests text against a regex (returns TRUE or FALSE) \tn % Row Count 10 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.56 cm} x{5.44 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Getting started with tables}} \tn % Row 0 \SetRowColor{LightBackground} tbl.Create & Creates a table from data and (optionally) headers \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \seqsplit{tbl.SelectColumns} & Selects only certain columns from a table \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} tbl.Sort & Sorts a table based on or more columns \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} tbl.Filter & Filters a table (on a row-by-row basis) based on a filter function \tn % Row Count 9 (+ 3) % Row 4 \SetRowColor{LightBackground} \seqsplit{tbl.CalculateColumn} & Extends the table, adding a new column (calculated row by row) \tn % Row Count 12 (+ 3) % Row 5 \SetRowColor{white} tbl.Group & Aggregates a table (similar to a SQL 'group by') \tn % Row Count 14 (+ 2) % Row 6 \SetRowColor{LightBackground} \seqsplit{tbl.GetValue} & Extract exactly one value from a table \tn % Row Count 16 (+ 2) % Row 7 \SetRowColor{white} \seqsplit{tbl.GetValues} & Get all values from a table (or those in a specific column) - can be used to return Schematiq data to Excel \tn % Row Count 20 (+ 4) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{3.04 cm} x{4.96 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Getting started with databases}} \tn % Row 0 \SetRowColor{LightBackground} db.Connect & Connect to a database \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} tbl.Connect & Connect to a table in the database \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} tbl.Group (etc) & Behaviour equivalent to in-memory tables \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} tbl.Download & Download a full table or query result into memory \tn % Row Count 8 (+ 3) % Row 4 \SetRowColor{LightBackground} db.Query & Execute custom SQL \tn % Row Count 9 (+ 1) % Row 5 \SetRowColor{white} db.Insert & Insert rows of a Schematiq table into a database table \tn % Row Count 12 (+ 3) % Row 6 \SetRowColor{LightBackground} \seqsplit{db.ConnectCustom} & Connect using a custom connection string \tn % Row Count 14 (+ 2) % Row 7 \SetRowColor{white} \seqsplit{azTbl.ConnectCustom} (etc) & Connect to Azure Table Storage \tn % Row Count 16 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{4.8 cm} x{3.2 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Supported data providers}} \tn % Row 0 \SetRowColor{LightBackground} mssql, 'sql server', etc & MS SQL Server \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} access, msaccess, accdb, mdb & MS Access \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} hana & SAP HANA \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} mysql & MySQL \tn % Row Count 5 (+ 1) % Row 4 \SetRowColor{LightBackground} oracle & Oracle \tn % Row Count 6 (+ 1) % Row 5 \SetRowColor{white} postgresql, postgres & PostgreSQL \tn % Row Count 7 (+ 1) % Row 6 \SetRowColor{LightBackground} snowflake & Snowflake \tn % Row Count 8 (+ 1) % Row 7 \SetRowColor{white} sqlite & SQLite \tn % Row Count 9 (+ 1) % Row 8 \SetRowColor{LightBackground} vertica & HP Vertica \tn % Row Count 10 (+ 1) % Row 9 \SetRowColor{white} az.\textasciitilde{} and azTbl.\textasciitilde{} & Azure Table Storage \tn % Row Count 12 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{Azure Table Storage is a NoSQL service and is supported through a dedicated group of add-in functions. All other providers use SQL-based connectivity.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.4 cm} x{5.6 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Advanced table functions}} \tn % Row 0 \SetRowColor{LightBackground} tbl.Pivot & Pivot a table (similar to an Excel pivot table) \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} tbl.Unpivot & Unpivot a table (broadly, the reverse of tbl.Pivot) \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} tbl.Pack & Group a table, creating a column of sub-tables \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} tbl.Unpack & Unpack a packed table (reverse of tbl.Pack) \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} tbl.Union & Combine two tables with the same columns \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} tbl.Join & Perform a SQL-like join (several variants possible) \tn % Row Count 12 (+ 2) % Row 6 \SetRowColor{LightBackground} tbl.Lookup & Search for value(s) and extract a value from that row \tn % Row Count 14 (+ 2) % Row 7 \SetRowColor{white} \seqsplit{tbl.SelectRows} & Select certain rows (numerically) from a table \tn % Row Count 16 (+ 2) % Row 8 \SetRowColor{LightBackground} \seqsplit{tbl.UpdateColumns} & Update many columns using a specified function \tn % Row Count 18 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.16 cm} x{5.84 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Trees and ranges}} \tn % Row 0 \SetRowColor{LightBackground} \seqsplit{tree.Create} & Create a tree from a suitable Excel range \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \seqsplit{tree.NodeCount} & Returns the number of nodes in a tree \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \seqsplit{tree.Union} & Combine two trees \tn % Row Count 5 (+ 1) % Row 3 \SetRowColor{white} \seqsplit{tree.GetValues} & Returns all values from a tree \tn % Row Count 7 (+ 2) % Row 4 \SetRowColor{LightBackground} tree.Add & Add a new node to a tree (by name/value) \tn % Row Count 9 (+ 2) % Row 5 \SetRowColor{white} \seqsplit{tree.Remove} & Remove a node from a tree (by name) \tn % Row Count 11 (+ 2) % Row 6 \SetRowColor{LightBackground} \seqsplit{tree.Replace} & Replace the value of a named node in a tree \tn % Row Count 13 (+ 2) % Row 7 \SetRowColor{white} \seqsplit{rng.Create} & Create a Schematiq range from an Excel range \tn % Row Count 15 (+ 2) % Row 8 \SetRowColor{LightBackground} \seqsplit{rng.Sequence} & Create a range of numbers of specific length and 'step' \tn % Row Count 17 (+ 2) % Row 9 \SetRowColor{white} \seqsplit{rng.Subset} & Extract a subset of a range \tn % Row Count 18 (+ 1) % Row 10 \SetRowColor{LightBackground} \seqsplit{rng.TopToBottom} & Combine two ranges top to bottom \tn % Row Count 20 (+ 2) % Row 11 \SetRowColor{white} \seqsplit{rng.LeftToRight} & Combine two ranges left to right \tn % Row Count 22 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.56 cm} x{5.44 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Data processing (CSV, JSON, XML, HTML)}} \tn % Row 0 \SetRowColor{LightBackground} \seqsplit{tbl.ExportDelimited} & Exports a table to CSV format \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \seqsplit{tbl.ImportDelimited} & Imports a table from CSV (or other delimited) format \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \seqsplit{tree.ExportJson} & Exports a tree to JSON format \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} \seqsplit{tree.ImportJson} & Imports JSON into a tree \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} \seqsplit{tbl.ExportJson} & Exports a table to JSON format \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} \seqsplit{tbl.ImportJson} & Imports JSON into a table (JSONPath syntax available) \tn % Row Count 12 (+ 2) % Row 6 \SetRowColor{LightBackground} \seqsplit{tree.ExportXml} & Exports a tree to XML format \tn % Row Count 14 (+ 2) % Row 7 \SetRowColor{white} \seqsplit{tree.ImportXml} & Imports XML into a tree \tn % Row Count 16 (+ 2) % Row 8 \SetRowColor{LightBackground} \seqsplit{tbl.ImportXml} & Imports XML into a table (XPath syntax available) \tn % Row Count 18 (+ 2) % Row 9 \SetRowColor{white} \seqsplit{tbl.ImportHtml} & Imports HTML into a table (XPath syntax available) \tn % Row Count 20 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.64 cm} x{5.36 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Web functions}} \tn % Row 0 \SetRowColor{LightBackground} web.Get & Creates a simple GET request \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} web.Post & Creates a POST request \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} web.Response & Executes a web request \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} \seqsplit{web.CustomRequest} & Creates a configurable web request \tn % Row Count 6 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.32 cm} x{5.68 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{File and folder operations}} \tn % Row 0 \SetRowColor{LightBackground} \seqsplit{file.ListFiles} & List all files in a folder (wildcards accepted) \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \seqsplit{file.ListFolders} & List all subfolders in a folder (wildcards accepted) \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} file.Open & Opens a file for reading \tn % Row Count 5 (+ 1) % Row 3 \SetRowColor{white} file.Save & Saves a file in a format-specific manner \tn % Row Count 7 (+ 2) % Row 4 \SetRowColor{LightBackground} \seqsplit{file.OpenText} & Opens a file as text for reading \tn % Row Count 9 (+ 2) % Row 5 \SetRowColor{white} \seqsplit{file.SaveText} & Saves a file as text \tn % Row Count 11 (+ 2) % Row 6 \SetRowColor{LightBackground} sq.Save & Saves an object in a custom Schematiq format \tn % Row Count 13 (+ 2) % Row 7 \SetRowColor{white} sq.Load & Loads an object saved using sq.Save() \tn % Row Count 15 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.16 cm} x{5.84 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{User-defined functions (UDFs)}} \tn % Row 0 \SetRowColor{LightBackground} \seqsplit{fn.FromSnippet} & Creates a UDF from a snippet, e.g. "(x, y) =\textgreater{} x + (2 * y)" \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \seqsplit{fn.FromTemplate} & Creates a UDF from a specified Excel range \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} xl.Load & Loads an Excel workbook into Schematiq memory \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} \seqsplit{fn.FromWorkbook} & Creates a UDF from an Excel workbook \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} fn.Call & Executes a UDF \tn % Row Count 9 (+ 1) % Row 5 \SetRowColor{white} \seqsplit{fn.FixInput} & Fixes the value of a single input to a UDF \tn % Row Count 11 (+ 2) % Row 6 \SetRowColor{LightBackground} \seqsplit{fn.SetAsync} & Makes a UDF synchronous or asynchronous \tn % Row Count 13 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.48 cm} x{5.52 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Date and time handling}} \tn % Row 0 \SetRowColor{LightBackground} dt.Offset & Offsets a date (e.g. by a day, business day, week, etc) \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} dt.Sequence & Generates a sequence of dates with required periodicity \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} \seqsplit{dt.SequenceBetween} & Generates a sequences between start/end dates or times \tn % Row Count 8 (+ 2) % Row 3 \SetRowColor{white} \seqsplit{dt.PeriodsBetween} & Returns the number of periods in a given interval (e.g. hours in a given day - useful for handling daylight saving!) \tn % Row Count 13 (+ 5) % Row 4 \SetRowColor{LightBackground} \seqsplit{dt.ChangeTimeZone} & Changes a date-time from one IANA time zone to another \tn % Row Count 15 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{p{0.8 cm} x{7.2 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Use of dt.Offset}} \tn % Row 0 \SetRowColor{LightBackground} D & Day \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} B & Business day \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} W & Week \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} M & Month \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} Q & Quarter \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} S & Commodities season (Apr-Sep, Oct-Mar) \tn % Row Count 7 (+ 2) % Row 6 \SetRowColor{LightBackground} Y & Year \tn % Row Count 8 (+ 1) % Row 7 \SetRowColor{white} H & Hour \tn % Row Count 9 (+ 1) % Row 8 \SetRowColor{LightBackground} ' & Minute \tn % Row Count 10 (+ 1) % Row 9 \SetRowColor{white} " & Second \tn % Row Count 11 (+ 1) % Row 10 \SetRowColor{LightBackground} @ & At exactly \tn % Row Count 12 (+ 1) % Row 11 \SetRowColor{white} + & Move forward \tn % Row Count 13 (+ 1) % Row 12 \SetRowColor{LightBackground} - & Move backwards \tn % Row Count 14 (+ 1) % Row 13 \SetRowColor{white} \textless{} & Move to previous \tn % Row Count 15 (+ 1) % Row 14 \SetRowColor{LightBackground} \textless{}= & Move to previous (unless currently at exact) \tn % Row Count 17 (+ 2) % Row 15 \SetRowColor{white} \textgreater{} & Move to next \tn % Row Count 18 (+ 1) % Row 16 \SetRowColor{LightBackground} \textgreater{}= & Move to next (unless currently at exact) \tn % Row Count 20 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{Operators can be combined, for example -B@18H30' means "the previous business day at 18:30". The same syntax can be used for sequences, for example dt.Sequence(TODAY(), 6, "2M") will generate a year's worth of 2-month intervals.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}