[pstricks] new diagram + psmatrix
s khan
khan62901 at hotmail.com
Tue Jun 13 20:20:49 CEST 2006
Herbert:
Thanks. If we view the pdf file of the following code, we see that some
arrows are on the boxes, which looks ugly!
What I want is: the three-left-arrow heads should be on the left sides of
the left boxes and the right sides of the right boxes.
If possible, I want all the arrows generated from one point of the bottom
side of the top box.
Thanks once again.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[a4paper]{article}
\usepackage{pstricks}
\usepackage{pst-node}
\definecolor{Pink}{rgb}{1.,0.75,0.8}
\pagestyle{empty}
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\psset{linearc=0} % it makes a round corner of connection link
\begin{psmatrix}[rowsep=1cm,colsep=.5cm]
& \psshadowbox[linearc=5mm,fillstyle=solid,fillcolor=Pink]
{ \begin{tabular}{c}
$ f^1 = a \, q_1 + b \, q_2 $ \\
$ f^2 = c \, q_1 + d \, q_2 $ \\
\end{tabular} } & \\% end of 1st row
\psshadowbox[linearc=5mm,shadow=true,fillstyle=solid,fillcolor=Pink]{
\begin{tabular}{c}
$L_1 = t (q_1+ q_2)\dot{q}_1 - \dot{q}_2 + \frac{dg}{dt} $ \\
when $a=0, b=1, c=2, d=1$
\end{tabular}
}
& &
\psshadowbox[linearc=5mm,shadow=true,fillstyle=solid,fillcolor=Pink]{
\begin{tabular}{c}
$L_1 = t (q_1+ q_2)\dot{q}_1 - \dot{q}_2 + \frac{dg}{dt} $ \\
when $a=0, b=1, c=2, d=1$
\end{tabular}
} \\
\psshadowbox[linearc=5mm,shadow=true,fillstyle=solid,fillcolor=Pink]{
\begin{tabular}{c}
$L_1 = t (q_1+ q_2)\dot{q}_1 - \dot{q}_2 + \frac{dg}{dt} $ \\
when $a=0, b=1, c=2, d=1$
\end{tabular}
}
& &
\psshadowbox[linearc=5mm,shadow=true,fillstyle=solid,fillcolor=Pink]{
\begin{tabular}{c}
$L_1 = t (q_1+ q_2)\dot{q}_1 - \dot{q}_2 + \frac{dg}{dt} $ \\
when $a=0, b=1, c=2, d=1$
\end{tabular}
} \\
\psshadowbox[linearc=5mm,shadow=true,fillstyle=solid,fillcolor=Pink]{
\begin{tabular}{c}
$L_1 = t (q_1+ q_2)\dot{q}_1 - \dot{q}_2 + \frac{dg}{dt} $ \\
when $a=0, b=1, c=2, d=1$
\end{tabular}
}
& &
\psshadowbox[linearc=5mm,shadow=true,fillstyle=solid,fillcolor=Pink]{
\begin{tabular}{c}
$L_1 = t (q_1+ q_2)\dot{q}_1 - \dot{q}_2 + \frac{dg}{dt} $ \\
when $a=0, b=1, c=2, d=1$
\end{tabular}
} \\
% Links
\ncline[linewidth=1.5pt,arrowsize=7pt]{->}{1,2}{2,1}
\ncline[linewidth=1.5pt,arrowsize=7pt]{->}{1,2}{2,3}
\ncline[linewidth=1.5pt,arrowsize=7pt]{->}{1,2}{3,1}
\ncline[linewidth=1.5pt,arrowsize=7pt]{->}{1,2}{3,3}
\ncline[linewidth=1.5pt,arrowsize=7pt]{->}{1,2}{4,1}
\ncline[linewidth=1.5pt,arrowsize=7pt]{->}{1,2}{4,3}
\end{psmatrix}
\end{document}
>s khan wrote:
>
> > Could you pl help me to make the following diagram? I used psmatrix to
> > do it. But it has problems with the arrow lines. In psmatrix, the arrow
> > link between ?f box? and the ?L1 box? connects from the bottom of the ?f
> > box? to the upper side of the L1 box, and so on. Other links overlap
> > boxes.
> >
> > I want the arrow link from the ?f box? to the left side of the ?L1 box?.
> > Similarly from ?f box? to the right side of the ?L2 box?, and so on.
> >
> > Note that my ?L boxes? are long enough, not small.
>
>please give _full_ working examples, if you already
>tried something. Also have a look at http://PSTricks.tug.org
>for nodes and psmatrix examples.
>
>Herbert
>
>
>_______________________________________________
>pstricks mailing list
>pstricks at tug.org
>http://tug.org/mailman/listinfo/pstricks
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
More information about the PSTricks
mailing list