<HTML><BODY>
<div>Thanks for the advice on macros, Herbert. The solution you give to the lens-fill interaction is most welcome. </div>
<div> </div>
<div>Thanks.</div>
<div> </div>
<div>However(!), I believe you may have sidestepped just a little. As you can see, I am trying to magnify an element of area. This should *not* look like a rectangle in the magnifier, i.e. the region should extend all the way up to the edge of the glass. I can't see how to do this without strange artefacts appearing in the output.</div>
<div> </div>
<div>By the way, I really appreciate the time and expertise you devote to us pstricks users. As a token of that, I have recently purchased your book. For a non-German speaker like me it is a great read, but I have used the summaries and examples countless times. I recommend it to everyone I meet, which means I often get some very strange looks.</div>
<div> </div>
<div> </div>
<br>
-----Original Message-----<br>
From: pstricks-request@tug.org<br>
To: pstricks@tug.org<br>
Sent: Tue, 22 Aug 2006 11.00AM<br>
Subject: pstricks Digest, Vol 43, Issue 17<br>
<br>
<STYLE>
.AOLPlainTextBody {
margin: 0px;
font-family: Tahoma, Verdana, Arial, Sans-Serif;
font-size: 12px;
color: #000;
background-color: #fff;
}
.AOLPlainTextBody pre {
font-size: 9pt;
}
.AOLInlineAttachment {
margin: 10px;
}
.AOLAttachmentHeader {
font: 11px arial;
border: 1px solid #7DA8D4;
background: #F9F9F9;
}
.AOLAttachmentHeader .Title {
font: 11px arial;
background: #B5DDFA;
padding: 3px 3px 3px 3px;
}
.AOLAttachmentHeader .FieldLabel {
font: 11px arial;
color: #000000;
padding: 1px 10px 1px 9px;
background: #F9F9F9;
}
.AOLAttachmentHeader .FieldValue {
font: 11px arial;
color: #000000;
background: #F9F9F9;
}
.AOLAttachmentHeader a, .AOLImage a {
color: #2864B4;
text-decoration: none;
}
.AOLAttachmentHeader a:hover, .AOLImage a:hover {
color: #2864B4;
text-decoration: underline;
}
body {
background-color: white;
font-family: "Verdana";
font-size: 10pt;
border: 0px;
}
p {
margin: 0px;
padding: 0px;
}
img.managedImg {
width: 0px;
height: 0px;
}
img.placeholder {
width: 275px;
height: 206px;
background: #F4F4F4 center center no-repeat;
border: 1px solid #DADAD6 !important;
}
</STYLE>
<div class=AOLPlainTextBody id=AOLMsgPart_0_17cedba2-2e8d-40cf-b452-75c25874ab59><PRE><TT>Send pstricks mailing list submissions to
<A href="mailto:pstricks%40tug.org">pstricks@tug.org</A>
To subscribe or unsubscribe via the World Wide Web, visit
<A href="http://tug.org/mailman/listinfo/pstricks" target=_blank>http://tug.org/mailman/listinfo/pstricks</A>
or, via email, send a message with subject or body 'help' to
<A href="mailto:pstricks-request%40tug.org">pstricks-request@tug.org</A>
You can reach the person managing the list at
<A href="mailto:pstricks-owner%40tug.org">pstricks-owner@tug.org</A>
When replying, please edit your Subject line so it is more specific
than "Re: Contents of pstricks digest..."
Today's Topics:
1. Re: Strange interaction between pst-lens and pst-fill
(Herbert Voss)
2. behavior of arrows when plotting functions and scaling
(Ryan Higginbottom)
3. Re: behavior of arrows when plotting functions and scaling
(Herbert Voss)
4. Re: Solid mathematical surfaces with pst-3dplot (Paul Smith)
----------------------------------------------------------------------
Message: 1
Date: Mon, 21 Aug 2006 16:06:45 +0200
From: Herbert Voss <<A href="mailto:LaTeX%40zedat.fu-berlin.de">LaTeX@zedat.fu-berlin.de</A>>
Subject: Re: [pstricks] Strange interaction between pst-lens and
pst-fill
To: Graphics with PSTricks <<A href="mailto:pstricks%40tug.org">pstricks@tug.org</A>>
Message-ID: <<A href="mailto:44E9BDF5.30409%40zedat.fu-berlin.de">44E9BDF5.30409@zedat.fu-berlin.de</A>>
Content-Type: text/plain; charset=us-ascii; format=flowed
<A href="mailto:halbard7%40aol.com">halbard7@aol.com</A> wrote:
> Please take a look at the following code: evidence of bugs or brain
> damage? Troubled lines
> prefixed with %-> below. Using MikTeX 2.4 and dvips.
yes, that is a bit tricky here. However, I would use
a filling with lines, e.g. fillstyle=vlines; or a color.
And by the way: you shouldn't use macronames with one
letter; LaTeX uses this often for its own.
Herbert
\listfiles
\documentclass{article}
\usepackage{pstricks}
\usepackage{pst-plot}
\usepackage{pst-lens}
\usepackage{pst-fill}
\newcommand{\f}{\mathrm{f}}
\renewcommand{\d}[1]{\mathop{\mathrm{d}#1}\nolimits}
%
\psset{unit=1.75cm}
\def\incircle{\pspicture(2mm,2mm)\psdot(1mm,1mm)\endpspicture}
%
\def\PSTBox{%
\rput[lb](0,0){%
\begin{minipage}{9cm}%
% \rule{0pt}{5.25cm}%
\pscustom[fillstyle=solid,fillcolor=black!10]{%
\psline(0.5,0)(0.5,2.3)
\psecurve(0,1.8)(0.5,2.3)(2,2.7)(3,2.4)(4.5,1.6)(5,1.5)
\psline(4.5,1.6)(4.5,0)(0.5,0)}%
\psaxes[labels=none,ticks=none]{->}(0,0)(-.2,-.2)(5,3)%
\pscurve(0,1.8)(0.5,2.3)(2,2.7)(3,2.4)(4.5,1.6)(5,1.5)%
\uput[r](5,1.5){$y=\f(x)$}\psline(2,0)(2,2.7)%
\uput[d](2,0){$\d x$}\psdots(2,2.7)%
\uput[ur](2,2.7){$(x,y)$}%
\uput[d](0.5,0){$a$}\uput[d](4.5,0){$b$}%
\uput[r](5,0){$x$}\uput[l](0,3){$y$}%
% \psboxfill{\incircle}\psframe[fillstyle=boxfill](1.6,0)(2.3,1)%
\psframe[fillstyle=solid,fillcolor=blue](1.65,0)(2.35,1)% alternative
\psline(.95,0)(2.95,0)\psline(1.65,0)(1.65,1)\psline(2.35,0)(2.35,1)%
\uput[d](1.65,0){$\mathstrut x$}\uput[d](2.35,0){$\mathstrut x+\d x$}%
\end{minipage}}}
\begin{document}
\psframebox[shadow=true]{%
\begin{pspicture}(-1,-1.5)(6.2,3.5)
\PSTBox%
\PstLens[LensSize=1.5,LensRotation=75,LensMagnification=1.5](2,0.2){\PSTBox}
\end{pspicture}}
\end{document}
------------------------------
Message: 2
Date: Mon, 21 Aug 2006 12:45:51 -0700 (PDT)
From: Ryan Higginbottom <<A href="mailto:mathalot%40yahoo.com">mathalot@yahoo.com</A>>
Subject: [pstricks] behavior of arrows when plotting functions and
scaling
To: <A href="mailto:pstricks%40tug.org">pstricks@tug.org</A>
Message-ID: <<A href="mailto:20060821194551.7868.qmail%40web30801.mail.mud.yahoo.com">20060821194551.7868.qmail@web30801.mail.mud.yahoo.com</A>>
Content-Type: text/plain; charset=iso-8859-1
It seems to me that the commands \psline and \psplot have different
behaviors with respect to arrowheads, and I was wondering if there is a
way to correct the behavior of \psplot in this regard. The example I
include below is very simple, but it illustrates the problem I'm having
with something a bit more complex. I would like to use the arrows=<-o
option, but when I scale the units, the arrowheads seem to be slightly
misplaced. (Note: this doesn't seem to happen when the units are left
alone.)
When you compile the example below and magnify a bit, you will see what I
mean. The arrows on the top line are off a bit. (I am trying to write
something for a powerdot presentation, so even though the magnification
may seem insignificant here, it is clear when on the presentation.)
Thank you for your help.
Example:
--------------------
\documentclass{article}
\listfiles
\usepackage{pstricks}
\usepackage{pstricks-add}
\begin{document}
\psset{xunit=.5cm,yunit=.5cm}
\psline[arrows=<-o,linewidth=1pt](0,0)(2,0)
\psplot[arrows=<-o,linewidth=1pt]{0}{2}{1}
\end{document}
--------------------
*File List*
article.cls 2005/09/16 v1.4f Standard LaTeX document class
size10.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
pstricks.sty 2005/12/19 v0.31 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex 2006/02/06 v1.14a `PSTricks' (tvz)
xcolor.sty 2005/12/21 v2.09 LaTeX color extensions (UK)
color.cfg 2005/12/29 v1.1 MiKTeX 'color' configuration
dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pstricks-add.sty 2005/03/03 package wrapper for pstricks-add.tex (hv)
pstricks-add.tex 2006/06/17 v2.75 `PSTricks-add' (hv)
pst-xkey.tex 2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
xkeyval.sty 2005/11/25 v2.5e package option processing (HA)
xkeyval.tex 2005/11/25 v2.5e key=value parser (HA)
***********
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
<A href="http://mail.yahoo.com" target=_blank>http://mail.yahoo.com</A>
------------------------------
Message: 3
Date: Mon, 21 Aug 2006 23:08:06 +0200
From: Herbert Voss <<A href="mailto:LaTeX%40zedat.fu-berlin.de">LaTeX@zedat.fu-berlin.de</A>>
Subject: Re: [pstricks] behavior of arrows when plotting functions and
scaling
To: Graphics with PSTricks <<A href="mailto:pstricks%40tug.org">pstricks@tug.org</A>>
Message-ID: <<A href="mailto:44EA20B6.7000607%40zedat.fu-berlin.de">44EA20B6.7000607@zedat.fu-berlin.de</A>>
Content-Type: text/plain; charset=us-ascii; format=flowed
Ryan Higginbottom wrote:
> It seems to me that the commands \psline and \psplot have different
> behaviors with respect to arrowheads, and I was wondering if there is a
> way to correct the behavior of \psplot in this regard. The example I
> include below is very simple, but it illustrates the problem I'm having
> with something a bit more complex. I would like to use the arrows=<-o
> option, but when I scale the units, the arrowheads seem to be slightly
> misplaced. (Note: this doesn't seem to happen when the units are left
> alone.)
>
> When you compile the example below and magnify a bit, you will see what I
> mean. The arrows on the top line are off a bit. (I am trying to write
> something for a powerdot presentation, so even though the magnification
> may seem insignificant here, it is clear when on the presentation.)
plotpoints is set by default to 20. Choose a number of 5
and everything will be okay. Then one line segment has a length
larger than the arrow length, which is the problem here,
when having plotpoints > 10.
> \psplot[arrows=<-o,linewidth=1pt]{0}{2}{1}
\psplot[arrows=<-o,linewidth=1pt,plotpoints=5]{0}{2}{1}
Herbert
------------------------------
Message: 4
Date: Tue, 22 Aug 2006 08:24:42 +0100
From: "Paul Smith" <<A href="mailto:phhs80%40gmail.com">phhs80@gmail.com</A>>
Subject: Re: [pstricks] Solid mathematical surfaces with pst-3dplot
To: "Graphics with PSTricks" <<A href="mailto:pstricks%40tug.org">pstricks@tug.org</A>>
Message-ID:
<<A href="mailto:6ade6f6c0608220024q37e8a7efg36086cce8bffe2e8%40mail.gmail.com">6ade6f6c0608220024q37e8a7efg36086cce8bffe2e8@mail.gmail.com</A>>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
On 8/19/06, Herbert Voss <<A href="mailto:LaTeX%40zedat.fu-berlin.de">LaTeX@zedat.fu-berlin.de</A>> wrote:
> > Sometime ago, I asked here whether it was possible with PSTricks to
> > draw a graph like the one attached. At that time, pst-3dplot could
> > approximately do that. I say 'approximately' as it could not draw the
> > surface without any grid. I am now asking whether pst-3dplot has
> > meanwhile got the ability to draw solid (without any grid)
> > mathematical surfaces.
>
> have a look at <A href="http://perce.de/LaTeX/pst-IIID/" target=_blank>http://perce.de/LaTeX/pst-IIID/</A>
> It is highly experimental, but the Example.pdf
> shows some surfaces of functions.
>
> Manuel is also working on a new pst-vue3d.
> Maybe he has some more ideas.
Thanks, Herbert. I hope that in future PSTricks will offer the
possibility of drawing solid mathematical surfaces _without_ any grid.
Paul
------------------------------
_______________________________________________
pstricks mailing list
<A href="mailto:pstricks%40tug.org">pstricks@tug.org</A>
<A href="http://tug.org/mailman/listinfo/pstricks" target=_blank>http://tug.org/mailman/listinfo/pstricks</A>
End of pstricks Digest, Vol 43, Issue 17
****************************************
</TT></PRE></div>
<!-- end of AOLMsgPart_0_17cedba2-2e8d-40cf-b452-75c25874ab59 --></BODY></HTML>