<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<style type="text/css">
<!--
body{margin-left:10px;margin-right:10px;margin-top:10px;margin-bottom:10px;}
-->
</style>
</head>
<body marginleft="10" marginright="10" margintop="10" marginbottom="10">
<div align="left" style="text-align:left;"><font face="Arial" size="+0" color="#000000" style="font-family:Arial;font-size:10pt;color:#000000;">In the project below I just tested some features of pst-tools.</font></div>
<div align="left" style="text-align:left;"><font face="Arial" size="+0" color="#000000" style="font-family:Arial;font-size:10pt;color:#000000;">I wonder why psPrintValue prints 1 decimal even if I have the option decimals=0, whereas psPrintValueNew prints the binomial coefficient as an integer (as intended).</font></div>
<div align="left" style="text-align:left;"><font face="Arial" size="+0" color="#000000" style="font-family:Arial;font-size:10pt;color:#000000;">On the other hand, the option postString seems to work with psPrintValue but not with psPrintValueNew.</font></div>
<div align="left" style="text-align:left;"><font face="Arial" size="+0" color="#000000" style="font-family:Arial;font-size:10pt;color:#000000;">Where can I find documentation on psPrintValueNew? Is it new or obsolete?</font></div>
<br />
<div align="left" style="text-align:left;"><font face="Arial" size="+0" color="#000000" style="font-family:Arial;font-size:10pt;color:#000000;">Would it be possible to furthermore improve psPrintValue as to minimize the need for manual horizontal adjustments when combining text and postscript variables printed with psPrintValue? Or can I do it more elegantly with the existing psPrintValue command?</font></div>
<br />
<br />
<div align="left" style="text-align:left;"><font face="Arial" size="+0" color="#000000" style="font-family:Arial;font-size:10pt;color:#000000;">Poul Riis</font></div>
<br />
<br />
<br />
<br />
<div align="left" style="text-align:left;"><font face="Arial" size="+0" color="#0000DD" style="font-family:Arial;font-size:10pt;color:#0000DD;">\documentclass[a4paper,12pt]{article}</font></div>
<div align="left" style="text-align:left;"><font face="Arial" size="+0" color="#0000DD" style="font-family:Arial;font-size:10pt;color:#0000DD;">\usepackage{pst-tools}</font></div>
<div align="left" style="text-align:left;"><font face="Arial" size="+0" color="#0000DD" style="font-family:Arial;font-size:10pt;color:#0000DD;">\usepackage{pstricks-add}</font></div>
<div align="left" style="text-align:left;"><font face="Arial" size="+0" color="#0000DD" style="font-family:Arial;font-size:10pt;color:#0000DD;">\usepackage[fleqn]{amsmath}</font></div>
<div align="left" style="text-align:left;"><font face="Arial" size="+0" color="#0000DD" style="font-family:Arial;font-size:10pt;color:#0000DD;">\usepackage[left=1.5cm,top=1.5cm,right=1.5cm,bottom=1.5cm]{geometry}</font></div>
<div align="left" style="text-align:left;"><font face="Arial" size="+0" color="#0000DD" style="font-family:Arial;font-size:10pt;color:#0000DD;">\pagestyle{empty}</font></div>
<div align="left" style="text-align:left;"><font face="Arial" size="+0" color="#0000DD" style="font-family:Arial;font-size:10pt;color:#0000DD;">\begin{document}</font></div>
<div align="left" style="text-align:left;"><font face="Arial" size="+0" color="#0000DD" style="font-family:Arial;font-size:10pt;color:#0000DD;">\begin{pspicture}(0,0)(16,8)</font></div>
<div align="left" style="text-align:left;"><font face="Arial" size="+0" color="#0000DD" style="font-family:Arial;font-size:10pt;color:#0000DD;">        \pstVerb{/PP [3 4] def /QQ [7 5] def /PplusQ PP QQ cxadd def /PmulQ PP QQ cxmul def}</font></div>
<br />
<div align="left" style="text-align:left;"><font face="Arial" size="+0" color="#0000DD" style="font-family:Arial;font-size:10pt;color:#0000DD;">%Binomial coefficient, K(6,3):  </font></div>
<div align="left" style="text-align:left;"><font face="Arial" size="+0" color="#0000DD" style="font-family:Arial;font-size:10pt;color:#0000DD;">        \uput{3pt}[0]{0}(1,0){$\begin{pmatrix}6\\3\end{pmatrix}=$\psPrintValue[decimals=0]{6 3 MoverN}}</font></div>
<div align="left" style="text-align:left;"><font face="Arial" size="+0" color="#0000DD" style="font-family:Arial;font-size:10pt;color:#0000DD;">        \uput{3pt}[0]{0}(10,0){$\begin{pmatrix}6\\3\end{pmatrix}=$\psPrintValueNew[decimals=0]{6 3 MoverN}}</font></div>
<br />
<div align="left" style="text-align:left;"><font face="Arial" size="+0" color="#0000DD" style="font-family:Arial;font-size:10pt;color:#0000DD;">%Complex multiplication:</font></div>
<div align="left" style="text-align:left;"><font face="Arial" size="+0" color="#0000DD" style="font-family:Arial;font-size:10pt;color:#0000DD;">        \uput{3pt}[0]{0}(1,2){$($\psPrintValue[postString=+]{PP 0 get}\psPrintValue[xShift=10,postString=i]{PP 1 get}$\hspace{1.5em})\cdot($\psPrintValue[postString=+]{QQ 0 get}\psPrintValue[xShift=10,postString=i]{QQ 1 get}$\hspace{1.5em})=$\psPrintValue[postString=+]{PmulQ 0 get}\psPrintValue[xShift=10,postString=i]{PmulQ 1 get}}</font></div>
<div align="left" style="text-align:left;"><font face="Arial" size="+0" color="#0000DD" style="font-family:Arial;font-size:10pt;color:#0000DD;">        \uput{3pt}[0]{0}(10,2){$($\psPrintValueNew[postString=+]{PP 0 get}\psPrintValueNew[xShift=10,postString=i]{PP 1 get}$\hspace{1.5em})\cdot($\psPrintValueNew[postString=+]{QQ 0 get}\psPrintValueNew[xShift=10,postString=i]{QQ 1 get}$\hspace{1.5em})=$\psPrintValueNew[postString=+]{PmulQ 0 get}\psPrintValueNew[xShift=10,postString=i]{PmulQ 1 get}}</font></div>
<div align="left" style="text-align:left;"><font face="Arial" size="+0" color="#0000DD" style="font-family:Arial;font-size:10pt;color:#0000DD;">        </font></div>
<div align="left" style="text-align:left;"><font face="Arial" size="+0" color="#0000DD" style="font-family:Arial;font-size:10pt;color:#0000DD;">        \uput{3pt}[0]{0}(1,4){psPrintValue}</font></div>
<div align="left" style="text-align:left;"><font face="Arial" size="+0" color="#0000DD" style="font-family:Arial;font-size:10pt;color:#0000DD;">        \uput{3pt}[0]{0}(10,4){psPrintValueNew}</font></div>
<div align="left" style="text-align:left;"><font face="Arial" size="+0" color="#0000DD" style="font-family:Arial;font-size:10pt;color:#0000DD;">\end{pspicture}</font></div>
<div align="left" style="text-align:left;"><font face="Arial" size="+0" color="#0000DD" style="font-family:Arial;font-size:10pt;color:#0000DD;">\end{document}</font></div>
<br />
</body>
</html>