PSTricks and \psdiabox

Denis Girou Denis.Girou at idris.fr
Tue Mar 14 19:21:45 CET 2000

-----------------------------------------------------------------------------
This is the PSTricks mailing list, devoted to discussions about computational
graphics in (La)TeX using the PSTricks package from Timothy van Zandt.
For help using this mailing list, see instructions at the end of message.
-----------------------------------------------------------------------------

The following message is a courtesy copy of an article
that has been posted to comp.text.tex as well.

>>>>> "Jonas.Grave" == Jonas Grave <jonas_grave at yahoo.dk> writes:

Jonas.Grave> I have just started using PSTricks in LaTeX and I'm trying to make a
Jonas.Grave> block diagram in the psmatrix environment. I need a diamond shaped box
Jonas.Grave> and use for this the \psdiabox. The shape of the diamond (height, width)
Jonas.Grave> is not what I want. Is it possible to change this?

You can use the "framesep" parameter, as for all the text box macros,
and also the LaTeX \makebox and \rule macros to change the shape of the diamond.

\documentclass[a4paper]{article}

\usepackage{pst-node}

\pagestyle{empty}

\begin{document}

\psdiabox{Diamond}\hfill%
\psdiabox[framesep=0]{Diamond}\hfill%
\psdiabox[framesep=0.3]{Diamond}

\psdiabox{\makebox[4cm]{Diamond}}\hfill%
\psdiabox[framesep=-0.3]{\rule[-0.9cm]{0cm}{2cm}Diamond}

\end{document}

Denis Girou
--
--------------------------------------------------------------------------
Institut du Développement et des Ressources en Informatique Scientifique |
Centre National de la Recherche Scientifique                             |
Bâtiment 506 - B.P. 167 - 91403 Orsay Cedex - France                     |
--------------------------------------------------------------------------

-----------------------------------------------------------------------------
The list interface (subscription, information, access to the archives) is on:
http://www.tug.org/cgi-bin/lwgate/pstricks
Otherway to unsubscribe, send mail to pstricks-request at mail.tug.org
with a blank subject and in body the line unsubscribe <email-address>
-----------------------------------------------------------------------------



More information about the PSTricks mailing list