* 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}
\...@ship@end
{\let\protect\noexpand
- \voffset=-\ht...@box
- \hoffset=\z@
+ \ifx\XeTeXversion\undefined
+ \voffset=-\ht...@box
+ \hoffset=\z@
+ \else
+ \voffset=-1in
+ \advance\voffset by \pdfvorigin
+ \advance\voffset by -\ht...@box
+ \hoffset=-1in
+ \advance\hoffset by \pdfhorigin
+ \fi
\...@page=\pr@snippet
\...@shipout
\i...@fixbb\hbox{%
--8<---------------cut here---------------end--------------->8---
And this seems to be required as well, because it was added to the
preamble of the sample file:
\ifx\pdfvorigin\undefined
\newdimen\pdfvorigin
\newdimen\pdfhorigin
\newcount\pdfoutput \pdfoutput=1
\fi
> 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.
--
Ralf
_______________________________________________
bug-auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-auctex