W. Michael Petullo | 2 Dec 2010 21:02

Question about PGF lines and arrows

I am trying to build several PGF shapes to aid in the creation of
networking diagrams using LaTeX. I have tried texlive-2010-13.20101102
and pgf_2.10.tds.zip. My work is resulting in some unexpected behavior
and I am hoping someone might be able to explain things.

At the end of this email is a PGF shape called router. This shape
should consist of a circle with four lines inside of it, each with
one arrowhead.

Here are the anomalies:

1. The arrow pointing from the circle's center to the north east does
not have an arrowhead.

2. The circle is not filled with opaque white (things underneath show
through). If I replace the pgflines with the following, the the shape
will be filled, but NONE of the arrowheads display:

	% Replace \pgfline used below with:
	\pgfpathmoveto{\pgfpoint{0.2 * \radius}{0.2 * \radius}}
	\pgfpathlineto{\pgfpoint{\radius - (0.4 * \radius)}{\radius - (0.4 * \radius)}}

I have another shape, a switch, that consists of a square four with
horizontal lines inside of it. Each of these lines should have an
arrowhead, but these do not display. Like the router, the switch is
transparent unless I change the use of \pgfline to \pgfpathlineto.

\pgfdeclareshape{router}{
        \inheritsavedanchors[from=circle]
        \inheritanchorborder[from=circle]
(Continue reading)


Gmane