[pstricks] psPrintValue, decimals

Poul Riis Poul.Riis at skolekom.dk
Mon Feb 18 21:38:44 CET 2013


How can I avoid decimals in the example below (decimals=0 does not work as
expected)?

Poul Riis


\documentclass[12pt,a4paper]{article}
\usepackage[ansinew]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[danish]{babel}
\usepackage{amsmath}
\usepackage[svgnames,x11names]{xcolor}
\usepackage{multido}
\usepackage{pst-func}
\usepackage{pstricks-add}


\begin{pspicture}(-5,-5)(5,5)
\multido{\nn=30+30}{11}{%
\psset{linecolor={[tHsb]{\nn,1,1}}}
\pstVerb{/theta \nn\space 2 div def}
\psline[linewidth=0.5pt,arrows=->](!0 0)(!theta cos 5 mul theta sin 5 mul)
\uput{2.5mm}[!theta]{!theta}(!theta cos 5 mul theta sin 5
mul){\psPrintValue[decimals=0,valuewidth=5,fontscale=8]{theta}}%
}
\end{pspicture}
\end{document}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20130218/ac855456/attachment.html>


More information about the PSTricks mailing list