%% 
%%  A DANTE-Edition example
%% 
%%  Example 30-02-12 on page 592.
%% 
%%  Copyright (C) 2011 Herbert Voss
%% 
%%  It may be distributed and/or modified under the conditions
%%  of the LaTeX Project Public License, either version 1.3
%%  of this license or (at your option) any later version.
%% 
%%  See http://www.latex-project.org/lppl.txt for details.
%% 
%% 
%% ==== 
% Show page(s) 1
%% 
\documentclass[]{article}
\pagestyle{empty}
\setlength\textwidth{375.57637pt}
\setlength\parindent{0pt}

\usepackage{pstricks-add}
\def\someMath{$\int\limits_1^{\infty}\frac{1}{x^2}\,\mathrm{d}x=1$}

\begin{document}
\begin{pspicture}(12cm,2cm)
\psbrace(0,0)(0,2){\fbox{text}}\psbrace[nodesepB=1ex](1.5,0)(1.5,2){\fbox{text}}
\psbrace[ref=lC](3,0)(3,2){\fbox{text}}
\psbrace[ref=lt,rot=90,nodesepB=15pt](4.5,0)(4.5,2){\fbox{text}}
\psbrace[ref=lc,nodesepA=25pt](6,0)(6,2){\someMath}
\psbrace[rot=90,ref=C,nodesepA=10pt](8.5,0)(8.5,2){\someMath}
\psbrace*[rot=90,ref=C,nodesepA=-10pt,linecolor=cyan](11.3,2)(11.3,0){\color{cyan}\someMath}
\end{pspicture}
\end{document}
