diff options
Diffstat (limited to 'tex/context/base/meta-clp.tex')
-rw-r--r-- | tex/context/base/meta-clp.tex | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/tex/context/base/meta-clp.tex b/tex/context/base/meta-clp.tex index 8b841e876..a160e7661 100644 --- a/tex/context/base/meta-clp.tex +++ b/tex/context/base/meta-clp.tex @@ -1,31 +1,31 @@ %D \module %D [ file=meta-clp, %D version=2000.07.06, -%D title=\METAPOST\ Graphics, -%D subtitle=Clipping, +%D title=\METAPOST\ Graphics, +%D subtitle=Clipping, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA / Hans Hagen \& Ton Otten}] %C %C This module is part of the \CONTEXT\ macro||package and is -%C therefore copyrighted by \PRAGMA. See mreadme.pdf for -%C details. +%C therefore copyrighted by \PRAGMA. See mreadme.pdf for +%C details. -%D In this library, we define a bunch of clipping paths that -%D can be fed to \type {\clip}. +%D In this library, we define a bunch of clipping paths that +%D can be fed to \type {\clip}. \startMPclip{ellipse} - clip currentpicture to unitcircle + clip currentpicture to unitcircle xscaled \width yscaled \height ; \stopMPclip \startMPclip{negellipse} - clip currentpicture to (unitcircle peepholed unitsquare) + clip currentpicture to (unitcircle peepholed unitsquare) xscaled \width yscaled \height ; \stopMPclip \startMPclip{urellipse} - clip currentpicture to urcircle scaled 2 + clip currentpicture to urcircle scaled 2 xscaled \width yscaled \height ; \stopMPclip @@ -65,17 +65,17 @@ \stopMPclip \startMPclip{diamond} - clip currentpicture to unitdiamond + clip currentpicture to unitdiamond xscaled \width yscaled \height ; \stopMPclip \startMPclip{negdiamond} - clip currentpicture to (unitdiamond peepholed unitsquare) + clip currentpicture to (unitdiamond peepholed unitsquare) xscaled \width yscaled \height ; \stopMPclip \startMPclip{urtriangle} - clip currentpicture to urtriangle scaled 2 + clip currentpicture to urtriangle scaled 2 xscaled \width yscaled \height ; \stopMPclip @@ -94,43 +94,43 @@ xscaled \width yscaled \height ; \stopMPclip -% More efficient: +% More efficient: % % \def\dosimpleMPclip#1 % {clip currentpicture to (#1) xscaled \width yscaled \height ;} -% +% % \def\simpleMPclip#1#2% % {\startMPclip{#1}\dosimpleMPclip{#2}\stopMPclip} -% +% % \simpleMPclip {ellipse} {unitcircle} -% \simpleMPclip {diamond} {unitdiamond} -% +% \simpleMPclip {diamond} {unitdiamond} +% % \simpleMPclip {negellipse} {unitcircle peepholed unitsquare} % \simpleMPclip {negdiamond} {unitdiamond peepholed unitsquare} -% +% % \simpleMPclip {urellipse} {urcircle scaled 2 shifted (0,0)} % \simpleMPclip {ulellipse} {ulcircle scaled 2 shifted (1,0)} % \simpleMPclip {llellipse} {llcircle scaled 2 shifted (1,1)} % \simpleMPclip {lrellipse} {lrcircle scaled 2 shifted (0,1)} -% +% % \simpleMPclip {tellipse} {tcircle shifted (.5,0) yscaled 2} % \simpleMPclip {bellipse} {bcircle shifted (.5,.5) yscaled 2} % \simpleMPclip {lellipse} {lcircle shifted (.5,.5) xscaled 2} % \simpleMPclip {rellipse} {rcircle shifted (0,.5) xscaled 2} -% +% % \simpleMPclip {urtriangle} {urtriangle scaled 2 shifted (0,0)} % \simpleMPclip {ultriangle} {ultriangle scaled 2 shifted (1,0)} % \simpleMPclip {lltriangle} {lltriangle scaled 2 shifted (1,1)} % \simpleMPclip {lrtriangle} {lrtriangle scaled 2 shifted (0,1)} -%D \in {Figure} [fig:clipping paths] shows which paths are -%D predefined. When applied to a whole picture, their usage -%D is: -%D +%D \in {Figure} [fig:clipping paths] shows which paths are +%D predefined. When applied to a whole picture, their usage +%D is: +%D %D \starttypen %D \clip[nx=1,ny=1,mp=ellipse]{some clippable content} %D \stoptypen -%D +%D %D \startbuffer %D \setupclipping [nx=1,ny=1,x=1,y=1] %D \setupblackrules[width=2cm,height=1cm] @@ -155,10 +155,10 @@ %D {\clip[mp=negdiamond]{\blackrule}} {negdiamond} %D \stopcombinatie % \stopcombination %D \stopbuffer -%D -%D \plaatsfiguur % \placefigure +%D +%D \plaatsfiguur % \placefigure %D [here][fig:clipping paths] %D {The predefined clipping paths.} %D {\haalbuffer} % {\getbuffer} -\endinput +\endinput
\ No newline at end of file |