# Clipping support in XeTeX

In pdflatex I'm used to clip graphics using something like this:

\includegraphics[trim=14mm 0mm 14mm 0mm,clip,width=1.2cm]{image.jpg}

When I attempt this in XeLaTeX, no clipping occurs and I get a warning:

Package xetex.def Warning: No clipping support in XeTeX yet

It is obvious, that I could clip the image with a separate tool outside TeX, but for several reasons I would like to do this automatically from inside TeX (e.g. when migrating large old documents to XeTeX without messing around with the files)

Two questions:

1. Is there any workaround I should be aware of to do the clipping automatically during the TeX run? E.g. by replacing \includegraphics by something else (TikZ?)
2. Does anyone know if someone is working on clipping from inside XeTeX? Maybe there is a beta I could try?
-

The graphics/x output driver for XeLaTeX doesn't include clipping support yet. However, it is possible to clip using PGF/TikZ which brings his own driver (i.e. low level code) to do clipping. I have brought this issue up on comp.text.tex: Clipping support with XeLaTeX?. Also in the meantime Joseph Wright and I produced a clipping driver for XeTeX: Patch to add clipping support to XeTeX.

In the meantime the simplest way to get clipping is to use my adjustbox package which uses its own driver internally, including for XeLaTeX.

% ...