[XeTeX] crop.sty

Jonathan Kew jonathan_kew at sil.org
Mon Feb 13 00:41:10 CET 2006


On 12 Feb 2006, at 7:52 pm, Tilman Hannemann wrote:

> Hello,
>
> I use crop.sty in combination with typearea and geometry in order  
> to produce a preview of a booksheet, which works quite fine with  
> pdflatex. However, a first try with XeLaTeX messes up at the second  
> page; the first page is, as it should be, in a4-size, the second  
> takes up the value given by typearea. Would be glad if somebody  
> could help, I have added a short example.

 From the mailing list archive (I remember this coming up  
previously). Hope this helps.

JK

Begin forwarded message:
> From: Jonathan Kew <jonathan_kew at sil.org>
> Date: 21 October 2005 2:44:04 pm BDT
> To: Unicode-based TeX for Mac OS X <xetex at tug.org>
> Subject: Re: [XeTeX] Problems with crop package?
> Reply-To: Unicode-based TeX for Mac OS X <xetex at tug.org>
>
> 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/20060212/61b49af8/crop.obj
-------------- next part --------------
>




More information about the XeTeX mailing list