summaryrefslogtreecommitdiff
path: root/graphics/pstricks/base/generic/pstricks-xetex.def
blob: 68049094a2440c812735e0208970bd02d5e23b2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
%% $Id: pstricks-xetex.def 4 2020-06-09 08:32:19Z herbert $
%%
%% Copyright 2019-  Herbert Voss
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
%   http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% The xdvipdfmx driver does not support all node macros. In the following
% there are alternatives defined:
%
%%  \ncput -> \NCput
%
\def\NCput{\pst@object{NCput}}
\def\NCput@i#1{%
  \begingroup
  \use@par
  \pst@getcoor{@@A}\pst@tempA% defined by \pcline and \ncline
  \pst@getcoor{@@B}\pst@tempB
  \if@star\def\next{\rput*}\else\def\next{\rput}\fi
  \next(!
  	  \pst@tempA /yA ED /xA ED
  	  \pst@tempB /yB ED /xB ED
  	  xA xB add 2 div
  	  yA yB add 2 div \tx@UserCoor){#1}
  \endgroup
  \ignorespaces
}
%%
%% END: pstricks-xetex.def