[pstricks] dbicons: entities positioning
Olga Lyashevska
olga.mailinglist at herenstraat.nl
Wed Apr 30 10:52:29 CEST 2008
Dear All,
In dbicons I am trying to get the entity 'tbl_std' on one horizontal line
with the entity 'tbl_lvl' and the same for 'tbl_dsc' and 'tbl_indx'
So that they will be positioned in the corners of imaginary rectangle.
At this moment they are skewed. Could you suggest anything?
Thanks in advance,
Olga
------begin example-----------
\documentclass{article}
\usepackage{pstricks,pst-node,pst-coil,color,dbicons}
\seticonparams{entity}{shadow=true, fillcolor=lightgray}
\begin{document}
\begin{tabular}{cc}
%entities
\begin{tabular}{c}
\entity{tblpbl}[tbl\_pbl]\\[3cm]
\entity{tblstd}[tbl\_std]\\[3cm]
\entity{tbldsc}[tbl\_dsc] \\[3cm]
\end{tabular}
\hspace{15em}
\begin{tabular}{c}
\entity{tbllvl}[tbl\_lvl]\\[3cm]
\entity{tblindx}[tbl\_indx]\\[3cm]
\end{tabular}
%attributes
\attributeof{tblpbl}[4em]{0}{pbloth}[pbl\_oth]
\attributeof{tblpbl}[4em]{30}{pblauth}[pbl\_auth]
\attributeof{tblpbl}[4em]{90}[key]{pblid}[pbl\_id]
\attributeof{tblpbl}[4em]{150}{pblyr}[pbl\_yr]
\attributeof{tblpbl}[4em]{180}{pbljrn}[pbl\_jrn]
\attributeof{tblstd}[4em]{180}[key]{stdid}[std\_id]
\attributeof{tbldsc}[4em]{180}[key]{dscid}[dsc\_id]
\attributeof{tbldsc}[4em]{150}{dscname}[dsc\_name]
\attributeof{tbldsc}[4em]{220}{dscval}[dsc\_val]
\attributeof{tbldsc}[4em]{270}{dscunit}[dsc\_unit]
\attributeof{tbldsc}[4em]{320}{dscoth}[dsc\_oth]
\attributeof{tbllvl}[4em]{0}{lvlid}[lvl\_id]
\attributeof{tbllvl}[4em]{90}{lvlname}[lvl\_name]
\attributeof{tblindx}[4em]{0}{indxid}[indx\_id]
\attributeof{tblindx}[4em]{330}{indxname}[indx\_name]
\attributeof{tblindx}[4em]{270}{indxrel}[indx\_rel]
%relationships
\relationshipbetween{tblpbl}{tblstd}{contains}
\relationshipbetween{tblstd}[m:1]{tbldsc}{described}
\relationshipbetween{tblstd}{tbllvl}{fill}
\relationshipbetween{tbldsc}{tblindx}{fill}
\relationshipbetween{tbllvl}{tblindx}{fill}
\end{tabular}
\end{document}
------end example------------
More information about the PSTricks
mailing list