summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/dvips/pstricks-add
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-09-25 17:41:22 +0000
committerKarl Berry <karl@freefriends.org>2007-09-25 17:41:22 +0000
commitc37f8dff2993909bf786eeac757115b0027e3ed9 (patch)
tree374f091c2e913c34f296ab6da9001fe42528e0fe /Master/texmf-dist/dvips/pstricks-add
parentc8bac3012e23bdd0b9f0d776c73da394ecb3ac76 (diff)
pstricks-add update (24sep07)
git-svn-id: svn://tug.org/texlive/trunk@5034 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/dvips/pstricks-add')
-rw-r--r--Master/texmf-dist/dvips/pstricks-add/pstricks-add.pro12
1 files changed, 11 insertions, 1 deletions
diff --git a/Master/texmf-dist/dvips/pstricks-add/pstricks-add.pro b/Master/texmf-dist/dvips/pstricks-add/pstricks-add.pro
index 9d6e72c0a8f..75e5108eae4 100644
--- a/Master/texmf-dist/dvips/pstricks-add/pstricks-add.pro
+++ b/Master/texmf-dist/dvips/pstricks-add/pstricks-add.pro
@@ -1,6 +1,6 @@
%!
% PostScript prologue for pstricks-add.tex.
-% Version 0.12, 2007/09/04
+% Version 0.14, 2007/09/17
% For distribution, see pstricks.tex.
%
% HISTORY -> see file Changes
@@ -12,9 +12,19 @@ tx@Dict begin % make it global for TeX
{ dup sin exch cos div } ifelse % default sin/cos
} def
/PIdiv2 1.57079632680 def
+%
+%--------- will go later into pstricks.pro ------------
+%
+/Pyth2 { % Pythagoras, xA yA xB yB
+ 3 -1 roll % xA xB yB yA
+ sub % xA xB yB-yA
+ 3 1 roll % yB-yA xA xB
+ sub % yB-yA xA-xB
+ Pyth } def
end
%
/tx@addDict 410 dict def tx@addDict begin
+%%
%% parser
%% str -> [ LIFO vector ]
/AlgParser { tx@AlgToPs begin AlgToPs end } def