[pstricks] English Rule

David Arnold dwarnold45 at suddenlink.net
Mon Jun 1 17:26:02 CEST 2009


I forgot to add this:

\setupMPvariables
	[EnglishRule]
	[height=0.25ex,
	width=\localhsize,
	color=heavyblue]

On Jun 1, 2009, at 7:53 AM, David Arnold wrote:

All,

Here's some Metapost code that draws an "English Rule".

	
\startuniqueMPgraphic{EnglishRule}{height,width,color}
	numeric height; height=\MPvar{height};
	x1=0; x3=\MPvar{width}; x2=x4=.5x3;
	y1=y3=0; y2:=-y4=height/2;
	fill z1..z2..z3 & z3..z4..z1 & cycle withcolor \MPvar{color};
\stopuniqueMPgraphic

The result looks something like this (attached):

<pastedGraphic.tiff>

Can someone show me how to the same thing in PSTricks?

D._______________________________________________
PSTricks mailing list
PSTricks at tug.org
http://tug.org/mailman/listinfo/pstricks



More information about the PSTricks mailing list