[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?

pstricks-add has curly braces!

Christoph

\documentclass{article}
\usepackage{pstricks-add}
\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]{%
                 \parbox[t][0.4cm][c]{3.7cm}{\quad}
         }
}
\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)
\rput[cb](1,3.6){ready}
\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}



More information about the PSTricks mailing list