[pstricks] newfloat for pspicture

Fabian Braennstroem f.braennstroem at gmx.de
Tue Mar 8 14:20:36 CET 2005


Hi all,

I am doing my first steps with pstricks and wonder how the
positioning of pstricks-picture/pspicture works. I know the parameters to
define the 'absolute' position on the page, but I have
problems to get 'pspicture' into a floating behavior with
'newfloat'. 

I am not sure, if my way is correct!? It looks like:

\documentclass[12pt,a4paper]{article}
\usepackage{pstricks}
\usepackage{pst-plot}
\usepackage{float}

\newfloat{myPics}{htb}{loP}[section]
\floatname{myPics}{PSPicture}
 
\begin{document}
\section{alsfjk}
\section{alsfjkdals}
\section{alsfjkdals}
\section{alsfjkdals}
Test

\section{alsfjkdals}
aslfjkalsfjkd

Test

\begin{myPics}
  \psset{xunit=0.01cm, yunit=0.1cm,xLabel={\scriptsize\sffamily}, yLabel={\scriptsize\sffamily},griddots=5,gridlabels=1pt,subgriddiv=100}
  %\begin{pspicture}(10,10.0)
  \psaxes[Dx=100,dy=10]{->}(1000,100)
  \psgrid[gridcolor=blue,xunit=1cm,yunit=1cm](10,10)
  %\end{pspicture}
\end{myPics}

\section{alsfjkdals}

Test
Test

Test
\end{document}


Maybe, you have any ideas?

Best Regards!
Fabian




More information about the PSTricks mailing list