[pstricks] How work psdiabox, pstriabox, psovalbox and pscircle
arno_b at users.sourceforge.net
Wed Jul 12 09:15:26 CEST 2006
> > I am working on a graphical pstricks generator
> > (http://latexdraw.sourceforge.net/)
> > and I want to want know how the psdiabox, pstriabox, psovalbox and
> > pscircle commands are made; i.e., how the width and the height of the
> > triangle, the diamond, the circle and of the ellipse are computed. I am
> > not conversant with the code of the pstricks.tex file.
The object is placed into a TeX box and the width
\wd\hbox and height \ht\hbox and \dp\hbox are
passed to PostScript to draw the border lines.
It is _not_ possible to get the width and height
without knowing the font size and font shape.
I know that.
Look at this exemple:
I want to know how the height and the width of these
rhombus are computed given a text of width 'w' and of
height 'h'. The thickness seems to play a part.
More information about the PSTricks