summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/pstricks
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-06-24 17:31:03 +0000
committerKarl Berry <karl@freefriends.org>2008-06-24 17:31:03 +0000
commit0530f3453ecf20b507c2478478aa039bd90acce5 (patch)
tree5b2c7ebc53bd0713190fdbe534505421bbc95481 /Master/texmf-dist/tex/generic/pstricks
parentd5f8ac1bb2fddaffa0a1fc0b992f1f79bbd65470 (diff)
pstricks xdvipdfmx.con update
git-svn-id: svn://tug.org/texlive/trunk@8988 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/pstricks')
-rw-r--r--Master/texmf-dist/tex/generic/pstricks/xdvipdfmx.con57
1 files changed, 27 insertions, 30 deletions
diff --git a/Master/texmf-dist/tex/generic/pstricks/xdvipdfmx.con b/Master/texmf-dist/tex/generic/pstricks/xdvipdfmx.con
index d34c1378d68..423849dab56 100644
--- a/Master/texmf-dist/tex/generic/pstricks/xdvipdfmx.con
+++ b/Master/texmf-dist/tex/generic/pstricks/xdvipdfmx.con
@@ -1,11 +1,13 @@
%% BEGIN: pstricks.con (for xdvipdfmx driver)
%%
-%% Configuration file for PSTricks 97
+%% Configuration file for PSTricks
%%
-%% Version 0.01 (2007/03/11)
+%% Version 0.02 (2008/06/20)
%%
%% For use with xdvipdfmx
-
+%% Created by SMiyata based on standard pstricks.con from TeXLive distribution.
+%% This file may be distributed, used and modified freely.
+%
\def\pstdriver{xdvipdfmx}
\def\pstverb#1{\special{pst: #1}} % Check catcode of "
\def\pstunit{1bp}%
@@ -44,7 +46,7 @@
\def\c@lor@ps@cmyk#1\@@{#1 setcmykcolor}
\def\c@lor@ps@gray#1\@@{#1 setgray}
\pstcustomize
-\pstVerb{ /.setopacityalpha pop def }
+\typeout{Using PSTricks configuration for XeTeX+xdvipdfmx}
\def\@@scalebox{%
\leavevmode
\hbox{%
@@ -64,6 +66,22 @@
\special{x: escale}%
\ifdim\pst@dima>\z@\kern\pst@dima\fi}}
\let\ps@@scalebox\@@scalebox
+\def\ps@rotateleft#1{%
+\leavevmode\hbox{\hskip\ht#1\hskip\dp#1\vbox{\vskip\wd#1%
+\pst@Verb{90 \tx@RotBegin}
+\vbox to \z@{\vss\hbox to \z@{\box#1\hss}\vskip\z@}%
+\pst@Verb{\tx@RotEnd}}}}
+\def\ps@rotateright#1{%
+ \leavevmode\hbox{%
+ \hskip\ht#1\hskip\dp#1\vbox{\vskip\wd#1%
+ \pst@Verb{-90 \tx@RotBegin}
+ \vbox to \z@{\hbox to \z@{\hss\box#1}\vss}%
+ \pst@Verb{\tx@RotEnd}}}}
+\def\ps@rotatedown#1{%
+\hbox{\hskip\wd#1\vbox{\vskip\ht#1\vskip\dp#1%
+\pst@Verb{180 \tx@RotBegin}%
+\vbox to \z@{\hbox to \z@{\box#1\hss}\vss}%
+\pst@Verb{\tx@RotEnd}}}}
\def\begin@psclip{\special{x: gsave}}
\def\end@psclip{\special{x: grestore}}
\def\@newcolor#1#2#3{%
@@ -123,42 +141,21 @@
\def\AltOverlayMode{}
%The next line is not necessary, if pstricks.sty of [2007/02/18 v0.33] or newer is used.
\@ifundefined{LaTeXe}{}{\AtBeginDocument{\psset{fillcolor=white}}}
-
\endinput
-
-
-%%
-%%%%%%%%%%%%%%%%%%% !! GENERAL INSTRUCTIONS !! %%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-Because there are no standards for dvi-to-PS driver \special's,
-some driver-dependent commands must be defined in this file.
-
-Possibly correct definitions for some dvi drivers are given below.
-Copy the section for the driver you want to use to the indicated place
-near the beginning of the file, replacing any other definitions you
-might find there.
-
-When changing drivers, you may need to remake the header file.
-
-See the PSTricks read-me file for further installation instructions.
-
-Please report good and bad experiences with dvi-to-PS drivers,
-along with the definitions of these commands that worked
-for you, to tvz@Princeton.EDU. Thanks.
-
-
+%
+%
%%%%%%%%%%%%%%%% DESCRIPTION OF CONFIGURATION DEFINITIONS %%%%%%%%%%%%%%%
Here are the commands that must be defined in this file:
\pstverb{} - The argument is included as verbatim PostScript,
grouped by save and restore. The coordinate system
- should be square, not rotated, and with the origin
- at TeX's currentpoint.
+ should be square, not rotated, and with the origin
+ at TeX's currentpoint.
\pstVerb{} - The argument is included as verbatim PostScript, not
grouped by (g)save and (g)restore. The currentpoint
- should be TeX's currentpoint.
+ should be TeX's currentpoint.
\pstunit - The units used by driver for graphics included with
\pstverb. Probably 1bp or 1sp.