[XeTeX] Updating XeTeX (plain) for PS Tricks
caapv 208
caapv208 at yahoo.co.jp
Mon Sep 10 02:52:21 CEST 2007
--- I wrote:
> > And this \rotateleft{should be rotated left.}\par
> > TeX allows for it to be but in fact it isn't.\par
>
> OK, you have find a bug in the current version of
> xdvipdfmx, namely it doesn't recognize Rot
> correctly.
Here is a patch:
Index: tex/generic/xetex-pstricks/xetex-pstricks.con
===================================================================
--- tex/generic/xetex-pstricks/xetex-pstricks.con (
リビジョン 521)
+++ tex/generic/xetex-pstricks/xetex-pstricks.con (
作業コピー)
@@ -63,6 +63,22 @@
\special{x: escale}%
\ifdim\pst at dima>\z@\kern\pst at dima\fi}}
\let\ps@@scalebox\@@scalebox
+\def\ps at rotateleft#1{%
+\leavevmode\hbox{\hskip\ht#1\hskip\dp#1\vbox{\vskip\wd#1%
+\pst at Verb{90 \tx at RotBegin}
+\vbox to \z@{\vss\hbox to \z@{\box#1\hss}\vskip\z@}%
+\pst at Verb{\tx at RotEnd}}}}
+\def\ps at rotateright#1{%
+ \leavevmode\hbox{%
+ \hskip\ht#1\hskip\dp#1\vbox{\vskip\wd#1%
+ \pst at Verb{-90 \tx at RotBegin}
+ \vbox to \z@{\hbox to \z@{\hss\box#1}\vss}%
+ \pst at Verb{\tx at RotEnd}}}}
+\def\ps at rotatedown#1{%
+\hbox{\hskip\wd#1\vbox{\vskip\ht#1\vskip\dp#1%
+\pst at Verb{180 \tx at RotBegin}%
+\vbox to \z@{\hbox to \z@{\box#1\hss}\vss}%
+\pst at Verb{\tx at RotEnd}}}}
\def\begin at psclip{\special{x: gsave}}
\def\end at psclip{\special{x: grestore}}
\def\@newcolor#1#2#3{%
Regards,
SMiyata
--------------------------------------
Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar
http://pr.mail.yahoo.co.jp/toolbar/
More information about the XeTeX
mailing list