Difference between revisions of "Command/setupclipping"

From Wiki
Jump to navigation Jump to search
(Create reference page)
 
m (cleanup)
Line 1: Line 1:
<!-- please remove this and the following line if you have checked this page -->
 
{{Reference_Cleanup}}
 
 
{{Reference
 
{{Reference
 
|name=setupclipping
 
|name=setupclipping
Line 64: Line 62:
 
C) metapost path
 
C) metapost path
 
mp:
 
mp:
</pre>
 
== comment ==
 
<pre>
 
See \clip for a simple example.
 
 
</pre>
 
</pre>
 
  
  
 
== Example ==
 
== Example ==
  
<pre class="example">
+
<texcode>
 
\starttext
 
\starttext
 
\startTEXpage
 
\startTEXpage
Line 83: Line 76:
 
\stopTEXpage
 
\stopTEXpage
 
\stoptext
 
\stoptext
 
+
</texcode>
</pre>
 
  
  
 
== See also ==
 
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
+
[[cmd:clip|\clip]]
  
 
[[Category:Reference/en|setupclipping]]
 
[[Category:Reference/en|setupclipping]]

Revision as of 17:18, 11 April 2010

\setupclipping

Syntax

\setupclipping[...,...=...,...]
nx number
ny number
x number
y number
width dimension
height dimension
hoffset dimension
voffset dimension
mp name


Description

Clip method:

A) Tiles
nx, ny: tiles contents to nx horizntal (ny vertical) equal sized pieces
x, y  : choose x (y) piece

B) size/offset
width, height: horizontal (vertical) size of clipping window
hoffset, v offset: window shift

C) metapost path
mp:


Example

\starttext
\startTEXpage
\clip
  [width=60mm,height=25mm,hoffset=25mm,
   voffset=\dimexpr 297mm-18mm-25mm\relax]
  {\externalfigure[file.pdf][page=3]}%
\stopTEXpage
\stoptext


See also

\clip