[XeTeX] Problems with crop package?
Jonathan Kew
jonathan_kew at sil.org
Fri Oct 21 15:44:04 CEST 2005
I've had a quick look at the crop.sty package, as there was a report
that it didn't work with XeLaTeX.
Turns out that it will *almost* work if you tell it to use the dvips
driver, as this sets the media size using a papersize=... \special,
and XeTeX now supports this.
However, it doesn't *quite* work because crop.sty interferes with
LaTeX's \AtBeginDvi feature, which is used to get the \special into
the output. The result is that the media size doesn't get set until
the second page, and you get a warning message from xdv2pdf.
The right solution would be a minor update to crop.sty, such that it
would recognize xetex as a back-end (currently, it doesn't know what
to do with it) and use the \special{papersize=...} mechanism, and fix
the problem with \AtBeginDvi. For now, rather than trying to modify
the .sty file itself, here is a crop.cfg file that achieves the same
effect. It patches a couple of crop.sty macros in order to restore
proper \AtBeginDvi functionality, and selects the dvips driver.
It looks like this is sufficient for basic crop-mark functionality;
various more advanced features that depend on interaction with color
and graphics (like the "mirror" and "invert" options) don't seem to
work fully. I don't have time to investigate this further for now.
To try this, put crop.cfg into ~/Library/texmf/tex/xelatex or your
equivalent location.
- JK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crop.cfg
Type: application/octet-stream
Size: 677 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20051021/7e29952b/crop.obj
-------------- next part --------------
More information about the XeTeX
mailing list