[pstricks] pstricks pst-func \rput conflict

berginj at econ.queensu.ca berginj at econ.queensu.ca
Sat May 1 19:05:48 CEST 2010


In the small latex file below, I have both packages pst-func and pst-all.
When run with ``pst-func'' all labels p_1, p_2, x_1, x_2 are placed at
(0,0), whereas ``pst-all'' places them properly. When both pst-all and
pst-func are present, the labels are also misplaced.  In need to use both
packages in my file.  Is there a simple explanation and solution?

jim.

\documentclass[10pt]{book}
\usepackage{pst-func}
\usepackage{pst-all}
\begin{document}
%%
%%
\begin{pspicture}(-1,-1)(4,6)
\psset{unit=0.75cm}
\psline{->}(0,0)(0,5)
\psline{->}(0,0)(4,0)
\psline[linewidth=1.0pt]{-}(1,0)(1,3)
\psline[linewidth=1.0pt]{-}(2,0)(2,4)
\psline[linewidth=1.0pt]{-}(3,0)(3,2)
%%%
\rput(1,-0.25){$x_1$}
\rput(2,-0.25){$x_2$}
\rput(3,-0.25){$x_3$}
%%%
\rput(-0.35,3){$p_1$}
\rput(-0.35,4){$p_2$}
\rput(-0.35,2){$p_3$}
\end{pspicture}
%%
%%
\end{document}


More information about the PSTricks mailing list