[pstricks] curly braces

Martin Röhricht martin at wudika.de
Tue Aug 21 10:49:23 CEST 2007


Hi,

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?

An example may help to understand what I intend to do:

-----------------------------8<-------------------------
\documentclass{article}
\usepackage{pstricks}

\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
\psline{|-|}(1,0.7)(6.6,0.7)
\rput[ct](3.8,0.2){Response Time}

%%% This should be a curly brace
\psline{|-|}(2.5,2.6)(6.6,2.6)
\rput[ct](4.55,2.9){process time}

\end{pspicture}

\end{document}
-----------------------------8<-------------------------

Perhaps someone has a solution to this problem or any ideas?

Thanks,
Martin




More information about the PSTricks mailing list