[XeTeX] Preview package with XeLaTeX

Jonathan Kew jonathan_kew at sil.org
Thu Feb 28 01:24:59 CET 2008


On 27 Feb 2008, at 11:49 pm, Jonathan Kew wrote:

> As far as I can see at a glance, the only driver options preview
> recognizes are dvips and pdftex. With the dvips option, it writes
> literal PostScript code that xdvipdfmx won't handle; and with pdftex,
> it uses pdftex-specific commands (in particular \pdfhorigin and
> \pdfvorigin) which will give errors in xetex.
>
> I suggest asking the author of preview.sty to consider supporting
> xetex (or dvipdfmx) as an alternative driver.

Attached is a version of your file that pretends to be running with  
pdftex, as far as preview.sty is concerned, and overrides the output  
macro so as to place the output properly with xetex+xdvipdfmx. (It  
also works with pdflatex.)

The code here is a quick-and-dirty hack, which seems to work for this  
simple test but might have bad interactions with other packages. It's  
really just a proof of concept; a proper solution certainly shouldn't  
pretend to be pdftex in quite such a crude way!

JK

-------------- next part --------------
A non-text attachment was scrubbed...
Name: web.tex
Type: application/octet-stream
Size: 1870 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20080228/425c00a5/attachment-0001.obj 


More information about the XeTeX mailing list