Re: [NTG-context] Clipping again

2006-06-27 Thread Mojca Miklavec
On 6/27/06, David Arnold wrote: TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5) ConTeXt ver: 2006.03.20 10:19 fmt: 2006.3.21 I hope I get to see the final file. Nice work. You can see it here, but the only changes to your graphics

Re: [NTG-context] Clipping again

2006-06-27 Thread Hans Hagen
Mojca Miklavec wrote: On 6/27/06, David Arnold wrote: TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5) ConTeXt ver: 2006.03.20 10:19 fmt: 2006.3.21 I hope I get to see the final file. Nice work. You can see it here, but

Re: [NTG-context] Clipping again

2006-06-26 Thread Mojca Miklavec
On 6/25/06, David Arnold wrote: Hi, I confess I got some earlier advice on this issue, but I've never been able to apply it to find a resolution. In the buffer that follows, I define a clipping box: /.../ Unfortunately, even though this works, mathematicians really want arrows at each end of

Re: [NTG-context] Clipping again

2006-06-26 Thread Hans Hagen
Mojca Miklavec wrote: On 6/25/06, David Arnold wrote: Hi, I confess I got some earlier advice on this issue, but I've never been able to apply it to find a resolution. In the buffer that follows, I define a clipping box: /.../ Unfortunately, even though this works, mathematicians really

Re: [NTG-context] Clipping again

2006-06-26 Thread David Arnold
Mojca, Doesn't compile at my end: This is MetaPost, Version 0.901 (Web2C 7.5.5) (/usr/local/teTeX/share/texmf.local/web2c/natural.tcx) (dblarrow-mpgraph.mp [1] ! Redundant equation. to be read again ; l.272 10u=w; ? On Jun 26, 2006, at 2:39 AM, Mojca Miklavec wrote: On

Re: [NTG-context] Clipping again

2006-06-26 Thread Mojca Miklavec
On 6/26/06, David Arnold wrote: Mojca, Doesn't compile at my end: This is MetaPost, Version 0.901 (Web2C 7.5.5) (/usr/local/teTeX/share/texmf.local/web2c/natural.tcx) (dblarrow-mpgraph.mp [1] ! Redundant equation. to be read again ; l.272 10u=w; Do you use some

Re: [NTG-context] Clipping again

2006-06-26 Thread Mojca Miklavec
On 6/27/06, Hans Hagen wrote: Mojca Miklavec wrote: To Hans: thanks for the hint! (Slowly starting to believe that the code might indeed reach 4 lines ;) another one: vardef mytransform(expr pathorpicture) = pathorpicture if reflect=2: reflectedabout((0,0),(1,1))

Re: [NTG-context] Clipping again

2006-06-26 Thread David Arnold
I just ran: texexec dblarrow.tex tmp $ texexec dblarrow.tex TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 fixing engine variable : pdfetex executable : pdfetex format : cont-en inputfile : dblarrow output : standard

Re: [NTG-context] Clipping again

2006-06-26 Thread David Arnold
I hope I get to see the final file. Nice work. On Jun 26, 2006, at 4:04 PM, Hans Hagen wrote: Mojca Miklavec wrote: On 6/27/06, Hans Hagen wrote: Mojca Miklavec wrote: To Hans: thanks for the hint! (Slowly starting to believe that the code might indeed reach 4 lines ;) another one:

[NTG-context] Clipping again

2006-06-25 Thread David Arnold
Hi, I confess I got some earlier advice on this issue, but I've never been able to apply it to find a resolution. In the buffer that follows, I define a clipping box: % clipping path path cpath; cpath:=(-5,-5)--(5,-5)--(5,5)--(-5,5)--cycle; cpath:=cpath scaled 1u; A function is created and

Re: [NTG-context] Clipping again

2006-06-25 Thread Mojca Miklavec
On 6/25/06, David Arnold wrote: Unfortunately, even though this works, mathematicians really want arrows at each end of the graph. Easy enough to do with drawdblarrow P withcolor blue, but the arrows then get clipped. What I really need is to adapt the code below so that my function is clipped

Re: [NTG-context] Clipping again

2006-06-25 Thread David Arnold
Mojca, Good question of course. However, I am using this for intermediate algebra students so the graphs will be lines, absolute value, quadratics, polynomials, rational functions, radical functions, exponential and logarithmic functions. In each case, I would adjust the window to see all

Re: [NTG-context] Clipping again

2006-06-25 Thread Mojca Miklavec
On 6/25/06, David Arnold wrote: That is, I would choose a boundary that would present arrow heads at each end of the curve. In the case of rational functions, I would clip each branch separately. I hope this answers the question. So that necessary means an arrowhead each time when a function

Re: [NTG-context] Clipping again

2006-06-25 Thread Hans Hagen
David Arnold wrote: Hi, I confess I got some earlier advice on this issue, but I've never been able to apply it to find a resolution. In the buffer that follows, I define a clipping box: % clipping path path cpath; cpath:=(-5,-5)--(5,-5)--(5,5)--(-5,5)--cycle; cpath:=cpath scaled 1u;

Re: [NTG-context] Clipping again

2006-06-25 Thread David Arnold
Not necessary. Let me add comments to my code in places where I need help. My comments are marked with [DA 6/25]. \startbuffer numeric w,h; w=4cm;h=4cm; % inititialize numerator and denominator of the slope of f numeric a; a=1.5; % initialize choice of function numeric choice; choice=2;