I am learning PS Tricks now and I am using Herbert Voß' book. I wanted to try the example with setting different values for the baseline, so I just rewrote it from the book:
Code: Select all
\documentclass[10pt]{article}
\usepackage[a4paper,pagesize]{typearea}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage{amsmath}
\usepackage{pstricks}
\usepackage{pst-plot}
\usepackage{pstricks-add}
\begin{document}
\textcolor{red}{\rule{5mm}{1pt}}
\begin{pspicture}[-0.5](-0.5,-0.5)(0.5,0.5)
\psframe[linecolor=blue](-0.5,-0.5)(0.5,0.5)\rput(0,0){-0.5}
\end{pspicture}
\textcolor{red}{\rule{5mm}{1pt}}
\hspace{1cm}
\begin{pspicture}(-0.5,-0.5)(0.5,0.5)
\psframe[linecolor=blue](-0.5,-0.5)(0.5,0.5)\rput(0,0){0}
\end{pspicture}
\textcolor{red}{\rule{5mm}{1pt}}
\hspace{1cm}
\begin{pspicture}(-0.5,-0.5)(0.5,0.5)
\psframe[linecolor=blue](-0.5,-0.5)(0.5,0.5)\rput(0,0){0.5}
\end{pspicture}
\end{document}
!Package xkeyval Error: '-0.5' undefined in families ',pstricks-add'.
Anybody has a clue? Thank you