[pstricks] Not resorting to my calculator
Markus
markuskrebs at web.de
Sun Dec 14 19:35:27 CET 2008
Hi David!
With the fp-package:
\documentclass{article}
\usepackage{pstricks-add,fp}
\begin{document}
\FPdiv\blubb{2}{3.14}
\FPprint\blubb
\psset{unit=\blubb}
\end{document}
With pstricks-add
\documentclass{article}
\usepackage{pstricks-add}
\begin{document}
\makeatletter
\pst at divide{2pt}{3.14pt}{\blubb}
\makeatother
\psset{unit=\blubb\space in}
\end{document}
pst at divide needs a length.
Other solutions may be possible and better.
Markus
At 19:12 14.12.2008, you wrote:
>All,
>
>I tried:
>
>\psset{xunit=(2/Pi)in,yunit=0.5in}
>
>But didn't work. Now, I could pick up my calculator and:
>
>\psset{xunit=0.6366in,yunit=0.5in}
>
>How can I code this in my source so I don't have to pick up my
>calculator?
>
>D.
>
>_______________________________________________
>PSTricks mailing list
>PSTricks at tug.org
>http://tug.org/mailman/listinfo/pstricks
More information about the PSTricks
mailing list