%% 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{english}
%\setotherlanguages{russian}

%% 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

\colorbox[HTML]{800000}{\textcolor[HTML]{FFFFFF}{ Data Exchange: exportData functions                                                                         }}\newline
%%%
\begin{equation*}
A \defeq 
\left[ \begin{array}{ccccc}
10^{ \operatorname{-} 15} & 2.3 \: \mathrm{kN} & \frac{4}{5} &  \operatorname{-} 57.1 & 
\left[ \begin{array}{cc}
\sin \left( \sqrt{2} \right) & \text{\textcolor{SMathTextVar}{``a nested simple text''}}
\end{array} \right] \\ [0.5em]
\sin \left( \sqrt{2} \right) & \text{\textcolor{SMathTextVar}{``a simple text''}} & \mathrm e^{50} & 3 > 2 & \text{\textcolor{SMathTextVar}{``a more "complex" text''}}
\end{array} \right]
\end{equation*}
%%%
\textcolor[HTML]{0000FF}{\textit{same directory of the current sm sheet (relative path)}}\newline
%%%
\begin{equation*}
outputDirectory \defeq \text{\textcolor{SMathTextVar}{``.''}}
\end{equation*}
%%%
\textcolor[HTML]{0000FF}{\textit{custom directory (absolute path)}}\newline
%%%
\begin{equation*}
outputDirectory \defeq \text{\textcolor{SMathTextVar}{``c:$\backslash$windows$\backslash$desktop''}}
\end{equation*}
%%%
\begin{equation*}
outputDirectory \defeq \text{\textcolor{SMathTextVar}{``c:$\backslash$documents and settings$\backslash$YOUR\_WIN\_ACCOUNT$\backslash$desktop''}}
\end{equation*}
%%%
\begin{equation*}
outputDirectory \defeq \text{\textcolor{SMathTextVar}{``c:$\backslash$users$\backslash$YOUR\_WIN\_ACCOUNT$\backslash$desktop''}}
\end{equation*}
%%%
\textcolor[HTML]{0000FF}{\textit{export SMath data -$>$ CSV file}}\newline
%%%
\begin{equation*}
\operatorname{exportData_{CSV}} \left( A \,,\, \text{\textcolor{SMathTextVar}{``my SMath CSV output''}} \right) = 1
\end{equation*}
%%%
\begin{equation*}
\operatorname{exportData_{CSV}} \left( A \,,\, \text{\textcolor{SMathTextVar}{``my SMath CSV output''}} \,,\, outputDirectory \right) = 1
\end{equation*}
%%%
\textcolor[HTML]{0000FF}{\textit{export SMath data -$>$ ODF formula}}\newline
%%%
\begin{equation*}
{\operatorname{exportData_{ODF}} \left( A \,,\, \text{\textcolor{SMathTextVar}{``my SMath ODF output''}} \right) = 1}
\end{equation*}
%%%
\begin{equation*}
\operatorname{exportData_{ODF}} \left( A \,,\, \text{\textcolor{SMathTextVar}{``my SMath ODF output''}} \,,\, outputDirectory \right) = 1
\end{equation*}
%%%
\begin{equation*}
\operatorname{exportData_{ODF}} \left( A \,,\, \text{\textcolor{SMathTextVar}{``my SMath ODF output''}} \right) = 1
\end{equation*}
%%%
\begin{equation*}
\operatorname{exportData_{ODF}} \left( M = 
\left[ \begin{array}{ccccc}
 \operatorname{-} \frac{10^{ \operatorname{-} 15} \cdot {\pi}}{12.6} & 2.3 \: \frac{\mathrm{kN}}{\mathrm{Hz} \: \mathrm{μV}} & F_{sub} & {x}_{\,2\,5\,} & \textbf{W} \\ [0.5em]
\sin \left( \sqrt{2} \right) & \text{\textcolor{SMathTextVar}{``a simple text''}} & \mathrm e^{50} & 3 > 2 & x \vee y
\end{array} \right] \,,\, \text{\textcolor{SMathTextVar}{``my SMath ODF output''}} \right) = 1
\end{equation*}
%%%
\textcolor[HTML]{0000FF}{when possible the ouptut will be:}\newline
%%%
\textcolor[HTML]{0000FF}{input as written -$>$ symbolic simplification -$>$ numeric evaluation}\newline
%%%
\begin{equation*}
{\phi} \defeq \frac{{\pi}}{5}
\end{equation*}
%%%
\begin{equation*}
\operatorname{f} \left( {\theta} \right) \defeq \sin \left( 2 \cdot {\theta} \right)
\end{equation*}
%%%
\begin{figure}[h!]
 \begin{center}
  \includegraphics[max width=\textwidth]{exportData/25.png}
  \caption{Type figure caption here}
  \label{fig:25}
 \end{center}
\end{figure}
%%%
\begin{equation*}
\operatorname{exportData_{ODF}} \left( \operatorname{f} \left( {\phi} \right) \,,\, \text{\textcolor{SMathTextVar}{``my formula''}} \right) = 1
\end{equation*}
%%%
\textcolor[HTML]{0000FF}{\textit{export SMath data -$>$ ODS spreadsheet}}\newline
%%%
\begin{equation*}
{\operatorname{exportData_{ODS}} \left( A \,,\, \text{\textcolor{SMathTextVar}{``my SMath ODS output''}} \right) = 1}
\end{equation*}
%%%
\begin{equation*}
\operatorname{exportData_{ODS}} \left( A \,,\, \text{\textcolor{SMathTextVar}{``my SMath ODS output''}} \,,\, outputDirectory \right) = 1
\end{equation*}
%%%
\textcolor[HTML]{0000FF}{\textit{export SMath data -$>$ XLSX spreadsheet}}\newline
%%%
\begin{equation*}
{\operatorname{exportData_{XLSX}} \left( A \,,\, \text{\textcolor{SMathTextVar}{``my SMath XLSX output''}} \right) = 1}
\end{equation*}
%%%
\begin{equation*}
\operatorname{exportData_{XLSX}} \left( A \,,\, \text{\textcolor{SMathTextVar}{``my SMath XLSX output''}} \,,\, outputDirectory \right) = 1
\end{equation*}
%%%
\end{document}
