%
% Copyright (C) 2008-2001 by Azzeddine LAZREK. All rights reserved.
%
% examla.tex
% This file belongs to the CurExt package.
%


\documentclass[a4,12pt]{article}

%\usepackage{arabtex}
%\setarab
%\novocalize
%\usepackage{transtec}
%\setcode{transtec}

%\usepackage{rydarab}

%,kashidasymbol
\usepackage[parenthesis]{curext}


\begin{document}


\section{Parenthesis}

\subsection{Parentheses}

$$\parentheses{123}$$

$$\parentheses{\frac{1}{2}}$$

$$\parentheses{\frac{1}{\frac{2}{3}}}$$

$$\parentheses{\frac{1}{\frac{2}{\frac{3}{4}}}}$$

$$\parentheses{\matrix{
 0 & 1 \cr
 1 & 2 \cr
 }}$$

$$\parentheses{\matrix{
 1 & 2 & 3 \cr
 4 & 5 & 6 \cr
 7 & 8 & 9 \cr
 }}$$

$$\parentheses{\matrix{
 0 & 1 & 2 & 3\cr
 4 & 5 & 6 & 7\cr
 1 & 2 & 3 & 4\cr
 5 & 6 & 7 & 8\cr
 }}$$

$$\parentheses{\matrix{
 0 & 1 & 2 & 3 & 4\cr
 5 & 6 & 7 & 8 & 9\cr
 0 & 1 & 2 & 3 & 4\cr
 5 & 6 & 7 & 8 & 9\cr
 0 & 1 & 2 & 3 & 4\cr
 }}$$

$$\parentheses{\parentheses{\parentheses{\parentheses{
\parentheses{\parentheses{\parentheses{123}}}}}}}$$


\subsection{Open parentheses}

$$\openparentheses{123}$$

$$\openparentheses{\frac{1}{2}}$$

$$\openparentheses{\frac{1}{\frac{2}{3}}}$$

$$\openparentheses{\frac{1}{\frac{2}{\frac{3}{4}}}}$$

$$\openparentheses{\matrix{
 0 & 1 \cr
 1 & 2 \cr
 }}$$

$$\openparentheses{\matrix{
 1 & 2 & 3 \cr
 4 & 5 & 6 \cr
 7 & 8 & 9 \cr
 }}$$

$$\openparentheses{\matrix{
 0 & 1 & 2 & 3\cr
 4 & 5 & 6 & 7\cr
 1 & 2 & 3 & 4\cr
 5 & 6 & 7 & 8\cr
 }}$$

$$\openparentheses{\matrix{
 0 & 1 & 2 & 3 & 4\cr
 5 & 6 & 7 & 8 & 9\cr
 0 & 1 & 2 & 3 & 4\cr
 5 & 6 & 7 & 8 & 9\cr
 0 & 1 & 2 & 3 & 4\cr
 }}$$

$$\openparentheses{\openparentheses{\openparentheses{\openparentheses{
\openparentheses{\openparentheses{\openparentheses{123}}}}}}}$$


\subsection{Close parentheses}

$$\closeparentheses{123}$$

$$\closeparentheses{\frac{1}{2}}$$

$$\closeparentheses{\frac{1}{\frac{2}{3}}}$$

$$\closeparentheses{\frac{1}{\frac{2}{\frac{3}{4}}}}$$

$$\closeparentheses{\matrix{
 0 & 1 \cr
 1 & 2 \cr
 }}$$

$$\closeparentheses{\matrix{
 1 & 2 & 3 \cr
 4 & 5 & 6 \cr
 7 & 8 & 9 \cr
 }}$$

$$\closeparentheses{\matrix{
 0 & 1 & 2 & 3\cr
 4 & 5 & 6 & 7\cr
 1 & 2 & 3 & 4\cr
 5 & 6 & 7 & 8\cr
 }}$$

$$\closeparentheses{\matrix{
 0 & 1 & 2 & 3 & 4\cr
 5 & 6 & 7 & 8 & 9\cr
 0 & 1 & 2 & 3 & 4\cr
 5 & 6 & 7 & 8 & 9\cr
 0 & 1 & 2 & 3 & 4\cr
 }}$$

$$\closeparentheses{\closeparentheses{\closeparentheses{\closeparentheses{
\closeparentheses{\closeparentheses{\closeparentheses{123}}}}}}}$$



