PSTricks - Graphics for T<span class="e">e</span>X and L<span class="a">a</span>T<span class="e">e</span>X


Welcome to the PSTricks web site

Overlays
TUG logo

Main page

Index
Bug list
Documentation
Doc errors
Examples
2D Gallery
3D Gallery
Packages
References
CTAN
Search CTAN:
Germany
USA

Statistics

 


Extended translation of the the 5th edition

 


the 7th edition, total of 960 colored pages

 


2nd edition, 212 pages, includes 32 color pages

 


 


 


 


 


 

 

 


 


Colored text |  Grid as an overlay |  overpic and pstricks |  ncbox* | 


Colored text
overlay6.png

Package overpic and pstricks
With pstricks it's possible to draw over another eps-image. The black and white rose.eps should be part of your local TeX installation. The colored one is available here. To get the same scaling factor for images inserted with the overpic macro and for pstricks you need the height and/or width of the images, because this is set to 1 (absolut) or 100 (percent) opr 1000 (per mille)



It is also possible to draw the text in relative coordinates:

Write into the preamble the following code, which is part of a figure float:
\centering\savebox{\Imagebox}{%
  \includegraphics{/tmp/eva.eps}}
\begin{minipage}{\wd\Imagebox}
  \begin{pspicture}(\wd\Imagebox,\ht\Imagebox)
    \setlength\fboxsep{0pt}
    \rput[lb](0,0){\fbox{\usebox{\Imagebox}}}
    \rput[l](0,0){Lower Left}
    \rput[r](\wd\Imagebox,\ht\Imagebox){Upper Right}
    \rput[r](\wd\Imagebox,0){Lower Right}
    \rput[l](0,\ht\Imagebox){Upper Left}
  \end{pspicture}
\end{minipage}

Rename only the imagefile and do not forget the \usepackage{pstricks} in the preamble..
overlay8

Another example

overlay5.png

LaTeX source and the example image. The TeX file needs the package sidecap, which should be part of your local TeX system. otherwise get it from CTAN.


\ncbox*
There is a problem to use filled rectangle and nodes, because the nodes had to defined first, before the node connection could be drawn. On the other hand the ncbox overwrites the node label. This example defines a macro \fgbg, which draws first the foreground to define the node coordinates and then draws the background and again the foreground.
overlay4.png

local time: Mon Nov 25 00:54:03 CET 2024 ; file is: 783.353680555556 days old
contact webmaster _at_ perce.de