Import/Insert



Import


LaTeXDraw can import a PSTricks file : PSTricks commands are translated in figures in a drawing.
To insert a PSTricks drawing, the PSTricks code must be tagged by :

\begin{pspicture}(..)(..)
..
\end{pspicture}

If there is no pspicture tag, the code will not be imported.

This is the first release of the PSTricks parser, so only a few commands are managed : psframe, psellipse, psarc, pswedge, pscircle, psdot, psdots, psgrid, rput, degrees, radians, psline, pspolygon, psbezier, psdoamond, pstriangle and several latex commands.

Important PSTricks commands like uput, specialCoor, ... are yet not managed.

When you want to parse a text or a framed box, it must be boxed by the command rput; for instance:
\psframebox{coucou} mus be inserted as rput(0,0){\psframebox{coucou}}
Because a text or a framed box has not coordinate and when you insert a text without rput, the drawing is badly drawn. So you must use the command rput which define a coordinate for these shapes.


Insert a picture


To insert a picture in a drawing, select the picture with the "Insert->Picture" frame.

line
A picture can be rotated.
An eps picture cannot be import but pstricks works only with eps files; so, when you include a jpeg picture, an eps picture is created in order to make the pstricks compilable.
When you load a latexdraw file with a picture inside, the path of the jpeg, bmp, ... picture is used to load the picture NOT THE PATH OF THE EPS PICTURE.



Insert PSTricks code


Instead of import PSTricks code, you can insert PSTricks code in a drawing : no new drawing is created, the PSTricks figures are included in the current drawing.

line