Changes

Jump to navigation Jump to search
m
General improvery
</tr>
</table>
 
== Description ==
<pre>Clip methodSpecify the default clipping settings. There are three methods:
A) Tiles, where* <code>nx</code>, <code>ny: tiles </code> specify to cut the contents to into <code>nx horizntal </code> horizontal (<code>ny </code> vertical) pieces of equal sized piecessize, and* <code>x</code>, <code>y : </code> choose the piece at x (, y) piece.
B) size/offset, where* <code>width</code>, <code>height: </code> specify the horizontal (vertical) size of the clipping window, and* <code>hoffset</code>, v offset<code>voffset</code>: window shift
C) metapost path
* <code>mp</code>:
</pre>
 
== Example ==
To clip, from page 3 of a PDF, a piece of 60x25, 25 mm from the left edge of the paper and 18+25 mm from the top (assuming A4 paper):
<texcode>
\starttext
\startTEXpage
\clip
[width=60mm, height=25mm, hoffset=25mm, voffset=\dimexpr 297mm-18mm-25mm\relax] {\externalfigure[file.pdf][page=3]}%\stopTEXpage\stoptext
</texcode>
 
== See also ==
* {{cmd|clip}}
== Help from ConTeXt-Mailinglist/Forum ==

Navigation menu