\end{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\section{Arabic mathematical}

\subsection{Arabic parenthesis}

\subsection{Arabic parentheses}

\amarabmath

$$ {\parentheses{{123}}}$$

$$ {\parentheses{{\frac{1}{2}}}}$$

$$ {\parentheses{{\frac{1}{{\frac{2}{3}}}}}}$$

$$ {\parentheses{{\frac{1}{{\frac{2}{{\frac{3}{4}}}}}}}}$$

$$ {\parentheses{{\matrix{
 0 & 1 \cr
 1 & 2 \cr
 }}}}$$

$$ {\parentheses{{\matrix{
 1 & 2 & 3 \cr
 4 & 5 & 6 \cr
 7 & 8 & 9 \cr
 }}}}$$

$$ {\parentheses{{\matrix{
 0 & 1 & 2 & 3\cr
 4 & 5 & 6 & 7\cr
 1 & 2 & 3 & 4\cr
 5 & 6 & 7 & 8\cr
 }}}}$$

$$ {\parentheses{{\matrix{
 0 & 1 & 2 & 3 & 4\cr
 5 & 6 & 7 & 8 & 9\cr
 0 & 1 & 2 & 3 & 4\cr
 5 & 6 & 7 & 8 & 9\cr
 0 & 1 & 2 & 3 & 4\cr
 }}}}$$

$$ {\parentheses{{\parentheses{{\parentheses{{\parentheses{{
\parentheses{{\parentheses{{\parentheses{{123}}}}}}}}}}}}}}}$$


\subsection{Arabic open parentheses}

$$ {\openparentheses{{123}}}$$

$$ {\openparentheses{{\frac{1}{2}}}}$$

$$ {\openparentheses{{\frac{1}{{\frac{2}{3}}}}}}$$

$$ {\openparentheses{{\frac{1}{{\frac{2}{{\frac{3}{4}}}}}}}}$$

$$ {\openparentheses{{\matrix{
 0 & 1 \cr
 1 & 2 \cr
 }}}}$$

$$ {\openparentheses{{\matrix{
 1 & 2 & 3 \cr
 4 & 5 & 6 \cr
 7 & 8 & 9 \cr
 }}}}$$

$$ {\openparentheses{{\matrix{
 0 & 1 & 2 & 3\cr
 4 & 5 & 6 & 7\cr
 1 & 2 & 3 & 4\cr
 5 & 6 & 7 & 8\cr
 }}}}$$

$$ {\openparentheses{{\matrix{
 0 & 1 & 2 & 3 & 4\cr
 5 & 6 & 7 & 8 & 9\cr
 0 & 1 & 2 & 3 & 4\cr
 5 & 6 & 7 & 8 & 9\cr
 0 & 1 & 2 & 3 & 4\cr
 }}}}$$

$$ {\openparentheses{{\openparentheses{{\openparentheses{{\openparentheses{{
\openparentheses{{\openparentheses{{\openparentheses{{123}}}}}}}}}}}}}}}$$


\subsection{Arabic close parentheses}

$$ {\closeparentheses{{123}}}$$

$$ {\closeparentheses{{\frac{1}{2}}}}$$

$$ {\closeparentheses{{\frac{1}{{\frac{2}{3}}}}}}$$

$$ {\closeparentheses{{\frac{1}{{\frac{2}{{\frac{3}{4}}}}}}}}$$

$$ {\closeparentheses{{\matrix{
 0 & 1 \cr
 1 & 2 \cr
 }}}}$$

$$ {\closeparentheses{{\matrix{
 1 & 2 & 3 \cr
 4 & 5 & 6 \cr
 7 & 8 & 9 \cr
 }}}}$$

$$ {\closeparentheses{{\matrix{
 0 & 1 & 2 & 3\cr
 4 & 5 & 6 & 7\cr
 1 & 2 & 3 & 4\cr
 5 & 6 & 7 & 8\cr
 }}}}$$

$$ {\closeparentheses{{\matrix{
 0 & 1 & 2 & 3 & 4\cr
 5 & 6 & 7 & 8 & 9\cr
 0 & 1 & 2 & 3 & 4\cr
 5 & 6 & 7 & 8 & 9\cr
 0 & 1 & 2 & 3 & 4\cr
 }}}}$$

$$ {\closeparentheses{{\closeparentheses{{\closeparentheses{{\closeparentheses{{
\closeparentheses{{\closeparentheses{{\closeparentheses{{123}}}}}}}}}}}}}}}$$


\subsection{Kashida}

$${\kashida_{\quad}^{}} \ ;\
  {\kashida_{\quad\quad}^{}}$$

$${\kashida{3mm}} \ ;\
  {\kashida{9mm}}$$

$${\csum_{b=1}^s} c{{}^b} \ ;\
  {\csum_{b=a-1}^s} c{{}^b}$$

$${\cprod_{b=1}^s} c{{}^b} \ ;\
  {\cprod_{b=a-1}^s} c{{}^b}$$

$${\clim_{c \to 0}} c{{}^2} \ ; \
  {\clim_{c \to +\infty}} c{{}^2}$$

$$ {{\csum_{1}^{{\csum_{2}^{{\csum_{3}^{{\csum_{4}^{{\csum_{5}^{{6789}}}}}}}}}}}}$$


\end{document}
