[pstricks] PSTricks Digest, Vol 77, Issue 2

John Was john.was at ntlworld.com
Mon Jun 1 18:24:23 CEST 2009


Hi

If this means what we used to call a 'swelled rule' at OUP, then try (and 
adapt) the following:

\par
\noindent
\pspolygon*(0,0)(0.5\hsize,2pt)%
(\hsize,0)(0.5\hsize,-2pt)%
\par


That should give a full-width swelled rule that is 4pt deep in the middle.

Hope this helps.


John

----- Original Message ----- 
From: <pstricks-request at tug.org>
To: <pstricks at tug.org>
Sent: Monday, June 01, 2009 5:03 PM
Subject: PSTricks Digest, Vol 77, Issue 2


> Send PSTricks mailing list submissions to
> pstricks at tug.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://tug.org/mailman/listinfo/pstricks
> or, via email, send a message with subject or body 'help' to
> pstricks-request at tug.org
>
> You can reach the person managing the list at
> pstricks-owner at tug.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of PSTricks digest..."
>
>
> Today's Topics:
>
>   1. English Rule (David Arnold)
>   2. Re: Every Other Tick Again (David Arnold)
>   3. Re: Every Other Tick Again (David Arnold)
>   4. Re: English Rule (David Arnold)
>   5. Re: English Rule (Herbert Voss)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 1 Jun 2009 07:53:07 -0700
> From: David Arnold <dwarnold45 at suddenlink.net>
> To: Graphics with PSTricks <pstricks at tug.org>
> Subject: [pstricks] English Rule
> Message-ID: <784D02E5-6381-4AB9-B1ED-EAA5DB787A71 at suddenlink.net>
> Content-Type: text/plain; charset="us-ascii"; Format="flowed"
>
> 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):
>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: pastedGraphic.tiff
> Type: image/tiff
> Size: 11142 bytes
> Desc: not available
> URL: 
> <http://tug.org/pipermail/pstricks/attachments/20090601/8ee0a65b/attachment-0001.tiff>
> -------------- next part --------------
>
>
> Can someone show me how to the same thing in PSTricks?
>
> D.
>
> ------------------------------
>
> Message: 2
> Date: Mon, 1 Jun 2009 08:02:30 -0700
> From: David Arnold <dwarnold45 at suddenlink.net>
> To: Graphics with PSTricks <pstricks at tug.org>
> Subject: Re: [pstricks] Every Other Tick Again
> Message-ID: <CF7C4769-09A8-4FC0-B113-AF7ED191F765 at suddenlink.net>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
> Herbert,
>
> OK. I did a \listfiles and get this output:
>
>  *File List*
>  minimal.cls    2001/05/25 Standard LaTeX minimal class
> pstricks-add.sty    2009/03/17 v. 0.13 package wrapper for pstricks-
> add.tex (hv
> )
> pstricks.sty    2008/11/26 v0.40 LaTeX wrapper for `PSTricks' (RN,HV)
> pstricks.tex    2009/01/25 v1.27 `PSTricks' (tvz,hv)
>   xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)
>    color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
>    dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
> pstricks-add.tex    2009/04/29 v3.31 `PSTricks-add' (hv)
> pst-xkey.tex    2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
>  xkeyval.sty    2008/08/13 v2.6a package option processing (HA)
>  xkeyval.tex    2008/08/13 v2.6a key=value parser (HA)
>  ***********
>
> Am I out of date?
>
> I am using a Mac with mactex 2008 texlive distribution.
>
> D.
>
> On May 31, 2009, at 10:57 PM, Herbert Voss wrote:
>
> David Arnold schrieb:
>> All, Sometime back Herbert shared this example with me:
>>
>> \documentclass{minimal}
>> \usepackage{pstricks-add}
>> \begin{document}
>>
>> With pstricks-add:
>>
>> \begin{pspicture}(-1,-1)(6,6)
>> \psaxes[showOriginTick=false,showorigin=false,Dx=2,Dy=2,subticks=2]
>> (6,6)
>> \end{pspicture}
>>
>> \end{document}
>>
>> I think the intent was to have ticks every one unit but label only the
>> even ticks. However, the attached shows what I get:
>>
>>
>>
>> Am I in error thinking that the above code would do as I expected?
>> Or is
>> there a bug? Or an outdated pstricks-add?
>
> I get the correct aoutput with ticks on every number ...
>
>
> Herbert<xx.png>_______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
>
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 1 Jun 2009 08:09:59 -0700
> From: David Arnold <dwarnold45 at suddenlink.net>
> To: Graphics with PSTricks <pstricks at tug.org>
> Subject: Re: [pstricks] Every Other Tick Again
> Message-ID: <641B082F-44F3-4453-92E7-A3F8536F7705 at suddenlink.net>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
> All,
>
> When I run latex->dvips->ps2pdf, I get the correct picture. It has
> something to do with Texshop. I'll ask on the MacTex list.
>
> Thanks.
>
> On Jun 1, 2009, at 8:02 AM, David Arnold wrote:
>
> Herbert,
>
> OK. I did a \listfiles and get this output:
>
>  *File List*
>  minimal.cls    2001/05/25 Standard LaTeX minimal class
> pstricks-add.sty    2009/03/17 v. 0.13 package wrapper for pstricks-
> add.tex (hv
> )
> pstricks.sty    2008/11/26 v0.40 LaTeX wrapper for `PSTricks' (RN,HV)
> pstricks.tex    2009/01/25 v1.27 `PSTricks' (tvz,hv)
>   xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)
>    color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
>    dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
> pstricks-add.tex    2009/04/29 v3.31 `PSTricks-add' (hv)
> pst-xkey.tex    2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
>  xkeyval.sty    2008/08/13 v2.6a package option processing (HA)
>  xkeyval.tex    2008/08/13 v2.6a key=value parser (HA)
>  ***********
>
> Am I out of date?
>
> I am using a Mac with mactex 2008 texlive distribution.
>
> D.
>
> On May 31, 2009, at 10:57 PM, Herbert Voss wrote:
>
> David Arnold schrieb:
>> All, Sometime back Herbert shared this example with me:
>>
>> \documentclass{minimal}
>> \usepackage{pstricks-add}
>> \begin{document}
>>
>> With pstricks-add:
>>
>> \begin{pspicture}(-1,-1)(6,6)
>> \psaxes[showOriginTick=false,showorigin=false,Dx=2,Dy=2,subticks=2]
>> (6,6)
>> \end{pspicture}
>>
>> \end{document}
>>
>> I think the intent was to have ticks every one unit but label only the
>> even ticks. However, the attached shows what I get:
>>
>>
>>
>> Am I in error thinking that the above code would do as I expected?
>> Or is
>> there a bug? Or an outdated pstricks-add?
>
> I get the correct aoutput with ticks on every number ...
>
>
> Herbert<xx.png>_______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
>
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
>
>
>
> ------------------------------
>
> Message: 4
> Date: Mon, 1 Jun 2009 08:26:02 -0700
> From: David Arnold <dwarnold45 at suddenlink.net>
> To: Graphics with PSTricks <pstricks at tug.org>
> Subject: Re: [pstricks] English Rule
> Message-ID: <8775A1C4-0BE4-4817-8847-992EB459907E at suddenlink.net>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
> 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
>
>
>
> ------------------------------
>
> Message: 5
> Date: Mon, 01 Jun 2009 18:03:35 +0200
> From: Herbert Voss <Herbert.Voss at FU-Berlin.DE>
> To: Graphics with PSTricks <pstricks at tug.org>
> Subject: Re: [pstricks] English Rule
> Message-ID: <4A23FBD7.60405 at FU-Berlin.DE>
> Content-Type: text/plain; charset=ISO-8859-1
>
> David Arnold schrieb:
>
>> 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):
>>
>>
>>
>> Can someone show me how to the same thing in PSTricks?
>
> with ordinary LaTeX
>
> \documentclass{article}
>
> \def\ERule{\begin{center}
>  \makebox[0pt]{\rule[1pt]{0.5\linewidth}{1pt}}%
>  \makebox[0pt]{\rule{\linewidth}{1pt}}%
>  \makebox[0pt]{\rule[-1pt]{0.3\linewidth}{1pt}}%
>  \end{center}}
>
> \begin{document}
>
> foo
> \ERule
> bar
>
> \end{document}
>
> Herbert
>
>
> ------------------------------
>
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
>
>
> End of PSTricks Digest, Vol 77, Issue 2
> ***************************************
> 



More information about the PSTricks mailing list