it, and, when
trying to compile the following example PGF code
\starttikzpicture[scale=3]
\clip (-2,-0.2) rectangle (2,0.8);
\draw[step=.5cm,gray,very thin] (-1.4,-1.4) grid (1.4,1.4);
\filldraw[fill=green!20,draw=green!50!black] (0,0) -- (3mm,0mm) arc
(0:30:3mm) -- cycle;
\draw
}
\Character{text}
\character{text}
\Characters{text}
\characters{text}
\chem{text}{text}{text}
\clip[settings]{text}
\clonefield[name][names][name][names]
\color[text{text}
\column
# \commalistelement
\comment[name][settings]{text}
\comparecolorgroup[name]
\comparepalet[name]
\completecombinedlist[name
]{\flushnextbox}}\hss}%
\fi
\setbox\nextbox\hbox{\clip[\c!width=\paperwidth,\c!height=\paperheight]{\flushnextbox}}%
\startTEXpage
\flushnextbox
\stopTEXpage
\egroup}
\hbox}
\protect
\starttext
\fullpagebox{\externalfigure[image
\setbox\nextbox\hbox\!!to\paperwidth{\hss\expanded{\scale[\c!height=\paperheight]{\flushnextbox}}\hss}%
\fi
\setbox\nextbox\hbox{\clip[\c!width=\paperwidth,\c!height=\paperheight]{\flushnextbox}}%
\startTEXpage
\flushnextbox
\stopTEXpage
\egroup}
\hbox
\setbox\nextbox\vbox\!!to\paperheight{\vss\expanded{\scale[\c!width=\paperwidth]{\flushnextbox}}\vss}%
\else
\setbox\nextbox\hbox\!!to\paperwidth{\hss\expanded{\scale[\c!height=\paperheight]{\flushnextbox}}\hss}%
\fi
\setbox\nextbox\hbox{\clip[\c!width=\paperwidth,\c!height
\nextbox\vbox{\dorecurse{\count2}{\copy\nextbox\endgraf}}%
\fi
\fi
\ifdim\nextboxwd#2\relax
\setbox\nextbox\hbox to #2{\hss\flushnextbox\hss}%
\setbox\scratchbox\hbox{\expanded{\clip[\c!width=#2,\c!height=\the\nextboxht]{\box\scratchbox
, but the MetaPost newbie I am,
I am unable to figure out the error:
mpost seminar.mp
This is MetaPost, Version 0.993 (Web2C 7.5.6)
(seminar.mp (/usr/share/texmf-texlive/metapost/base/TEX.mp)
(/usr/share/texmf-texlive/metapost/base/boxes.mp)
boundingbox.currentpicture.enlarged1cm
! Improper `clip
2007/9/7, Oliver Buerschaper [EMAIL PROTECTED]:
mpost seminar.mp
This is MetaPost, Version 0.993 (Web2C 7.5.6)
(seminar.mp (/usr/share/texmf-texlive/metapost/base/TEX.mp)
(/usr/share/texmf-texlive/metapost/base/boxes.mp)
boundingbox.currentpicture.enlarged1cm
! Improper `clip
mpost seminar.mp
This is MetaPost, Version 0.993 (Web2C 7.5.6)
(seminar.mp (/usr/share/texmf-texlive/metapost/base/TEX.mp)
(/usr/share/texmf-texlive/metapost/base/boxes.mp)
boundingbox.currentpicture.enlarged1cm
! Improper `clip'.
to be read again
;
l.26 ...o
to figure out the error:
mpost seminar.mp
This is MetaPost, Version 0.993 (Web2C 7.5.6)
(seminar.mp (/usr/share/texmf-texlive/metapost/base/TEX.mp)
(/usr/share/texmf-texlive/metapost/base/boxes.mp)
boundingbox.currentpicture.enlarged1cm
! Improper `clip'.
to be read again
;
l.26
Peter Rolf wrote:
Oliver Buerschaper schrieb:
Dear folks,
can anyone reproduce this? (Live ConTeXt on the garden seems to run
into this \faststartcolor thing ... with pdfTeX.)
it may help to increase
\def\objectoffset{1cm}
(by default reused objects clip and this creates a virtual bbox
In GhostScript: Options àEPS Clip
File à Convert à pdfwrite, Variable Page
File à Convert à pdfwrite, Fixed Page Size
File à Convert à pdfwrite, Shrink to fit Page Size
I do get the picture now, but it is inbedded
Patrick Gundlach schrieb:
Is there a way to add the test pictures (cont-img.zip) to 'live context'?
They are already installed, but not in a local path. I have changed
'live context' so now the sample figures are in the search path.
Patrick
Thanks Patrick! This makes life easier :)
Hans Hagen schrieb:
Peter Rolf wrote:
Hi,
it seems, that clipping with a MetaPost path is broken (at least on my
machine). I couldn't test it on Contextgarden, as the standard example
pictures are not installed (or the !!path is not searched).
Anyhow, if someone can test this please.
), ConTeXt beta from
03.07.2007, pdftex 1.40.4 and mpost 1.0.
Thanks in advance, Peter
@Patrick:
Is there a way to add the test pictures (cont-img.zip) to 'live context'?
\setupcolors[state=start]
\setuppagenumber[state=stop]
\startMPclip{ClipTest}
clip currentpicture to
unitcircle scaled
Is there a way to add the test pictures (cont-img.zip) to 'live context'?
They are already installed, but not in a local path. I have changed
'live context' so now the sample figures are in the search path.
Patrick
Peter Rolf wrote:
Hi,
it seems, that clipping with a MetaPost path is broken (at least on my
machine). I couldn't test it on Contextgarden, as the standard example
pictures are not installed (or the !!path is not searched).
Anyhow, if someone can test this please.
has to do with the
not like mirror-clip-mirror but I could not find how to clip
from the left rather than the right.
I guess now is the time to update the myway on math arrows :)
Aditya
math-ext.tex
Description: Binary data
___
If your
\definemathfancyarrow
{\dotripleargument\dodefinemathfancyarrow}
\def\dodefinemathfancyarrow[#1][#2][#3]% arrow short long
{\setvalue{#1}{\dohandlemathfancyarrow[#2][#3]}}
\def\dohandlemathfancyarrow[#1][#2]%
{\mathpalette{\dodohandlemathfancyarrow{#1}{#2}}}
%TODO: The clip operation should
|framedtext) Author title
This example assumes that :
- the first label is centered on x=.5\paperwidth y=.75\paperwidth
- the second is centered on x=.5\paperwidth y=.25\paperheight
You can even put a background image if you want, using overlay and clip...
Renaud
\setuppapersize[A4][A4
This example assumes that :
- the first label is centered on x=.5\paperwidth y=.75\paperwidth
- the second is centered on x=.5\paperwidth y=.25\paperheight
You can even put a background image if you want, using overlay and clip...
Renaud
(...)
Thanks! That's exactly what I need
}}
\setlayer[PageLayer][x=.65\paperwidth,y=.70\paperheight,location=c]{\useMPgraphic{CDShape}}
\stoptext
You can draw, clip, write whatever you want and where you want... The
circular shape are just to demonstrate positionning and can help to check...
You could use Metafun to do some advanced text
)
- number of label per page and position of each label's center
relatively to a corner of the page...
(...)
You can draw, clip, write whatever you want and where you want... The
circular shape are just to demonstrate positionning and can help to check...
You could use Metafun to do some advanced
andrea valle wrote:
Example:
\definelayer[layer2a][width=.15\paperwidth]
\setlayer [layer2a]
[x=.15\paperwidth, y=.5\paperheight]
{\externalfigure[layTest][width=.75\paperwidth]}
extend your example with
\clip[width=.15\paperwidth,height
{uvsqgreen});
draw (-.5w+.036h,-.342h)--(xpart pts[0]-.036h, ypart pts[0]);
draw (.5w-.036h,-.342h)--(xpart pts[8]+.036h, ypart pts[8]);
interim linecap:=rounded;
for i=0 upto 3:
draw pts[2i]..pts[2i+1]..pts[2i+2];
endfor;
setbounds currentpicture to mainframe;
clip currentpicture to mainframe;
\stopbuffer
Peter Rolf wrote:
Just as a reminder for an unsolved problem :)
I also tested this on contextgarden, with faulty result. Same with
\clip[hoffset=64bp,voffset=64bp,width=64bp,height=64bp]{\reuseMPgraphic{cliptest}}
So it doesn't look like a rounding problem.
this clips ok here (only one
Hans Hagen wrote:
Peter Rolf wrote:
Just as a reminder for an unsolved problem :)
I also tested this on contextgarden, with faulty result. Same with
\clip[hoffset=64bp,voffset=64bp,width=64bp,height=64bp]{\reuseMPgraphic{cliptest}}
So it doesn't look like a rounding problem
Just as a reminder for an unsolved problem :)
I also tested this on contextgarden, with faulty result. Same with
\clip[hoffset=64bp,voffset=64bp,width=64bp,height=64bp]{\reuseMPgraphic{cliptest}}
So it doesn't look like a rounding problem.
Peter Rolf wrote:
Hi,
I have some png-graphics
shifted (2u,u) withcolor blue ;
fill p shifted (0,2u) withcolor green ;
fill p shifted (u,2u) withcolor blue ;
fill p shifted (2u,2u) withcolor green ;
\stopreusableMPgraphic
\starttext
\reuseMPgraphic{cliptest}
\blank
\setupclipping[nx=3,ny=3]
\clip[x=1,y=1]{\reuseMPgraphic{cliptest
and scaled:
% scale and draw graph
P:=P scaled u;
draw P withcolor blue;
The picture is clipped and saved:
% clip and save current picture
picture pic;
clip currentpicture to cpath;
pic:=currentpicture;
Then it is redrawn later.
% redraw line
draw pic;
Unfortunately, even though this works
important behavior
of the function, extrema, etc. So, for example, if I needed to draw
y=12-x^2, I would not clip this to the boundary (-10,-10)--(10,-10)--
(10,10)--(-10,10)--cycle, because that would chop off the top of the
parabola, and if I added arrows, it would look like I had two
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
;
A function is created and scaled:
% scale and draw graph
P:=P scaled u;
draw P withcolor blue;
The picture is clipped and saved:
% clip and save current picture
picture pic;
clip currentpicture to cpath;
pic:=currentpicture;
Then it is redrawn later.
% redraw line
draw pic
;
% clipping path
path cpath;
cpath:=(-5,-5)--(5,-5)--(5,5)--(-5,5)--cycle;
cpath:=cpath scaled 1u;
%[DA 6/25]Replace this code from here to next mark with new
clipping routine
% clip and save current picture
picture pic;
clip currentpicture to cpath;
pic:=currentpicture;
% erase
On Wed, 12 Apr 2006, Hans Hagen wrote:
\ruledhbox{\clip{\useMPgraphic{test}}}
of course, I've already tried \clip{\externalfigure[...][...]} but the
figure disappears completely. \clip{\useMPgraphic{test}} disappears too.
And now I see: it works for PDF output, so there is probably just
On Wed, 12 Apr 2006, Hans Hagen wrote:
\ruledhbox{\clip{\useMPgraphic{test}}}
Hello Hans,
of course, I've already tried \clip{\externalfigure[...][...]} but the
figure disappears completely. \clip{\useMPgraphic{test}} disappears too.
And now I see: it works for PDF output, so there is probably
� wrote:
On Wed, 12 Apr 2006, Hans Hagen wrote:
\ruledhbox{\clip{\useMPgraphic{test}}}
Hello Hans,
of course, I've already tried \clip{\externalfigure[...][...]} but the
figure disappears completely. \clip{\useMPgraphic{test}} disappears too.
And now I see: it works for PDF
Vit Zyka wrote:
Hans Hagen wrote:
� wrote:
Hello,
I would like to clip an external eps-figure as LaTeX does with the clip
option.
Please consider the attachment as an example for en eps with white border
and the following LaTeX and ConTeXt code:
\starttext % no clipping
Hans Hagen wrote:
Vit Zyka wrote:
Hans Hagen wrote:
� wrote:
Hello,
I would like to clip an external eps-figure as LaTeX does with the clip
option.
Please consider the attachment as an example for en eps with white border
and the following LaTeX and ConTeXt code:
\starttext
� wrote:
Hello,
I would like to clip an external eps-figure as LaTeX does with the clip
option.
Please consider the attachment as an example for en eps with white border
and the following LaTeX and ConTeXt code:
\starttext % no clipping possible here
bla bla bla bla bla bla bla bla bla
Hans Hagen wrote:
� wrote:
Hello,
I would like to clip an external eps-figure as LaTeX does with the clip
option.
Please consider the attachment as an example for en eps with white border
and the following LaTeX and ConTeXt code:
\starttext % no clipping possible here
bla bla bla bla bla bla
Hello,
I would like to clip an external eps-figure as LaTeX does with the clip
option.
Please consider the attachment as an example for en eps with white border
and the following LaTeX and ConTeXt code:
\starttext % no clipping possible here
bla bla bla bla bla bla bla bla bla bla bla bla
Peter Münster wrote:
Hello,
I would like to clip an external eps-figure as LaTeX does with the clip
option.
Please browse through core-fig.tex. Around line 2100 there is
documentation for the \clip and \setiupclipping commands.
Cheers, taco
___
ntg
On Fri, 7 Apr 2006, Taco Hoekwater wrote:
Peter Münster wrote:
Hello,
I would like to clip an external eps-figure as LaTeX does with the clip
option.
Please browse through core-fig.tex. Around line 2100 there is
documentation for the \clip and \setiupclipping commands.
Thanks! I tried
understand it properly (that you only want to draw the content
inside the square, while the function may be a circle or something
lying completely outside the region), you could also use something
like
clip currentpicture to cpath;
although you may have to change the code that draws double arrow
Mojca,
I've used clip currentpicture to cpath before, then saved the result,
draw the grid, draw the axes, then draw the saved clipped picture.
But, you're right, I can't use drawdblarrow then.
In our classes, the drawdblarrow is important, having the same
meaning as the ellipsis in 1, 3
cpath;
cpath:=(-5,-5)--(5,-5)--(5,5)--(-5,5)--cycle;
%create function path
path p; p:=(-5,f(-5));
for x=-5 step .1 until 5:
p:=p--(x,f(x));
endfor;
p:=p--(5,f(5));
%clip function path to clipping path
p:=p cutbefore cpath;
p:=reverse p;
p:=p cutbefore cpath;
\stopMPgraphic
));
endfor;
p:=p--(5,f(5));
%clip function path to clipping path
p:=p cutbefore cpath;
p:=reverse p;
p:=p cutbefore cpath;
p
enddef;
\stopMPinclusions
\starttext
\startMPpage
%define function
own
documents?
grep for placerendering
(cont-new.tex and x-res-50)
so, one needs to reserve some area and then start/stop the media clip
(embedding the file in a pdffile is fragile [differes per pdf version])
Hans
___
ntg-context mailing list
ntg
));
for x=-5 step .1 until 5:
p:=p--(x,f(x));
endfor;
p:=p--(5,f(5));
%clip function path to clipping path
p:=p cutbefore cpath;
p:=reverse p;
p:=p cutbefore cpath;
%initialize scale
numeric u; 10u=2in;
%draw the grid
for k=-5u step 1u until 5u:
draw (k,-5u)--(k,5u) withcolor
;
cpath:=(-5,-5)--(5,-5)--(5,5)--(-5,5)--cycle;
cpath:=cpath scaled 1u;
% clip and save current picture
picture pic;
clip currentpicture to cpath;
pic:=currentpicture;
% erase currentpicture
currentpicture:=nullpicture;
% draw grid
for k=-5u step 1u until 5u:
draw (-5u,k)--(5u,k) withcolor
use Context as general typesetting environment, Metafun as
vectorial, scalable, scriptable drawing engine, and lilypond as
notation generator.
The idea is to produce lily files, to render them, to include them in a
metafun drawing, where I can clip and place them opportunely, and to
render
\plusone\lastbox
\global\setbox\plusone\hbox{\strut\unhbox\plusone}%
\hbox % to #2
{\ifx\clip\undefined
\box\plusone
\else\ifdim\wd\plusone\hsize
\lower\strutdepth\hbox{\clip[\c!width=\hsize,\c!height=\lineheight]{\hbox{\raise\strutdepth\box\plusone
\setbox\scratchbox\vbox{\forgetall\veryraggedright#1}%
\setbox\scratchbox\vsplit\scratchbox to \lineheight
\vbox
{\unvbox\scratchbox
\global\setbox\plusone\lastbox
\global\setbox\plusone\hbox{\strut\unhbox\plusone}%
\hbox % to #2
{\ifx\clip\undefined
Peter Rolf wrote:
Hi all,
I've tested the latest version of \limitatefirstline and it still
doesn't work as expected. This is really a complex story (problem).
- the clip mechanism cuts off the lowest part of some special chars
(clipping graphics is easy, but I don't understand what
Peter Rolf wrote:
Hi all,
I've tested the latest version of \limitatefirstline and it still
doesn't work as expected. This is really a complex story (problem).
- the clip mechanism cuts off the lowest part of some special chars
(clipping graphics is easy, but I don't understand what happens
Hans Hagen wrote:
Peter Rolf wrote:
Hi all,
I've tested the latest version of \limitatefirstline and it still
doesn't work as expected. This is really a complex story (problem).
- the clip mechanism cuts off the lowest part of some special chars
(clipping graphics is easy, but I don't
Peter Rolf wrote:
\ifdim\wd\plusone\dimexpr\hsize-2ex\relax% tolerance for
successful breaking
\clip[\c!width=\hsize,\c!height=\struttotal]{\ruledhbox{\begstrut#1\endstrut}}%
must be #1 here
This may fail, since it #1 may have more than one line, and this whole
\veryraggedright#1}%
\setbox\scratchbox\vsplit\scratchbox to \lineheight
\vbox
{\unvbox\scratchbox
\global\setbox\plusone\lastbox
\global\setbox\plusone\hbox{\strut\unhbox\plusone}%
\hbox % to #2
{\ifx\clip\undefined
\box\plusone
\else\ifdim\wd
Hi all,
I've tested the latest version of \limitatefirstline and it still
doesn't work as expected. This is really a complex story (problem).
- the clip mechanism cuts off the lowest part of some special chars
(clipping graphics is easy, but I don't understand what happens here)
- text
to break (not possible with the non
letters, so there you either need to add \hskip0pt's or do real clipping
Hans
So it fails in any case of nonbreakable text.
How about adding a failsafe test ala
\ifdim\dimexpr\wd\plusone+\wd of sentinel\relax#2\relax
\clip[width=\wd\plusone,...]{...#1
be something to break (not possible with the non
letters, so there you either need to add \hskip0pt's or do real clipping
Hans
So it fails in any case of nonbreakable text.
How about adding a failsafe test ala
\ifdim\dimexpr\wd\plusone+\wd of sentinel\relax#2\relax
\clip[width=\wd\plusone,...]{...#1
Hans, is this a trick to get even more wiki pages?
\clip is still running wild... :)
Greetings,
Peter
% interface=en output=pdftex
% Time-stamp: Donnerstag, 08 September 2005 18:28:23; crop.tex
%
\setupcolors[state=start]
\unprotect
\def\limitatefirstline#1#2#3%
{\hbox\bgroup\strut
Peter Rolf wrote:
Hans, is this a trick to get even more wiki pages?
\clip is still running wild... :)
hm, clipping looks ok here; is ok here; what version do you use? what
sample text?
Hans
Hans Hagen wrote:
Peter Rolf wrote:
Hans, is this a trick to get even more wiki pages?
\clip is still running wild... :)
hm, clipping looks ok here; is ok here; what version do you use? what
sample text?
seems to be my fault, but I have no time at the moment to find the
cause. more
Peter Rolf wrote:
Hans, is this a trick to get even more wiki pages?
\clip is still running wild... :)
\unprotect
\def\limitatefirstline#1#2#3%
{\hbox\bgroup\strut
\setbox\scratchbox\hbox{#1}%
\ifdim\wd\scratchbox#2\relax
\setbox\scratchbox\hbox{#3}%
\hsize#2\relax
\advance
,f(x));
endfor;
% the line
F:=F scaled 1u;
% clipping path
path cpath;
cpath:=(-5,-5)--(5,-5)--(5,5)--(-5,5)--cycle;
cpath:=cpath scaled 1u;
% clip the path F
pair A, B;
F:=F cutbefore cpath;
F:=reverse F;
F:=F cutbefore cpath;
drawdblarrow F;
endfig;
end
);
%initialize a of f(x)=|x-a|
numeric a;
a=-2;
% initialize scale
numeric u; 10u=3in;
%function definition
vardef f(expr x)=
abs(x-a)
enddef;
%path
path F;
F:=(-5,f(-5));
for x=-5 step 1 until 5:
F:=F--(x,f(x));
endfor;
%scale and draw F
F:=F scaled u;
draw F withcolor blue;
%clip path
On Aug 7, 2005, at 2:56 PM, Hans Hagen wrote:
David Arnold wrote:
This works fine. However, what I need to do is somehow clip the path
P to the bounding box, but retain the resulting cutpath in a path
variable Q. That is, I need to cut off the parts of the path P that
lie outside
it to the cpath. What I
would like to do is draw the graph with the drawdblarrow command so
that the graph of the absolute value ends in arrowheads. So, I want to
clip the graph to the bounding box, save the picture, null the
picture, then somehow extract the path into the variable F in its
;
% clipping path
path cpath;
cpath:=(-5,-5)--(5,-5)--(5,5)--(-5,5)--cycle;
cpath:=cpath scaled 1u;
% clip and save current picture
picture pic;
clip currentpicture to cpath;
pic:=currentpicture;
% erase currentpicture
currentpicture:=nullpicture;
Then I do some stuff I need to do and bring back the path
:
This works fine. However, what I need to do is somehow clip the path
P to the bounding box, but retain the resulting cutpath in a path
variable Q. That is, I need to cut off the parts of the path P that
lie outside the bounding box
cpath:=(-5,-5)--(5,-5)--(5,5)--(-5,5)--cycle and store the clipped
would like to do is draw the graph with the drawdblarrow command so
that the graph of the absolute value ends in arrowheads. So, I want to
clip the graph to the bounding box, save the picture, null the picture,
then somehow extract the path into the variable F in its clipped form
Dear Hans,
it seems to me that \clip was extended by the useful params
left|right|top|bottomoffset. But they do not work:
\starttext
\clip
[leftoffset=1cm,rightoffset=1cm,topoffset=2cm,bottomoffset=.5cm]
{\externalfigure[cow]}
\stoptext
Thanks
Vit
the external document to
insert in my document? How?
I'm no expert, but here's the way I do it:
\externalfigure[filename][page=2]
Then, I adjust the clipping to -- for instance -- get rid of the page
number of the inserted `figure', as well as of its top and left margins.
\clip [ voffset=1.25in
document to
insert in my document? How?
I'm no expert, but here's the way I do it:
\externalfigure[filename][page=2]
Then, I adjust the clipping to -- for instance -- get rid of the page
number of the inserted `figure', as well as of its top and left margins.
\clip [ voffset=1.25in, % clip
((ttstop) or (tb) or (yc) or (yd));
endfor;
%Draw the paths x(t) and y(t) and clip them to bounding box
draw trajx xscaled ux yscaled uy withcolor red;
draw trajy xscaled ux yscaled uy withcolor red dashed evenly;
clip currentpicture to (q xscaled ux yscaled uy);
%Label graph x(t) and initial
ou can use it to scale to appropriate dimensions (they depends by size
of paper);search on wiki for externalfigure
Usually i make simple scripts that create my-imp.tex with correct
pagenumber (ie the pagenumber that i want to select); also i use \clip
(search on wiki) to correct some page and pdfinfo to
]}
%
% \setlayer
% [page] [right] [preset=righttop]
% {\externalfigure[page-graphic]}
%
% \startstandardmakeup
% flush a page
% \stopstandardmakeup
% to show bleeding:
\setuppapersize
[A4][A3]
\setuplayout
[location=middle]
\setupbackgrounds
[page][frame=on]
% add this in order to clip
\setuplayout
,7cm);
clip currentpicture to unitsquare xyscaled (7cm,8cm);
\stopreusableMPgraphic
\startreusableMPgraphic{layout 2}
\includeMPgraphic{layout 1}
^
is that allowed? (it works without)
it is allowed, but only when layout 1 is a usableMPgraphic
Hans
,1cm) shifted (1cm,0.5cm) withcolor 0.625red;
fill unitsquare xyscaled (5cm,1cm) shifted (1cm,6.5cm) withcolor 0.625red;
fill unitsquare xyscaled (5cm,7cm) shifted (1cm,0.5cm) withcolor 0.25white;
drawarrow (2cm,8cm)--top (2cm,7.5cm);
drawarrow (0cm,7cm)--lft(1cm,7cm);
clip currentpicture
,7cm) shifted (1cm,0.5cm) withcolor 0.25white;
drawarrow (2cm,8cm)--top (2cm,7.5cm);
drawarrow (0cm,7cm)--lft(1cm,7cm);
clip currentpicture to unitsquare xyscaled (7cm,8cm);
\stopuseMPgraphic
\startuseMPgraphic{layout 2}
\includeMPgraphic{layout 1}
clip currentpicture to unitsquare scaled 3cm
0.25white;
drawarrow (2cm,8cm)--top (2cm,7.5cm);
drawarrow (0cm,7cm)--lft(1cm,7cm);
clip currentpicture to unitsquare xyscaled (7cm,8cm);
\stopuseMPgraphic
\startuseMPgraphic{layout 2}
\includeMPgraphic{layout 1}
clip currentpicture to unitsquare scaled 3cm shifted (0,5cm);
currentpicture
0.625red;
fill unitsquare xyscaled (5cm,1cm) shifted (1cm,6.5cm) withcolor 0.625red;
draw unitsquare xyscaled (5cm,7cm) shifted (1cm,0.5cm) withcolor 0.25white;
drawarrow (2cm,8cm)--top (2cm,7.5cm);
drawarrow (0cm,7cm)--lft(1cm,7cm);
clip currentpicture to unitsquare xyscaled (7cm,8cm
xyscaled (5cm,1cm) shifted (1cm,0.5cm) withcolor
0.625red;
fill unitsquare xyscaled (5cm,1cm) shifted (1cm,6.5cm) withcolor
0.625red;
draw unitsquare xyscaled (5cm,7cm) shifted (1cm,0.5cm) withcolor
0.25white;
drawarrow (2cm,8cm)--top (2cm,7.5cm);
drawarrow (0cm,7cm)--lft(1cm,7cm);
clip
(5cm,7cm) shifted (1cm,0.5cm) withcolor
0.25white;
drawarrow (2cm,8cm)--top (2cm,7.5cm);
drawarrow (0cm,7cm)--lft(1cm,7cm);
clip currentpicture to unitsquare xyscaled (7cm,8cm);
\stopreusableMPgraphic
\startreusableMPgraphic{layout 2}
\includeMPgraphic{layout 1}
^
is that allowed
) ;
fill p withcolor yellow ;
draw origin--(ow,0) yshifted oh withcolor blue ;
clip currentpicture to boundingbox p ;
\stopuniqueMPgraphic
\defineoverlay[rowbg] [\uniqueMPgraphic{row}]
\starttext
% what I want (but in a TABLE)
\framed[background={rowbg}, align={middle,lohi}, strut=no, offset=0pt
All,
I am aware of \filterpages but I would like to be able to insert part of a
single page from a multi page pdf and I have not been able to find anything
on the list of manuals. (\clip does not seem to work with \filterpages).
Does anybody have any ideas?
TIA
--
Nigel
. One conceptual idea is to have something
like a clip-board of visited pages, which can be printed as one
document.
Ok, this Zope-based site will be an effort going into the next year. I
mention it only for background for the coming questions in the next
months.
2. I want to generate my invoice
going through metapost?
Yes. Try this example. You can see from the resulting pdf file that
the cow.pdf gets included only once.
\useexternalfigure[cow]
\starttext
\setupclipping[nx=3,ny=3]
% 1/3 of a sliced cow
\hbox{%
\clip [x=1,y=2]{\externalfigure[cow]}
\clip [x=2,y=2]{\externalfigure[cow
xyscaled(1.3,.8);
A := (origin--(3cm,2cm)) intersectionpoint subpath (0,2) of c;
B := (origin--(-5cm,1cm)) intersectionpoint subpath (2,4) of c;
draw c;
draw origin--B;
draw origin--A;
endfig;
how can i clip the part of the path c between A and B in this case??
Isn't it easier to use arctime
subpath (0,2) of c;
B := (origin--(-5cm,1cm)) intersectionpoint subpath (2,4) of c;
draw c;
draw origin--B;
draw origin--A;
endfig;
how can i clip the part of the path c between A and B in this case??
thanks for help
severin
On Sun, 21 Sep 2003 21:24:04 +0200 (MEST)
Severin Obertuefer [EMAIL
;
A := (origin--(3cm,2cm)) ;
B := (origin--(-5cm,1cm)) ;
draw B ;
draw A ;
c := fullcircle scaled 2cm xyscaled(1.3,.8) ;
clip currentpicture to c ;
draw c withpen pencircle scaled 1.4pt withcolor .7white ;
drawarrow cutbetween(c,B,A) withcolor .7green ;
drawarrow cutbetween(c,A,B) withcolor green ;
c
201 - 293 of 293 matches
Mail list logo