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:
- Is there any workaround I should be aware of to do the clipping automatically during the TeX run? E.g. by replacing
\includegraphicsby something else (TikZ?) - Does anyone know if someone is working on clipping from inside XeTeX? Maybe there is a beta I could try?
xetex.defhas some restrictions. The maintainers (Ross Moore and Jonathan Kew) seems not very familar with\specials ofxdvipdfmx. I'm quite sure thatxdvipdfmxcan support clipping, sincedvipdfmx(by Jin-Hwan Cho) supports clipping. – Leo Liu Aug 05 '11 at 10:35pgf's system layer for XeTeX also has some restrictions. Pity. – Leo Liu Aug 05 '11 at 11:12\begin{document} \begin{figure} \includegraphics[trim={0cm 0cm 0cm 5cm}, clip, width=\textwidth]{example-image} \end{figure} \end{document}` with Xe- and with PDFLaTeX. I am getting different results.
– LaRiFaRi Aug 06 '15 at 09:17