Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm performing a flowchart using pstricks . The problem is how to do superimposed Boxes (in gray and light gray ) included in the flow chart like those in the picture below . Is there any specific function to produce that ?

enter image description here

This is what I've done so far

flowchart

    \begin{psmatrix}[rowsep=0.4,colsep=0.5]
\psovalbox[fillstyle=solid,fillcolor=yellow,shadow=true]{Begin} \\
    \psframebox[shadow=true]{Initialisations} \\
    \psdiabox[fillstyle=solid,fillcolor=Pink,shadow=true]{Special} &
       \psframebox[shadow=true]{1)} & \psframebox[shadow=true]{2)} \\
    \psframebox[shadow=true]{Action 1} \\
    ~\\
    \psframebox[shadow=true]{Action 2} \\
    \psovalbox[fillstyle=solid,fillcolor=yellow,shadow=true]{End}
    % Links
    \ncline{->}{1,1}{2,1}
    \ncline{->}{2,1}{3,1}
    \ncline{->}{3,1}{4,1}<{\textcolor{red}{No}}
    \ncline{->}{4,1}{6,1}
    \ncline{->}{6,1}{7,1}
    \ncline{->}{3,1}{3,2}^{\textcolor{red}{Yes}}
    \ncline{->}{3,2}{3,3}
    \ncbar[angleA=-90,armB=0,nodesepB=0.25]{->}{3,3}{4,1}
\end{psmatrix} 

Thank You for your help in advance .

share|improve this question
    
Can you show what you have tried so far? –  Harish Kumar May 14 '12 at 13:56
    
img43.imageshack.us/img43/6457/123456yv.png Here it's –  ML_TN May 14 '12 at 14:05

1 Answer 1

up vote 1 down vote accepted

To create such a background have a look at the examples at the pstricks example page: http://tug.org/PSTricks/main.cgi?file=pst-node/psmatrix/psmatrix

To create such a background you must nest three psframe:

enter image description here

\documentclass[pstricks]{standalone}
%\documentclass{article}
\usepackage{pstricks,multido}
\usepackage{pst-node}
\usepackage{pstricks-add}
\begin{document}
\begin{pspicture}(-1.5,-1.5)(6.5,4.5)
\pnode(0,0){A}
\pnode(6,4){B}
\psset{fillstyle=solid}
\psframe[fillcolor=gray!20](A)(B)
\uput[-135](B){\huge$m$}
\nodexn{(A)-.5(1,1)}{A}
\nodexn{(B)-.5(1,1)}{B}
\psframe[fillcolor=gray!40](A)(B)
\uput[-135](B){\huge$\ldots$}
\nodexn{(A)-.5(1,1)}{A}
\nodexn{(B)-.5(1,1)}{B}
\psframe[fillcolor=gray!60](A)(B)
\uput[-135](B){\huge$1$}
\end{pspicture}

\end{document}
share|improve this answer
    
Thank You very much , this is what I've been looking for exactly :) –  ML_TN May 14 '12 at 20:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.