[pstricks] rput: differing results with latex and xelatex

Herbert Voss Herbert.Voss at FU-Berlin.DE
Wed Mar 18 18:49:37 CET 2015


Am 18.03.2015 um 17:50 schrieb Juergen Rose:
> Am Mittwoch, den 18.03.2015, 16:17 +0100 schrieb Juergen Rose:
>> I did with the attached lecture_article.tex with lines:
>>
>> ...
>> \Cnode[radius=5mm](0.8961,0.82){F}\rput(0.8961,0.82){\Large $x_7$}
>> \ncline{E}{F}

the xdvipdfmy driver uses the unit bp but it should be pt.

Use
\psset{xunit=0.9963,yunit=0.9963}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
(see below) which is 72/72.27.


\documentclass{article}
\usepackage{pstricks-add}

\begin{document}

\psscalebox{0.55}{%
   \psframebox{%
     \psset{algebraic,plotpoints=100,xunit=130.0,yunit=90.0}
     \begin{pspicture*}(0.84,0.65)(1.01,1.01)
         \psaxes[Ox=1.00,Oy=0.75,Dx=0.05,Dy=0.05] 
{->}(1.0,0.75)(0.84,0.65)(1.01,1.01)
         \psplot[linecolor=red] {0.84}{1.01}{cos(x)/sin(x)}
         \psplot[linecolor=blue] {0.84}{1.01}{ x*x }
         \psplot[linecolor=brown] {0.84}{1.01}{ -(x-3.14159265/2) }
         \psplot[linecolor=green] {0.84}{1.01}{ 
-(x-3.14159265/2)-(x-3.14159265/2)^3/3}
         \uput[-45](4.1,-0.2){$\bf x$}    \uput[180](-0.2,4.4){$\bf y$}
         \psline[linecolor=blue](0.925,0.85)(0.94,0.85) 
\rput[l](0.945,0.85){\small\sffamily $y=x^2$}
         \psline[linecolor=red](0.925,0.84)(0.94,0.84)
         \rput[l](0.945,0.84){\small\sffamily $y=\cot(x)$}
         \psline[linecolor=brown](0.925,0.83)(0.94,0.83)
         \rput[l](0.945,0.83){\small\sffamily 
$y=-\left(x-\frac{\pi}{2}\right)$}
         \psline[linecolor=green](0.925,0.82)(0.94,0.82)
         \psset{xunit=0.9963,yunit=0.9963}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
         \rput[l](0.945,0.82){\small\sffamily 
$y=-\left(x-\frac{\pi}{2}\right)-\frac{1}{3}\left(x-\frac{\pi}{2}\right)^3$}
         \rput(1.0,1.0){\circlenode{A}{x}}
         \rput(0.98,0.985){\circlenode{B}{\Large $x_0$}}\ncline{A}{B}
         \rput(0.8897,0.7915){\circlenode{C}{x}}
         \rput(0.8897,0.77)  {\circlenode{D}{\Large $x_2$}}\ncline{C}{D}
         \rput(0.8961,0.8031)   {\circlenode{E}{x}}
         \rput(0.8961,0.82)  {\circlenode{F}{\Large $x_7$}}\ncline{E}{F}%
         \rput(0.89508,0.80117) {\circlenode{G}{x}}
         \rput(0.915,0.801)  {\circlenode{H}{\Large $x_8$}}\ncline{G}{H}
         \rput(0.8493,0.7213)   {\circlenode{I}{x}}
         \rput(0.8493,0.68)  {\circlenode{J}{\Large $x_4$}}\ncline{I}{J}
         \rput(0.88811,0.788739){\circlenode{I}{x}}
         \rput(0.87,0.788739){\circlenode{J}{\Large $x_9$}}\ncline{I}{J}
     \end{pspicture*}%
   }%
}

\end{document}


Herbert




More information about the PSTricks mailing list