%% Packages and settings to show SMath equations.
\documentclass{article}
\usepackage[paperwidth=21.01cm,paperheight=29.69cm,left=29.69cm,top=2.20cm,left=0.99cm,right=0.99cm,bottom=1.80cm]{geometry} % custom pagesize
\usepackage{graphicx,grffile} % images
\usepackage[labelfont=bf,font=small]{caption} % custom image label&caption
\usepackage[fleqn]{amsmath} % equations [left-aligned]
\usepackage[export]{adjustbox} % SMath something:=line||if-else||for||while
\usepackage{xcolor} % SMath colored text
\usepackage{relsize} % transpose symbol
\usepackage{ucs} % extends supported Unicode characters

%% X∃LaTeX packages
\usepackage{xltxtra} % 'Ex­tras' for LaTeX users of X∃TeX
\defaultfontfeatures{Mapping=tex-text} % accept LaTeX commands
\usepackage{unicode-math} % Uni­code math­e­mat­ics sup­port for X∃TeX and LuaTeX
\setmathfont{XITS Math} % Math Fonts
\usepackage{fontspec} % Allows users of either X∃TeX or LuaTeX to load OpenType fonts in a LaTeX document. No font installation is necessary, and font features can be selected and used as desired throughout the document.
\setmainfont{Linux Libertine O} % Linux Libertine (free, wide coverage, not only for Linux)
\setsansfont{Linux Biolinum O}
\setmonofont[HyphenChar=None]{DejaVu Sans Mono}
\usepackage{polyglossia} % Babel for X∃(La)TeX or LuaTeX
\setmainlanguage{german}
%\setotherlanguages{english}

%% Markup
\newcommand{\defeq}{\coloneq} % SMath 'define equal' symbol
\definecolor{SMathTextVar}{HTML}{B80000} % SMath text variable color
\setlength{\arraycolsep}{0.5em} % matrices
\setlength{\headsep}{0.5cm} % distance of content from header
\linespread{1.3} % line spacing: 1.5 line
\everymath{\displaystyle} % force all math to \displaystyle

%% Author, title and version of the document
\def\docTitle{\XeLaTeX \, SMath Studio Document}
\def\docGenerator{generated by Data Exchange plugin for SMath Studio}
\def\docAuthor{Author}
\def\docVersion{0}

%% Set infos
\title{\docTitle}
\author{\docGenerator}
\date{} % today

%% Header and footer
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{}
\chead{\docTitle}
\rhead{}
\lfoot{rev. \docVersion \, -- \today}
\rfoot{\thepage}
\cfoot{}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}

\begin{document}
\maketitle
\thispagestyle{empty}
\newpage

\textbf{Beispielrechnung für den Exporttest}\newline
%%%
\underline{Unterstrichener Text}\newline
%%%
\textit{kursiver Text}\newline
%%%
\begin{equation*}
\begin{split}& \operatorname{for} \:\, i \in {1} \textbf{\,.\,.\,} {3}\\& \quad 
\left| \begin{aligned}
\,&{a}_{\,i\,1\,} \defeq i \\
\,&{a}_{\,i\,2\,} \defeq i^{2}
\end{aligned} \right.\\\end{split}
\end{equation*}
%%%
\begin{equation*}
{\sum_{i = 1}^{3} {{a}_{\,i\,2\,}} = 14}
\end{equation*}
%%%
\begin{equation*}
{\int_{0}^{{\pi}} \! {\sin \left( {\phi} \right)} \: \mathrm d {{\phi}} = 2}
\end{equation*}
%%%
Das ist ein Text mit einigen Sonderzeichen und \newline
Zeilenumbrüchen\newline
αβγ ≤≥≠\newline
%%%
\begin{equation*}
A \defeq 
\left[ \begin{array}{ccccc}
1 & 2.3 \: \mathrm{kN} & \frac{4}{5} &  \operatorname{-} 57.1 & 
\left[ \begin{array}{cc}
\sin \left( \sqrt{2} \right) & \text{\textcolor{SMathTextVar}{``Text mit äöü''}}
\end{array} \right] \\ [0.5em]
\sin \left( \sqrt{2} \right) & \text{\textcolor{SMathTextVar}{``Text φ''}} & \mathrm e^{50} & 3 > 2 & \text{\textcolor{SMathTextVar}{``Noch "ein" Text''}}
\end{array} \right]
\end{equation*}
%%%
\begin{figure}[h!]
 \begin{center}
  \includegraphics[max width=\textwidth]{SaveTest/8.png}
  \caption{Type figure caption here}
  \label{fig:8}
 \end{center}
\end{figure}
%%%
\begin{figure}[h!]
 \begin{center}
  \includegraphics[max width=\textwidth]{SaveTest/9.png}
  \caption{Type figure caption here}
  \label{fig:9}
 \end{center}
\end{figure}
%%%
\end{document}
