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 am currently trying to get the example of the pstricks dbicons package to work but I always end up with errors.

I have tried to compile the mondial example (see dbicons-site, sorry i can only put in 2 hyperlinks) but also the much shorter example from the pdf:

\documentclass{article}
\usepackage[latin1]{inputenc}
\usepackage{pstricks,pst-node,pst-coil,color,pst-dbicons}
\seticonparams{entity}{shadow=true,fillcolor=black!30,fillstyle=solid}
\seticonparams{attribute}{fillcolor=black!10,fillstyle=solid}
\seticonparams{relationship} shadow=true,fillcolor=black!20,fillstyle=solid}

\begin{document}
\entity{Person}
\attributeof{Person}{30}[key]{Name}
\attributeof{Person}{90}[mv]{Nickname}
\attributeof{Person}[4em]{150}{phone}[phone\_no]
\attributeof{Person}{270}[mv]{wt}[weight\_at]
\attributeof{wt}{220}{date}
\attributeof{wt}{300}{weight}

\end{document}

Here are the gists for the mondial one and the small one with gist id 856439.

I'd be delighted if someone could point out my error(s).

share|improve this question
    
Note that it is unusual around here to sign your questions (as there is already a box with your username below it) or to have any greeting. –  lockstep Mar 5 '11 at 15:46
add comment

1 Answer 1

Your system seems really out of date. You'll find up-to-date versions here: http://texnik.dante.de

However, your example has an error! With this one I get the attached output

\documentclass{article}
\usepackage[latin1]{inputenc}
\usepackage{pst-node,pst-dbicons}
\seticonparams{entity}{shadow=true,fillcolor=black!30,fillstyle=solid}
\seticonparams{attribute}{fillcolor=black!10,fillstyle=solid}
\seticonparams{relationship}{shadow=true,fillcolor=black!20,fillstyle=solid}

\begin{document}
\entity{Person}
\attributeof{Person}{30}[key]{Name}
\attributeof{Person}{90}[mv]{Nickname}
\attributeof{Person}[4em]{150}{phone}[phone\_no]
\attributeof{Person}{270}[mv]{wt}[weight\_at]
\attributeof{wt}{220}{date}
\attributeof{wt}{300}{weight}

\end{document}

enter image description here

share|improve this answer
add comment

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.