# [pstricks] curly braces

Christoph Bersch usenet at bersch.net
Tue Aug 21 11:52:12 CEST 2007

Martin Röhricht schrieb:
>
> I would like to draw a wide spawn curly brace in order to illustrate the
> length of a particular section in my figure. But I am afraid PSTricks does
> not offer such curly braces yet, right?

Christoph

\documentclass{article}
\begin{document}

\begin{pspicture}(10,5)
\psline[arrowscale=2]{->}(0,1.7)(8,1.7)
\psline(1,1.5)(1,1.9)
\psline(6.6,1.5)(6.6,1.9)
\rput[lb](2.5,1.7){%
\psframebox[linestyle=solid,fillcolor=lightgray,fillstyle=solid]{%
}
}
\rput[lb](1,1){$r_i$}
\rput[lb](6.6,1){$c_i$}
\rput[lb](8,1){$t$}

\psline{->}(1,3.3)(1,2.8)
\psline{->}(2.5,3.3)(2.5,2.8)
\rput[cb](2.5,3.6){assigned}
\psline{->}(6.6,3.3)(6.6,2.8)
\rput[cb](6.6,3.6){completed}

%%% This should be a curly brace
\psbrace[rot=90,ref=t,nodesepB=-10pt](1,0.7)(6.6,0.7){Response Time}

%%% This should be a curly brace
\psbrace[rot=90,nodesepB=-10pt](2.5,2.6)(6.6,2.6){process time}

\end{pspicture}

\end{document}