[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-AUCTeX] Request to add support for xetex in preview.sty

From: Ralf Angeli
Subject: Re: [Bug-AUCTeX] Request to add support for xetex in preview.sty
Date: Sat, 17 Jan 2009 18:16:06 +0100

* R. Chandrasekhar (2009-01-16) writes:

> Jonathan Kew posted a hack that allows the preview package to be used
> with the exact syntax as with pdflatex. It is available here:
> http://tug.org/pipermail/xetex/attachments/20080228/425c00a5/attachment-000
> 1.obj

Here it is as a patch to preview.dtx, so that it is not so
time-consuming for the maintainers to get the respective information:

--8<---------------cut here---------------start------------->8---
--- preview.dtx.~1.124.~        2008-02-03 15:53:31.000000000 +0100
+++ preview.dtx 2009-01-17 17:46:36.000000000 +0100
@@ -743,8 +743,16 @@
 %    \begin{macrocode}
-   address@hidden
-   \hoffset=\z@
+   \ifx\XeTeXversion\undefined
+      address@hidden
+      \hoffset=\z@
+   \else
+      \voffset=-1in
+      \advance\voffset by \pdfvorigin
+      \advance\voffset by address@hidden
+      \hoffset=-1in
+      \advance\hoffset by \pdfhorigin
+   \fi
--8<---------------cut here---------------end--------------->8---

And this seems to be required as well, because it was added to the
preamble of the sample file:

  \newcount\pdfoutput \pdfoutput=1

> Jonathan Kew, the author of XeTeX replied so at:
> https://sourceforge.net/tracker2/?func=detail&aid=1977445&group_id=194926&atid=951388
> ------ Quote -----
> "Please submit a request to the preview.sty maintainer, and ask for this
> to be reviewed and incorporated as an update to the standard preview
> package.

In the thread on the XeTeX mailing list he also wrote this:

,----[ http://mid.gmane.org/262A3A92-7857-49FA-8DB6-216F138EF0E1%40sil.org ]
| 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!

Perhaps David has an idea what a proper solution might look like.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]