[pstricks] psPrintValue, decimals

Herbert Voss Herbert.Voss at FU-Berlin.DE
Mon Feb 18 22:12:16 CET 2013


On 18.02.2013 21:38, Poul Riis wrote:
> How can I avoid decimals in the example below (decimals=0 does not work
> as expected)?

> \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}}%

\psPrintValue[valuewidth=5,fontscale=8]{theta cvi}

Herbert



More information about the PSTricks mailing list