[pstricks] Big arrow with text inside

David Arnold dwarnold45 at suddenlink.net
Thu Mar 12 18:02:05 CET 2009


Do you explain this stuff in a chapter in your upcoming book?


On Mar 12, 2009, at 9:45 AM, Herbert Voss wrote:

David Arnold schrieb:

> I'd like to create a large arrow with shaded fill and solid border.
> Inside the arrow I'd like to center the text "Increasing", with the
> arrow pointing to the right. I'd like to be able to translate this
> arrow to a desired position. Similarly, I'd like a left pointed arrow
> with the word "decreasing" inside.
> Any suggestions?

a simple one ...



\def\bigArrow{\pst at object{bigArrow}}
\def\bigArrow at i(#1,#2){%
   \begin at ClosedObj
   \pspolygon(#1,0)(#1,0.4)(!#2 0.75 sub 0.4)
     (!#2 0.75 sub 0.8)(#2,0)(!#2 0.75 sub -0.8)
     (!#2 0.75 sub -0.4)(#1,-0.4)
   \end at ClosedObj%



PSTricks mailing list
PSTricks at tug.org

More information about the PSTricks mailing list