From 19f58e5098cf443de58d21c46f277ff489457c4b Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 2 Jul 2008 18:05:35 +0000 Subject: pstricks update (1jul08) git-svn-id: svn://tug.org/texlive/trunk@9169 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/generic/pstricks/Changes | 4 + Master/texmf-dist/doc/generic/pstricks/Changes.doc | 4 - .../texmf-dist/doc/generic/pstricks/Changes.dvips | 5 +- .../doc/generic/pstricks/Changes.generic | 1 + Master/texmf-dist/doc/generic/pstricks/Makefile | 5 +- .../texmf-dist/doc/generic/pstricks/PSTricks.bib | 118 ++ Master/texmf-dist/doc/generic/pstricks/README | 175 +-- Master/texmf-dist/doc/generic/pstricks/ctandir.sty | 30 + .../doc/generic/pstricks/examples/changes.pdf | Bin 62337 -> 0 bytes .../doc/generic/pstricks/examples/changes.tex | 662 ---------- .../doc/generic/pstricks/examples/chartest.pdf | Bin 10025 -> 0 bytes .../doc/generic/pstricks/examples/chartest.tex | 25 - .../doc/generic/pstricks/examples/denis1.pdf | Bin 21760 -> 0 bytes .../doc/generic/pstricks/examples/denis1.tex | 41 - .../doc/generic/pstricks/examples/denis2.pdf | Bin 5005 -> 0 bytes .../doc/generic/pstricks/examples/denis2.tex | 36 - .../doc/generic/pstricks/examples/filetest.dat | 71 -- .../doc/generic/pstricks/examples/filetest.pdf | Bin 12054 -> 0 bytes .../doc/generic/pstricks/examples/filetest.raw | 6 - .../doc/generic/pstricks/examples/filetest.tex | 84 -- .../doc/generic/pstricks/examples/pst-test.pdf | Bin 16781 -> 0 bytes .../doc/generic/pstricks/examples/pst-test.tex | 126 -- .../doc/generic/pstricks/examples/samples.pdf | Bin 47029 -> 0 bytes .../doc/generic/pstricks/examples/samples.tex | 443 ------- .../doc/generic/pstricks/examples/tp-test.pdf | Bin 16906 -> 0 bytes .../doc/generic/pstricks/examples/tp-test.tex | 72 -- .../doc/generic/pstricks/pst-docfull.pdf | Bin 0 -> 565330 bytes .../texmf-dist/doc/generic/pstricks/pst-news05.pdf | Bin 0 -> 133777 bytes .../texmf-dist/doc/generic/pstricks/pst-news05.tex | 403 ++++++ .../texmf-dist/doc/generic/pstricks/pst-news06.pdf | Bin 0 -> 85735 bytes .../texmf-dist/doc/generic/pstricks/pst-news06.tex | 198 +++ .../texmf-dist/doc/generic/pstricks/pst-news08.pdf | Bin 0 -> 262715 bytes .../texmf-dist/doc/generic/pstricks/pst-news08.tex | 862 +++++++++++++ .../doc/generic/pstricks/pst-news2008.pdf | Bin 249194 -> 0 bytes .../doc/generic/pstricks/pst-news2008.tex | 823 ------------- .../texmf-dist/doc/generic/pstricks/pst-user.tgz | Bin 0 -> 76080 bytes .../doc/generic/pstricks/pst-usrfull.pdf | Bin 0 -> 702527 bytes .../doc/generic/pstricks/pstnews1-14.pdf | Bin 43766 -> 0 bytes .../doc/generic/pstricks/pstnews1-14.tex | 94 -- .../doc/generic/pstricks/pstnews1-15.pdf | Bin 87104 -> 0 bytes .../doc/generic/pstricks/pstnews1-15.tex | 204 ---- .../texmf-dist/doc/generic/pstricks/test-pst.pdf | Bin 0 -> 189902 bytes .../texmf-dist/doc/generic/pstricks/test-pst.tex | 257 ++++ Master/texmf-dist/dvips/pstricks/pst-algparser.pro | 2 +- Master/texmf-dist/dvips/pstricks/pst-dots.pro | 16 +- Master/texmf-dist/dvips/pstricks/pst-node.pro | 2 +- Master/texmf-dist/dvips/pstricks/pstricks.pro | 28 +- Master/texmf-dist/source/generic/pstricks/Makefile | 97 -- .../source/generic/pstricks/defaults.pst | 149 --- .../texmf-dist/source/generic/pstricks/psd-3d.tex | 12 - .../source/generic/pstricks/psd-basi.tex | 648 ---------- .../source/generic/pstricks/psd-cove.tex | 108 -- .../source/generic/pstricks/psd-cust.tex | 406 ------- .../source/generic/pstricks/psd-esse.tex | 392 ------ .../source/generic/pstricks/psd-fill.tex | 12 - .../source/generic/pstricks/psd-help.tex | 332 ----- .../source/generic/pstricks/psd-node.tex | 1279 -------------------- .../source/generic/pstricks/psd-para.tex | 345 ------ .../source/generic/pstricks/psd-pict.tex | 500 -------- .../source/generic/pstricks/psd-spec.tex | 500 -------- .../source/generic/pstricks/psd-text.tex | 260 ---- .../source/generic/pstricks/psd-tree.tex | 816 ------------- .../source/generic/pstricks/pst-user.cls | 1111 ----------------- .../source/generic/pstricks/pst-user.ist | 7 - .../source/generic/pstricks/pst-user.tex | 87 -- .../tex/generic/pstricks/latex/pst-all.sty | 31 + .../tex/generic/pstricks/latex/pst-key.sty | 6 + .../tex/generic/pstricks/latex/pst-node.sty | 10 + .../tex/generic/pstricks/latex/pst-plot.sty | 6 + .../tex/generic/pstricks/latex/pst-tree.sty | 6 + .../tex/generic/pstricks/latex/pstcol.sty | 24 + .../tex/generic/pstricks/latex/pstricks.sty | 215 ++++ .../texmf-dist/tex/generic/pstricks/pst-node.tex | 470 +++---- .../texmf-dist/tex/generic/pstricks/pst-plot.tex | 109 +- .../texmf-dist/tex/generic/pstricks/pstricks.tex | 85 +- Master/texmf-dist/tex/latex/pstricks/pst-all.sty | 31 - Master/texmf-dist/tex/latex/pstricks/pst-key.sty | 6 - Master/texmf-dist/tex/latex/pstricks/pst-node.sty | 10 - Master/texmf-dist/tex/latex/pstricks/pst-plot.sty | 6 - Master/texmf-dist/tex/latex/pstricks/pst-tree.sty | 6 - Master/texmf-dist/tex/latex/pstricks/pstcol.sty | 24 - Master/texmf-dist/tex/latex/pstricks/pstricks.sty | 215 ---- 82 files changed, 2567 insertions(+), 10551 deletions(-) create mode 100644 Master/texmf-dist/doc/generic/pstricks/Changes delete mode 100644 Master/texmf-dist/doc/generic/pstricks/Changes.doc create mode 100644 Master/texmf-dist/doc/generic/pstricks/PSTricks.bib create mode 100644 Master/texmf-dist/doc/generic/pstricks/ctandir.sty delete mode 100644 Master/texmf-dist/doc/generic/pstricks/examples/changes.pdf delete mode 100644 Master/texmf-dist/doc/generic/pstricks/examples/changes.tex delete mode 100644 Master/texmf-dist/doc/generic/pstricks/examples/chartest.pdf delete mode 100644 Master/texmf-dist/doc/generic/pstricks/examples/chartest.tex delete mode 100644 Master/texmf-dist/doc/generic/pstricks/examples/denis1.pdf delete mode 100644 Master/texmf-dist/doc/generic/pstricks/examples/denis1.tex delete mode 100644 Master/texmf-dist/doc/generic/pstricks/examples/denis2.pdf delete mode 100644 Master/texmf-dist/doc/generic/pstricks/examples/denis2.tex delete mode 100644 Master/texmf-dist/doc/generic/pstricks/examples/filetest.dat delete mode 100644 Master/texmf-dist/doc/generic/pstricks/examples/filetest.pdf delete mode 100644 Master/texmf-dist/doc/generic/pstricks/examples/filetest.raw delete mode 100644 Master/texmf-dist/doc/generic/pstricks/examples/filetest.tex delete mode 100644 Master/texmf-dist/doc/generic/pstricks/examples/pst-test.pdf delete mode 100644 Master/texmf-dist/doc/generic/pstricks/examples/pst-test.tex delete mode 100644 Master/texmf-dist/doc/generic/pstricks/examples/samples.pdf delete mode 100644 Master/texmf-dist/doc/generic/pstricks/examples/samples.tex delete mode 100644 Master/texmf-dist/doc/generic/pstricks/examples/tp-test.pdf delete mode 100644 Master/texmf-dist/doc/generic/pstricks/examples/tp-test.tex create mode 100644 Master/texmf-dist/doc/generic/pstricks/pst-docfull.pdf create mode 100644 Master/texmf-dist/doc/generic/pstricks/pst-news05.pdf create mode 100644 Master/texmf-dist/doc/generic/pstricks/pst-news05.tex create mode 100644 Master/texmf-dist/doc/generic/pstricks/pst-news06.pdf create mode 100644 Master/texmf-dist/doc/generic/pstricks/pst-news06.tex create mode 100644 Master/texmf-dist/doc/generic/pstricks/pst-news08.pdf create mode 100644 Master/texmf-dist/doc/generic/pstricks/pst-news08.tex delete mode 100644 Master/texmf-dist/doc/generic/pstricks/pst-news2008.pdf delete mode 100644 Master/texmf-dist/doc/generic/pstricks/pst-news2008.tex create mode 100644 Master/texmf-dist/doc/generic/pstricks/pst-user.tgz create mode 100644 Master/texmf-dist/doc/generic/pstricks/pst-usrfull.pdf delete mode 100644 Master/texmf-dist/doc/generic/pstricks/pstnews1-14.pdf delete mode 100644 Master/texmf-dist/doc/generic/pstricks/pstnews1-14.tex delete mode 100644 Master/texmf-dist/doc/generic/pstricks/pstnews1-15.pdf delete mode 100644 Master/texmf-dist/doc/generic/pstricks/pstnews1-15.tex create mode 100644 Master/texmf-dist/doc/generic/pstricks/test-pst.pdf create mode 100644 Master/texmf-dist/doc/generic/pstricks/test-pst.tex delete mode 100644 Master/texmf-dist/source/generic/pstricks/Makefile delete mode 100644 Master/texmf-dist/source/generic/pstricks/defaults.pst delete mode 100644 Master/texmf-dist/source/generic/pstricks/psd-3d.tex delete mode 100644 Master/texmf-dist/source/generic/pstricks/psd-basi.tex delete mode 100644 Master/texmf-dist/source/generic/pstricks/psd-cove.tex delete mode 100644 Master/texmf-dist/source/generic/pstricks/psd-cust.tex delete mode 100644 Master/texmf-dist/source/generic/pstricks/psd-esse.tex delete mode 100644 Master/texmf-dist/source/generic/pstricks/psd-fill.tex delete mode 100644 Master/texmf-dist/source/generic/pstricks/psd-help.tex delete mode 100644 Master/texmf-dist/source/generic/pstricks/psd-node.tex delete mode 100644 Master/texmf-dist/source/generic/pstricks/psd-para.tex delete mode 100644 Master/texmf-dist/source/generic/pstricks/psd-pict.tex delete mode 100644 Master/texmf-dist/source/generic/pstricks/psd-spec.tex delete mode 100644 Master/texmf-dist/source/generic/pstricks/psd-text.tex delete mode 100644 Master/texmf-dist/source/generic/pstricks/psd-tree.tex delete mode 100644 Master/texmf-dist/source/generic/pstricks/pst-user.cls delete mode 100644 Master/texmf-dist/source/generic/pstricks/pst-user.ist delete mode 100644 Master/texmf-dist/source/generic/pstricks/pst-user.tex create mode 100644 Master/texmf-dist/tex/generic/pstricks/latex/pst-all.sty create mode 100644 Master/texmf-dist/tex/generic/pstricks/latex/pst-key.sty create mode 100644 Master/texmf-dist/tex/generic/pstricks/latex/pst-node.sty create mode 100644 Master/texmf-dist/tex/generic/pstricks/latex/pst-plot.sty create mode 100644 Master/texmf-dist/tex/generic/pstricks/latex/pst-tree.sty create mode 100644 Master/texmf-dist/tex/generic/pstricks/latex/pstcol.sty create mode 100644 Master/texmf-dist/tex/generic/pstricks/latex/pstricks.sty delete mode 100644 Master/texmf-dist/tex/latex/pstricks/pst-all.sty delete mode 100644 Master/texmf-dist/tex/latex/pstricks/pst-key.sty delete mode 100644 Master/texmf-dist/tex/latex/pstricks/pst-node.sty delete mode 100644 Master/texmf-dist/tex/latex/pstricks/pst-plot.sty delete mode 100644 Master/texmf-dist/tex/latex/pstricks/pst-tree.sty delete mode 100644 Master/texmf-dist/tex/latex/pstricks/pstcol.sty delete mode 100644 Master/texmf-dist/tex/latex/pstricks/pstricks.sty (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/doc/generic/pstricks/Changes b/Master/texmf-dist/doc/generic/pstricks/Changes new file mode 100644 index 00000000000..426a1491e0d --- /dev/null +++ b/Master/texmf-dist/doc/generic/pstricks/Changes @@ -0,0 +1,4 @@ +2008-05-23 new files pst-news08.tex|pdf + pst-news.sty for the doc +2005-12-22 new files pstnews1-14.tex|pdf +2006-12-19 new files pstnews1-15.tex|pdf diff --git a/Master/texmf-dist/doc/generic/pstricks/Changes.doc b/Master/texmf-dist/doc/generic/pstricks/Changes.doc deleted file mode 100644 index 39bbbe36595..00000000000 --- a/Master/texmf-dist/doc/generic/pstricks/Changes.doc +++ /dev/null @@ -1,4 +0,0 @@ -2008-05-23 new files pst-news2008.tex|pdf - pst-news.sty for the doc -2005-12-22 new files pstnews1-14.tex|pdf -2006-12-19 new files pstnews1-15.tex|pdf diff --git a/Master/texmf-dist/doc/generic/pstricks/Changes.dvips b/Master/texmf-dist/doc/generic/pstricks/Changes.dvips index 70c6a76dbe0..d2d1fd40f29 100644 --- a/Master/texmf-dist/doc/generic/pstricks/Changes.dvips +++ b/Master/texmf-dist/doc/generic/pstricks/Changes.dvips @@ -1,4 +1,5 @@ ---- pstricks.pro +1.05 2008-06-26 - added penrose fill style 1.04 2008-05-11 - added Rand for a real random 0<=Rand<=1 1.03 2008-04-15 - only some cosmetics to the code 1.02 2008-01-01 - added the arrowtype D>, sides as curves (ArrowD) @@ -19,8 +20,8 @@ 97, patch 5 2005-03-08 bugfix for DashLine ----- pst-text.pro -1.00 2005-11-29 add a patch for japanese text (hv) +---- pst-node.pro +1.00 2005-11-29 initial CTAN version (hv) ---- pst-dots.pro diff --git a/Master/texmf-dist/doc/generic/pstricks/Changes.generic b/Master/texmf-dist/doc/generic/pstricks/Changes.generic index 7f6e9558747..1d75075975e 100644 --- a/Master/texmf-dist/doc/generic/pstricks/Changes.generic +++ b/Master/texmf-dist/doc/generic/pstricks/Changes.generic @@ -1,4 +1,5 @@ pstricks.tex -------- +1.25 2008-06-17 - added fill style penrose 1.24 2008-06-17 - added \psDEBUG[#1]#2 for better dubugging 1.23 2008-05-23 - add octogon symbol (hv) - fix bug with D>- -PSTricks 97 is edited by Denis Girou - and Sebastian Rahtz -PSTricks 2004 is edited by Herbert Voss - and Rolf Niepraschk -PSTricks 2005-07 is edited by Herbert Voss - ------------------------------------------------------------------------ -For more informations go to http://tug.org/PSTricks _and_ read the -news articles in the doc directory! - - -1 - Copyright - --------- - -COPYRIGHT 1993, 1994, 2000 by Timothy Van Zandt, . -COPYRIGHT 2004, 2005 by Herbert Voss and - Rolf Niepraschk . -COPYRIGHT 2006-07 by Herbert Voss - -This program can be redistributed and/or modified under the terms -of the LaTeX Project Public License Distributed from CTAN -archives in directory macros/latex/base/lppl.txt. - -2 - Introduction - ------------ - -This package is a re-release of PSTricks, incorporating all of the -beta releases and bug fixes made up to March 1997. It is *not* -intended as a full new release of PSTricks, but as a consolidation and -cleaned distribution. Because Timothy van Zandt does not currently have -enough time to work on PSTricks, he gave permission for Denis Girou, -Sebastian Rahtz and Herbert Voss to produce this interim solution. - -Some new features have been added in the 2007 version, except the release -of the small pst-fill package for filling (tiling) arbitrary regions and the -various evolving contributions, but we have merged in all the bug fixes -and beta addons which Timothy produced. - -We have renamed some of the files that make up PSTricks, for consistency. -The multido package is now in /macros/generic/multido - -3 - Installation - ------------ - -3.1 - (La)TeX files - - a - You have to move all the files from the "generic" subdirectory -to a directory part of your TEXINPUTS environment variable, or to add it -in your TEXINPUTS list of paths. - - b - If you are a LaTeX user (and not only a plain TeX one), you have -to do the same thing for the "latex" subdirectory, which define LaTeX -wrappers for all the PSTricks files. - -3.2 - PostScript header files - - a - If you use the "dvips" DVI to PostScript converter, you have -to move all the files from the "dvips" subdirectory to a directory part -of your DVIPSHEADERS environment variable, or to add it in your DVIPSHEADERS -list of paths. - - b - If you use the Y&Y's "dvipsone" DVI to PostScript converter, -you have to rename generic/dvipsone.con to generic/pstricks.con and to move -all the files of the "dvips" subdirectory to the TeX input folder. - - c - If you use the MicroPress "VTeX" DVI to PostScript converter, -you have to rename generic/vtex.con to generic/pstricks.con and to move -all the files of the "dvips" subdirectory to the TeX input folder. - - d - If you use the "textures" (version 1.7/1.8 or 2.0) DVI to PostScript -converter (for Macintosh), you should proceed as follows: - * create a new folder PSTricks97 (for instance) as a subfolder in -Textures' TeX inputs folder, - * copy the "generic", "dvips", "latex" and "contrib" subfolders -from the "pst97" folder to the newly created "PSTricks97" folder, - * open the "generic" folder and remove the file pstricks.con, -then rename the file textures.con to pstricks.con, - * open the "dvips" folder and change the following line in the file -pstricks.pro (courtesy Michael J. Sharpe ): -/STV { SDict begin normalscale end STP } def -by -/STV { Mag 72.27 72 div mul dup neg scale STP } def - It was also reported that the `pst-text' package (to put text -along paths) doesn't work with the "textures" driver. - Textures's users must also look at the page kindly maintained -by Michael Sharpe: http://math.ucsd.edu/~msharpe/pst-textures.html - - e - If you use the "xdvipdfmx" DVI to PDF converter (for XeTeX), -you have to rename generic/xdvipdfmx.con to generic/pstricks.con. - - f - If you use another driver than these four ones, you have to adapt -a pstricks.con file for it, if the one for "dvips" doesn't work for it. -You can also look at the instructions of the old obsolete/src/pstricks.con -file. And if nothing work, ask for help on the PSTricks mailing list, -hopping that somebody on the list has the same configuration than you... - -3.3 - Known pitfalls - - a - To use the standard `color' or `xcolor' package with PSTricks, you -must load the `pstricks.sty' package, which interface the two packages, -loading them in the right order, and overriding some small parts of -PSTricks to allow it to use the `color' or `xcolor' package system for -specifying color. We STRONGLY recommend that you use this way today. -pstricks.sty loads by default the xcolor package, but there is an option -"noxcolor". If you are a LaTeX user then load _always_ first the -pstricks.sty package. - - b - Don't try to load the `color' or `xcolor' package if you use -`pstricks.sty' or `pst-all' (it is already loaded in the correct order). - - c - If needed, preferably load the `graphics' / `graphicx' package -after PSTricks, and in this case use the `graphics' syntax of \scalebox -(not the one described in the PSTricks documentation). pstricks.sty -redefines this macro so that both can be used (see doc). - - - -4 - Contents - -------- - -4.1 - Subdirectories - -The distribution contain the following subdirectories: - -base : the core pstricks files -contrib : various contributions - -4.2 - PSTricks core files - -The generic subdirectory contain the core files of PSTricks (and the latex -subdirectory contain the corresponding wrapper files). - -pstricks.sty - The LaTeX file -pstricks.tex - The TeX file -pstricks.con - The configuration file -pstricks.pro - The dvips header file - -5 - Documentation - ------------- - -There is NOT a complete up to date _reference_ documentation for PSTricks 97. -You must still refer to the reference documentation of the version 0.93a and -the additional old Beta material, available in the obsolete/doc subdirectory -(it was put in the "obsolete" subdirectory to clearly show that it is not up -to date nor supported by actual mainteners). Take care to notice what has -changed in additional old Beta documents (betadoc?.ps files) comparing to the -ones for 0.93a version (pst-usr?.ps files). - -Denis Girou maintain a list of known errors in both version 0.93a and -additional old Beta documentations, in obsolete/doc/pst-doc.err - -A large chapter of "The LaTeX Graphics Companion, 2nd ed.", by Goossens, Mittelbach, -Rahtz, Roegel and Voß, Addison Wesley 2007, is dedicated to PSTricks, and this -currently forms the only systematic description of the integration of -the basic PSTricks and the beta additions of 1993. The source of all examples -from that book is also on CTAN/info/lgc and most of them in the doc/lgc -subdirectory of the PST97 distribution. The second edition of this book -has no more a chapter of PSTricks. - -There is also a supporting set of Web pages on -http://www.tug.org/PSTricks with various -pointers and examples classified by categories. - -And there is also a mailing list devoted to discussions on PSTricks usage. -The informations to subscribe to this list and to consult the archives can -be found on the Web page. - --- -Denis Girou, Sebastian Rahtz and Herbert Voss (updated April 11, 2007) +The Makefile generates the pdf file for pst-newsYY diff --git a/Master/texmf-dist/doc/generic/pstricks/ctandir.sty b/Master/texmf-dist/doc/generic/pstricks/ctandir.sty new file mode 100644 index 00000000000..37928e95823 --- /dev/null +++ b/Master/texmf-dist/doc/generic/pstricks/ctandir.sty @@ -0,0 +1,30 @@ +%% LaTeX2e file `ctandir.sty' +%% generated by the `filecontents' environment +%% from source `pst-fill-doc' on 2004/08/18. +%% +%% LaTeX2e file `ctandir.sty' +%% generated by the `filecontents' environment +%% from source `ltubguid' on 1997/06/12. +%% +% +% Experimental CTAN location information macros for use with Donald +% Arseneau's |url.sty| +% +% we need url.sty; we can rely on it to demand anything it needs of +% LaTeX +\IfFileExists{url.sty}% + {\RequirePackage{url}}% + {\PackageWarning{ctandir}{You should acquire a copy of url.sty}% + \newcommand\urldef[3]{\def#1{\texttt{#3}}}% + \let\url\texttt + } +% +\newcommand\CTANdirectory[1]{\expandafter\urldef + \csname CTAN@#1\endcsname\path} +\newcommand\CTANfile[1]{\expandafter\urldef + \csname CTAN@#1\endcsname\path} +% +% Use the standard label-referencing mechanism to get the warning for +% an undefined label +\newcommand\CTANref[1]{\expandafter\@setref\csname CTAN@#1\endcsname + \relax{#1}} diff --git a/Master/texmf-dist/doc/generic/pstricks/examples/changes.pdf b/Master/texmf-dist/doc/generic/pstricks/examples/changes.pdf deleted file mode 100644 index 7d921997282..00000000000 Binary files a/Master/texmf-dist/doc/generic/pstricks/examples/changes.pdf and /dev/null differ diff --git a/Master/texmf-dist/doc/generic/pstricks/examples/changes.tex b/Master/texmf-dist/doc/generic/pstricks/examples/changes.tex deleted file mode 100644 index d431a41be2c..00000000000 --- a/Master/texmf-dist/doc/generic/pstricks/examples/changes.tex +++ /dev/null @@ -1,662 +0,0 @@ -%% BEGIN changes.tex -%% -%% Changes listing for PSTricks. -%% Run with LaTeX, with or without the NFSS. -%% -%% Change these for a4 paper: -%\def\paperwidth{8.5in} -%\def\paperheight{11in} - -\def\FileVersion{0.93a} -\def\FileDate{March 12, 1993} - -\documentclass[11pt,a4paper]{article} -\usepackage[T1]{fontenc} - -%% PAGE PARAMETERS - -\usepackage{fancybox} -% Paragraphs are marked by large space rather than indentation: -\parindent 0pt -\parskip 6pt plus 1pt minus 1pt - -% No headers, 1in top margin -\usepackage[dvips]{geometry} -\geometry{tmargin=0pt,bmargin=3.3cm,headheight=0pt,headsep=0pt, -textheight=9in, footskip=.625in} -\usepackage[scaled]{luximono} -\usepackage{mathpazo} - - -% Now adjust for different paper size: -\newdimen\mydim -\mydim=\paperwidth -\advance\mydim-8.5in -\divide\mydim 2 -\advance\oddsidemargin \mydim -\advance\evensidemargin \mydim -\mydim=\paperheight -\advance\mydim-11in -\divide\mydim 2 -\advance\topmargin \mydim - -%% OTHER - -\renewcommand{\EveryVerbatimLine}[2]{} - -% Short meta (works in verbatim. Can't use < for other purposes. -\catcode`\<=13 \def<#1>{{\rm\it #1\/}} % (works in verbatim) - -% Short verbatim. -\catcode`\"=13 -\def"{\verb"} - -\catcode`\@=12 % In case I'm using AmS-LaTeX - -\begin{document} - -\begin{center} -{\large\bfseries Changes listing for PSTricks}\\[6pt] - Version \FileVersion\\ - \FileDate\\[6pt] - Timothy Van Zandt\\ - tvz@Princeton.EDU -\end{center} - - The PSTricks package is still preliminary. The features list - and user interface are unlikely to change much in the short term, but - the internal code is not stable. - -\section{VERSION 0.93 and 0.93a} - - There have been substantial changes (hopefully for the last time). - - This section describes the changes from 0.92 to 0.93a. The only differencea -between 0.93 and 0.93a are that a bug in "\nccircle" was fixed, and the -features in "\pst-old.tex" where either incorporated into the main files -("\Rput", "\Lput", "\Mput", "\Polar" and "\Cartesian") or eliminated entirely -("\NewPsput", "\OldPsput" and the old "\pscustom" commands). What is described -\subsection{Incompatible changes} - - {\bf - These changes may require modification to files prepared with version 0.92. -Sorry about the inconvenience. To avoid letting new changes catch you by -surprise, get on the PSTricks mailing list.} -\begin{enumerate} - -\item - "\SpecialCoor" has changed completely. See User's Guide for details. Most of -these changes were announced shortly after the release of v0.92, but -"pst-beta.tex" users should note that raw PostScript coordinates are now -delimited by "!" rather than by ":". - - {\bfseries How to fix files:} Search for "\SpecialCoor" in your file. Change the -old syntax to the new syntax according to this table: - \begin{center} - \begin{tabular}{ccl} - {\em Old} & {\em New} & {\em Type}\\[2pt] - "(c,)" & "(,)" & Cartesian.\\ - "(p,)" & "(;)" & Polar.\\ - "(n{})" & "()" & Center of .\\ - "(N[]{})" & "([])" & Relative to .\\ - "(m{}{})" & "(|)" & Mixed. - \end{tabular} - \end{center} -In addition, if you used the syntax "(:)" from "pst-beta.tex" for raw -postscript code, search for "(:" and replace by "(!". - -\item - Angles can no longer be specified by "{,}". "\SpecialCoor" lets you -use coordinates as angles, but they must be enclosed in "()". E.g., -"{(,)}". See User's Guide for details. - - {\bfseries How to fix files:} Add the parentheses "()" to angles given by -"{,}" and and precede this usage by "\SpecialCoor". However, there is no -easy way to search for "{,}" (unless you are good at using Unix's -regular expressions). On the other hand, you probably didn't use this features -much, and it will be easier to just wait for the old usage to cause errors. - -\item - The -\begin{LVerbatim} - arrowsize= -\end{LVerbatim} -parameter has been replaced by -\begin{LVerbatim} - arrowsize= - arrowlength= - arrowinset= -\end{LVerbatim} - - {\bfseries How to fix files:} - Search for "arrowsize", and break up your parameter change. You can also -just do nothing, because if you use the old syntax for "arrowsize", and - will simply be ignored. - -\item - The -\begin{LVerbatim} - tbarsize= -\end{LVerbatim} -parameter has been replaced by -\begin{LVerbatim} - tbarsize= - bracketlength= % For square brackets. - rbracketlength= % For round brackets. -\end{LVerbatim} - - {\bfseries How to fix files:} - Search for "tbarsize", and break up your parameter change. You can also just -do nothing, because if you use the old syntax for "tbarsize", will -simply be ignored. - -\item - "\pscustom" has changed substantially. E.g., (i) there is no "(x,y)" -argument, (ii) plots ("\psplot", etc.) no longer run backwards, and (iii) the -treatment of the currentpoint is much different. Also, most of the special -commands for use only within "\pscustom" have changed. See the User's Guide -for details. - - {\bfseries How to fix files:} - You must search for each use of "\pscustom", and make the following changes: - \begin{itemize} - \item Replace "\pscustom"'s old "(,)" argument by "\moveto(,)" -at the beginning of "\pscustom"'s main argument. - - \item Make the following substitutions inside "\pscustom"'s main argument: - \begin{center} - \begin{tabular}{ll} - {\em Old} & {\em New}\\[2pt] - "\pscode" & "\code"\\ - "\pscoor" & "\coor"\\ - "\psdim" & "\dim"\\ - "\psmove" & "\moveto"\\ - "\psclosepath" & "\closepath"\\ - "\psgroup{}" & "\gsave" "\grestore"\\ - "\psstroke" & "\stroke"\\ - "\psfill" & "\fill" - \end{tabular} - \end{center} - You can instead define, e.g., - \begin{quote} - "\def\pscode{\code}" , or\\ - "\newcommand{\pscode}{\code}" - \end{quote} - and - \begin{quote} - "\def\psgroup#1{\gsave #1 \grestore}" , or\\ - "\newcommand{\psgroup}{\gsave #1 \grestore}" - \end{quote} - - \item Check the output from your "\pscustom" command. If, after making the -above changes, things come out differently than inspected, it is probably -because the plot commands run ``forwards'' rather than ``backwards'', or -because of the new way that "\pscustom" treats the current point. Fix these on -a case-by-case basis. - \end{itemize} - -\item - "\listplot", "\psplot" and "\parametricplot" no longer have an "(,)" -argument. Use the "origin" parameter instead. - - {\bfseries How to fix files:} - Search for "\listplot", "\psplot" and "\parametricplot". Replace any -"(,)" argument by the parameter change "[origin={,}]". - -\item - To suppress labels with "\psaxes", use "labels=none/x/y", rather than -setting "Dx" and "Dy" to empty values. - - {\bfseries How to fix files:} - Search for "=}", "=," and "=]". Remove the "Dx=," and other such parameter -settings you find, and replace instead by "labels=none/x/y", depending on -whether you want no labels, labels on the x-axes only, or labels on the y-axis -only. - -\item - The "\scalebox" macro should use a space rather than a comma to separate the -x and y scaling factors, when two scaling factors are given. - - {\bfseries How to fix files:} - Wait to get error about bad numbers, or search for "\scalebox" and replace -"\scalebox{,}" by "\scalebox{ }". - -\item - The "dblframewidth" parameter is gone, because "\psdblframebox" is now just -a variant of "\psframebox" with "doubleline=true". The width of each frame is -now just "linewidth" - - {\bfseries How to fix files:} - Search for "dblframewidth" and replace the parameter setting be a -"linewidth" parameter setting. - -\item - The "\OldPsput" and "\Newpsput" commands are gone. These were originally -devised to retain compatibility with an older version of PSTricks that had a -"\psput" command instead of "\rput". - - {\bfseries How to fix files:} - If you used "\psput" with the new syntax, then search for "\psput" and -replace by "\rput". - - If you used "\psput" with the old syntax, then either search for "\psput" -commands and replace with "\rput" commands with the new syntax, or put the -following in a file so that the "\OldPsput" command defines "\psput" with the -old syntax: -\begingroup\catcode`\<=12 -\begin{LVerbatim} - \def\old@psput{\begingroup\old@psput@} - \def\old@psput@{% - \def\refpoint@x{.5}\def\refpoint@y{.5}% - \pst@ifstar{\@ifnextchar[% - {\old@psput@i}{\def\pst@rot{}\old@psput@ii}}} - \def\old@psput@i[#1]{\pst@getangle{#1}\pst@rot\old@psput@ii} - \def\old@psput@ii{\@ifnextchar<{\old@psput@iii}{\old@psput@iv}} - \def\old@psput@iii<#1>{\pst@@getref\old@psput@iv[#1]} - \def\old@psput@iv{% - \@ifnextchar({\end@psput\rput@i}{\end@psput\rput@i(0,0)}} - \def\OldPsput{\let\psput\old@psput} - \def\NewPsput{\let\psput\rput} -\end{LVerbatim} -\endgroup - -\end{enumerate} - - -\subsection{New files with old stuff} - -Remember to input these files when needed. To have these files loaded -automatically, put an "\input" command after "\customization" in the -configuration file ("pstricks.con"). - -\begin{description} - -\item[pst-node] - All the node stuff has been put in "pst-node.tex" / "pst-node.sty". - -\item[pst-plot] - The plot commands ("\psplot", etc.) and the "\psaxes" command have been put -in "pst-plot.tex" / "pst-plot.sty". ("pst-plot.tex" automatically loads -"multido.tex", which is required by the axes macros.) There are also some -variants of "\listplot", "\fileplot" and "\dataplot", that are less likely to -exceed PostScript operand stack limits. - -\item[colortab] - The table coloring commands have been put in "colortab.tex" / -"colortab.sty". This is no longer PSTricks specific, but most of the old stuff -works the same as before. The only exception is that "\omit{}" is not needed -when a column is not to be colored. The documentation for "colortab.tex" is in -"colortab.doc". There are also some new features: -\begin{itemize} -\item - "\SP" and "\RP": These let "\LCC" ... "\ECC" work with nested arrays or -"\multicolumns" when using Mittelbach's array.sty. See "colortab.doc" for -details. - -\item - "LColors", "\LC", "\LCi", "\LCii", "\LCiii", "\LCz", for shading the cells -in the "longtable" environment. See "colortab.doc" for details. - -umns when using Mittelbach's array.sty. See "colortab.doc" for details. - -\item - "LColors", "\LC", "\LCi", "\LCii", "\LCiii", "\LCz", for shading the cells -in the "longtable" environment. See "colortab.doc" for details. -\end{itemize} - -\end{description} - -\subsection{Obsolete but retained features} - - The features listed below are obsolete and are documented in footnotes. - -\begin{itemize} -\item - "\Polar": Use "\SpecialCoor" and "(r;a)" instead. - -\item - "\Cartesian(x,y)" Use "\psset{xunit=x,yunit=y}" instead. - -\item - "\Rput": Use "\uput" instead. - -\item - "\Lput" and "\Mput": Use "\aput", "\bput", "\Aput" and "\Bput" instead. - -\end{itemize} - -\subsection{New features} - -This is a partial listing. See also the next section on new files. - -\begin{itemize} - -\item - "\uput": Replaces "\Rput". - -\item - "\aput", "\bput", "\Aput", "\Bput": Replace "\Lput" and "\Mput". - -\item - "\clipbox" has optional argument "[]" that sets the clippath distance - from box. E.g., "\clipbox[1pt]{foo}". - -\item - "\newpsstyle": E.g., -\begin{LVerbatim} - \newpsstyle{foo}{linewidth=5pt,linestyle=dashed} - \psline[style=foo](4,5) -\end{LVerbatim} - -\item - "\PSTricksOff" suppresses the PostScript. Useful for printing or previewing -drafts of your document with a non-PostScript driver. - -\item - New arrow styles: {\catcode`\<=12 \tt - >-<, <<->>, >>-<<. |*-|* }. - -\item - Many new features for the "\pscustom" command. - -\item - "dimen" parameter (for controlling whether dimensions for "\psframe", -"\pscircle", "\pswedge" and "\psellipse" refer to the inside, outside or -middle of the boundary. - -\item - "bordercolor" parameter. - -\item - "doubleline", "doublesep" and "doublecolor" parameters. - -\item - "ticks" and "labels" parameters, for suppressing ticks and labels with -"\psaxes". - -\item - "shadow" and "shadowangle" parameters. - -\item - Shadow parameters now apply to all graphics objects. - -\item - "\psmathboxtrue", "\psmathboxfalse", for controling whether box - macros preserve math mode. - -\item - "\pslongbox": For making box environment out of box commands. - -\item - "\psverbboxtrue", "\psverbboxfalse": For controlling whether verbatim - text is allowed in box commands. - -\end{itemize} - -\subsection{New files with new stuff} - -\begin{description} - -\item[pst-coil] - Contains "\pscoil", "\psCoil", "\pszigzag", "\nccoil" and "\nczigzag". Uses -"pst-coil.pro" (optionally). - -\item[pst2eps] - Contains "\TeXtoEPS", to make it easier to convert \TeX\ boxes to EPS files -with dvips, and "\PSTtoEPS", for creating EPS files directly from PSTricks -graphics. - -\item[textpath] - Contains "\pstextpath" command, for typesetting text along a path. Use -"textpath.pro". - -\item[gradient] - "gradient" fillstyle. Uses "gradient.pro". - -\item[charpath] - Contains "\pscharpath" command, for stroking and filling character paths. -Also, "\pscharclip" ... "\endpscharclip" sets clipping path as well. - -\item[piecharts.sh] - A sh/awk script by Denis Girou for converting data to PSTricks piecharts. - -\end{description} - -\subsection{Bug fixes} - -This list is incomplete. - -\begin{itemize} - -\item - "\scalebox" and "\scaleboxto" now work when the vertical scaling factor - is less than 1. - -\item - "\lput" and company now work with dvips 4.90 and later. - -\item - "\multips" can now be nested. - -\item - "\psclip" fixed. - -\item - "\clipbox" and clip option for "\pspicture" fixed. - -\end{itemize} - -\subsection{Other changes} - -In some cases, there is a small chance these will require that you modify old -files. - -\begin{itemize} - -\item - Specifying "\rput"'s argument as, e.g., "[.3,1]" rather than -"[br]" is now an undocumented feature. - -\item - All arguments to "\psplot", "\listplot" and "\parametric" plot are passed -on directly as PostScript. - -\item - Dictionaries when including raw PostScript have changed. See appendix of -User's Guide for details. - -\item - "\psset{unit=dim}" always changes "\psunit", "\psxunit" and "\psyunit". To -change only "\psunit", use "runit=dim". - -\item - "border" parameter affects closed curves. - -\item The "hatchsep" parameter now refers to the width of the space between -the lines, rather than the distance between the middle of the lines. -\end{itemize} - -\renewcommand{\EveryVerbatimLine}{} -\renewcommand{\VerbatimFont}{\small\tt} -\renewcommand{\VerbatimFuzz}{2cm} - -\section{VERSION 0.92} - -\subsection{Incompatible changes} - -\begin{Verbatim} - ! V0.91 had two curve interpolation algorithsm: \pscurve and \psdoodle - (and variants). These have been merged into a single algorithm retaining - the names \pscurve, etc. Now the three curvature parameter has three - numbers: - num1 num2 num3 - When num3 is 0 (the default), you get the old \psdoodle algorithm, and - and num1 and num2 act just like the old doodature parameter. When - num3=-1, you get the old \pscurve algorithm, but positive values are - usually nicer. - - If you have used \pscurve or its variants, the shape of the curves - will change under 0.92. If you have also used the curvature - parameter, you will get errors because the old curvature parameter is - a single number and the new curvature parameter consists of 3 numbers. - - If you have used \psdoodle or its variants, then you can either search - and replace doodle->curve and your use of doodature (which had 2 numbers) - to curvature (which has 3 number), or you can put the following in the - customization section of pstricks.con: - \let\psdoodle\pscurve - \let\psedoodle\psecurve - \let\pscdoodle\psccurve - \def\psset@doodature#1{\psset@curvature{#1 0}} - - ! In \psdblframebox: The inner frame now has \pslinewidth, and the outer - frame now has width (dblframewidth x \pslinewidth), where dblframewidth is - a new graphics parameter whose default value is 2. - - ! The angle, angleA and angleB parameters no longer apply to - \ncarc, and the default values have been changed to 0. For - \ncarc, the angle is now controlled by the arcangle, arcangleA - and arcangleB parameters. The default is still 8. - - ! \multido has been off-loaded to the file multido.tex. The syntax has - been changed to make it consistent with \psmultiput and LaTeX's - \multiput: The variable declarations are now the first argument - and the number of repetitions are now the second argument. Also, - for number variables, the initial value and increment must now - have the same number of digits to the right of the decimal, - unless the initial value is an integer. There is no * version. - Instead, the contents is never grouped, and there is even a variant - that doesn't group the whole macro. See multido.ps, which is distributed - with PSTricks, for details. - - ! 'diamond', 'diamond*', and 'x' dotstyles are gone. Use dotangle - parameter instead. -\end{Verbatim} - -\subsection{New features} - -\begin{Verbatim} - + New dot style: |. - - + New graphics objects: \pscustom. - - + New box framing macros: \psovalbox, \pscirclebox. - - + New box scaling macro: \scaleboxto. - - + New nodes: \ovalnode, \circlenode. - - + New node connection: \ncdiagg. - - + New loop macro: \multips. - - + New graphics parameters: dotscale, dotangle, dblframewidth. - - + New arrow styles: c and C. - - + \SpecialCoor allows using nodes as coordinates and mixing - coordinates. -\end{Verbatim} - -\subsection{Other changes} - -\begin{Verbatim} - * arrowscale parameter allows non-square scaling. - - * Documentation has been greatly improved. - - * A bug that caused problems with Arbortext's dvips (previously - listed in pstricks.bug) was fixed. - - * Memory stats with LaTeX's article style: - 43290 words of memory - 2895 multiletter control sequences -\end{Verbatim} - -\section{VERSION 0.91} - -\subsection{Incompatible changes} - -\begin{Verbatim} - ! \dbox and \rotate eliminated. - - ! \psput replaced by \rput, with new syntax: - OLD: \psput[angle](x,y){stuff} - NEW: \rput[ref point]{angle}(x,y){stuff} - \OldPsput sets up \psput with the old syntax (this may disappear some - day; keep it in a safe place if you expect to need it for a long time). - - ! System for specifying angles for nested rotations with \psput has changed. - OLD: p0{angle}, p1{angle}, p2{angle}, etc. - NEW: *angle works like p0{angle}; p1{angle} capability eliminated. - N, S, E and W have same meaning as before. - - ! enddotsize parameter changed to dotsize. - - ! For specifying the origin as the baseline for the \pspicture - environment, leave the optional argument [] empty (rather than - [o]). - - ! B is not allowed as the y-coordinate when setting the reference point - in \rput using coordinates. E.g., [Bl] and [B] are OK, but [.3,B] is - not. - -\end{Verbatim} - -\subsection{New features} - -\begin{Verbatim} - + cornersize parameter added, for specifying whether radius of corners - in \psframe and related box macros is given in relative terms (using - framearc) or absolute terms (using linearc). - - + \psclip and \clipbox macros added. - - + \Cartesian and \Polar commands added, for switching coordinate - systems. - - + border=dim parameter added, for giving appearance of one line - crossing over another. - - + showpoints=bool parameter added. If true, a dot is placed at appropriate - coordinates. - - + \psdots graphics object added. - - + \psarc graphics object added. - - + \parabola graphics object added. - - + \pscurve, \psccurve, \psecurve, \psdoodle, \psedoodle, and \pscdoodle - graphics objects added. - - + \qline and \qdisk graphics objects added. - - + \psplot, \parametericplot and \listplot graphics objects added. - - + node connection (e.g., tree) macros added!! -\end{Verbatim} - -\subsection{Other changes} - -\begin{Verbatim} - * \sunpatch not needed anymore. - - * PostScript header file (if being used) is included at the beginning, - rather than on demand. - - * In spite of the many new features, the input file is smaller in bytes, - and runs significantly faster (at least if used with a header file). - The macros use up slightly more words of memory, and significantly - more command sequences. Here are the stats with LaTeX's article - style: - 41586 words of memory - 2966 multiletter control sequences -\end{Verbatim} - -\section{VERSION 0.9} - -Much internal code was changed, and additional features were added. - -\end{document} -%% END changes.tex diff --git a/Master/texmf-dist/doc/generic/pstricks/examples/chartest.pdf b/Master/texmf-dist/doc/generic/pstricks/examples/chartest.pdf deleted file mode 100644 index d42fc926130..00000000000 Binary files a/Master/texmf-dist/doc/generic/pstricks/examples/chartest.pdf and /dev/null differ diff --git a/Master/texmf-dist/doc/generic/pstricks/examples/chartest.tex b/Master/texmf-dist/doc/generic/pstricks/examples/chartest.tex deleted file mode 100644 index cf9a608161a..00000000000 --- a/Master/texmf-dist/doc/generic/pstricks/examples/chartest.tex +++ /dev/null @@ -1,25 +0,0 @@ -%% BEGIN chartest.tex -%% PSTricks test file for charpath.tex. -%% Run with Plain TeX. - -\input pstricks -\input pst-text - -% phvb should be name of Helvetica-Bold tfm or vf file: -\font\bighelv=phvb at 70pt -\bighelv - -\vskip 1in - -\pscharpath[linestyle=dotted]{Denis Girous} - -\vskip 1in - -\pscharpath[fillstyle=crosshatch]{Denis Girous} - -\vskip 1in - -\pscharpath[fillstyle=solid,fillcolor=red]{Denis Girous} - -\bye -%% END chartest.tex diff --git a/Master/texmf-dist/doc/generic/pstricks/examples/denis1.pdf b/Master/texmf-dist/doc/generic/pstricks/examples/denis1.pdf deleted file mode 100644 index c356d7af123..00000000000 Binary files a/Master/texmf-dist/doc/generic/pstricks/examples/denis1.pdf and /dev/null differ diff --git a/Master/texmf-dist/doc/generic/pstricks/examples/denis1.tex b/Master/texmf-dist/doc/generic/pstricks/examples/denis1.tex deleted file mode 100644 index 2818fcb74f0..00000000000 --- a/Master/texmf-dist/doc/generic/pstricks/examples/denis1.tex +++ /dev/null @@ -1,41 +0,0 @@ -%% BEGIN denis1.tex -% PSTricks sample that combines -% \pscharpath, \pstextpath, and gradient fillstyle. - -% Run with Plain TeX. - -% Takes a long time to print. - -\hsize 9in -\vsize 6.5in -\special{landscape} % works with Rokicki's dvips. - -\input pstricks -\input pst-text -\input pst-grad - -% phvb should be name of Helvetica-Bold tfm or vf file: -\font\bighelv=phvb at 5in -\font\smallhelv=ptmr at 8pt - -\newcount\mycount -\parindent 0pt - -\null -\vfill - -\pstextpath(0,-8pt)% - {\pscharpath*[linestyle=none,fillstyle=gradient, - gradangle=45,gradmidpoint=.5]{\bighelv D G}}% - {\smallhelv - \mycount=70 - \loop - \advance\mycount -1 - \ifnum\mycount>0 - Denis Girou - \repeat} - -\vfill - -\bye -%% END denis1.tex diff --git a/Master/texmf-dist/doc/generic/pstricks/examples/denis2.pdf b/Master/texmf-dist/doc/generic/pstricks/examples/denis2.pdf deleted file mode 100644 index b24a0dcde42..00000000000 Binary files a/Master/texmf-dist/doc/generic/pstricks/examples/denis2.pdf and /dev/null differ diff --git a/Master/texmf-dist/doc/generic/pstricks/examples/denis2.tex b/Master/texmf-dist/doc/generic/pstricks/examples/denis2.tex deleted file mode 100644 index 0c5a4f3a4ba..00000000000 --- a/Master/texmf-dist/doc/generic/pstricks/examples/denis2.tex +++ /dev/null @@ -1,36 +0,0 @@ -%% BEGIN denis2.tex -% PSTricks sample that combines -% \pscharpath and \psclip. - -% Run with Plain TeX. - -\hsize 9in -\vsize 6.5in -\special{landscape} % works with Rokicki's dvips. - -\input pstricks -\input pst-text - -% phvb should be name of Helvetica-Bold tfm or vf file: -\font\bighelv=phvb at 5.5in -\font\smallrm=ptmr at 10pt - -\newcount\mycount -\parindent 0pt - -\vglue 1in - -\pscharclip[linewidth=2pt]{\rput[tl](0,0){\bighelv DG}} - \rput[t]{45}(0,0){\vbox{% - \hsize 12in - \smallrm - \mycount=1000 - \loop - \advance\mycount -1 - \ifnum\mycount>0 - Denis Girou - \repeat}} -\endpscharclip - -\bye -%% END denis2.tex diff --git a/Master/texmf-dist/doc/generic/pstricks/examples/filetest.dat b/Master/texmf-dist/doc/generic/pstricks/examples/filetest.dat deleted file mode 100644 index 68945e6e95e..00000000000 --- a/Master/texmf-dist/doc/generic/pstricks/examples/filetest.dat +++ /dev/null @@ -1,71 +0,0 @@ -%% BEGIN filetest.dat -[ -{{0, 0}, {0.1, 0.489217}, {0.2, 0.914933}, - - {0.3, 1.21952}, {0.4, 1.35655}, {0.5, 1.29517}, - - {0.6, 1.02301}, {0.7, 0.547479}, {0.8, -0.104732}, - - {0.9, -0.889868}, {1., -1.75088}, {1.1, -2.62238}, - - {1.2, -3.4364}, {1.3, -4.12831}, {1.4, -4.64256}, - - {1.5, -4.93756}, {1.6, -4.98935}, {1.7, -4.7937}, - - {1.8, -4.36653}, {1.9, -3.74246}, {2., -2.97178}, - - {2.1, -2.11599}, {2.2, -1.24239}, {2.3, -0.418164}, - - {2.4, 0.295512}, {2.5, 0.84882}, {2.6, 1.2076}, - - {2.7, 1.35627}, {2.8, 1.29903}, {2.9, 1.0593}, - - {3., 0.677496}, {3.1, 0.207184}, {3.2, -0.289882}, - - {3.3, -0.749475}, {3.4, -1.11083}, {3.5, -1.32228}, - - {3.6, -1.34604}, {3.7, -1.16179}, {3.8, -0.768677}, - - {3.9, -0.185544}, {4., 0.550574}, {4.1, 1.38761}, - - {4.2, 2.263}, {4.3, 3.1091}, {4.4, 3.85919}, - - {4.5, 4.45329}, {4.6, 4.84347}, {4.7, 4.99808}, - - {4.8, 4.90456}, {4.9, 4.5705}, {5., 4.02303}, - - {5.1, 3.30639}, {5.2, 2.47802}, {5.3, 1.60352}, - - {5.4, 0.750856}, {5.5, -0.0156125}, {5.6, -0.640751}, - - {5.7, -1.08345}, {5.8, -1.32014}, {5.9, -1.34676}, - - {6., -1.17893}, {6.1, -0.850365}, {6.2, -0.409711}, - - {6.3, 0.084022}, {6.4, 0.566914}, {6.5, 0.97605}, - - {6.6, 1.25533}, {6.7, 1.36069}, {6.8, 1.2642}, - - {6.9, 0.956782}, {7., 0.449173}, {7.1, -0.228866}, - - {7.2, -1.03104}, {7.3, -1.89854}, {7.4, -2.76511}, - - {7.5, -3.56294}, {7.6, -4.22854}, {7.7, -4.70839}, - - {7.8, -4.96365}, {7.9, -4.97357}, {8., -4.73734}, - - {8.1, -4.27417}, {8.2, -3.62157}, {8.3, -2.83204}, - - {8.4, -1.96848}, {8.5, -1.09857}, {8.6, -0.288905}, - - {8.7, 0.400909}, {8.8, 0.92342}, {8.9, 1.24743}, - - {9., 1.36064}, {9.1, 1.27057}, {9.2, 1.00372}, - - {9.3, 0.602995}, {9.4, 0.123725}, {9.5, -0.371511}, - - {9.6, -0.818656}, {9.7, -1.1581}, {9.8, -1.34019}, - - {9.9, -1.32988}, {10., -1.11003}} -] -%% END filetest.dat diff --git a/Master/texmf-dist/doc/generic/pstricks/examples/filetest.pdf b/Master/texmf-dist/doc/generic/pstricks/examples/filetest.pdf deleted file mode 100644 index dac3755ff38..00000000000 Binary files a/Master/texmf-dist/doc/generic/pstricks/examples/filetest.pdf and /dev/null differ diff --git a/Master/texmf-dist/doc/generic/pstricks/examples/filetest.raw b/Master/texmf-dist/doc/generic/pstricks/examples/filetest.raw deleted file mode 100644 index 69a459f7e7d..00000000000 --- a/Master/texmf-dist/doc/generic/pstricks/examples/filetest.raw +++ /dev/null @@ -1,6 +0,0 @@ -%% BEGIN filetest.raw -% test of \rawfile, with testfile.tex -0 0 moveto -100 100 lineto -100 0 lineto -%% END filetest.raw diff --git a/Master/texmf-dist/doc/generic/pstricks/examples/filetest.tex b/Master/texmf-dist/doc/generic/pstricks/examples/filetest.tex deleted file mode 100644 index 52ac7732d2b..00000000000 --- a/Master/texmf-dist/doc/generic/pstricks/examples/filetest.tex +++ /dev/null @@ -1,84 +0,0 @@ -%% BEGIN filetest.tex -% -% This is test file for some of the PSTricks commands that -% read from and write to files. -% -% Run with plain tex. -% -% You must have the epsf.tex macros, which are distributed with -% Rokicki's dvips, and change the reference to \epsf below. -% -% This inputs filetest.raw, filetest.dat and filetest.eps. -% It also write filetest.eps. -% -% If using Rokicki's dvips v5.47 or later, try -% -% dvips filetest -E-o -% -% to create an eps file filetest.ps from the whole picture. - -\input pstricks -\input pst-eps -\input pst-plot -\input epsf - -\TeXtoEPS % Make an EPS picture out of .dvi file, with dvips -E. - \pspicture(-5,-10)(10,10) - - % Test two similar ways to use data from a file: - % \fileplot - \AltClipMode - \psclip{\psframe[linestyle=none](0,-10)(10,10)} - \pscustom{% - \fileplot{filetest.dat} - \gsave - \lineto(100,100) - \lineto(0,100) - \closedshadow - \grestore} - \endpsclip - - \psaxes(0,0)(-5,-10)(10,10) - - % And \readdata and \dataplot: - \readdata\mydata{filetest.dat} - \dataplot[plotstyle=dots,swapaxes=true]{\mydata} - - % Save some data: - - \savedata{\total}[ - {{0,163},{1,187},{2,166},{3,232},{4,237},{5,201},{6,196},{7,203}}] - \savedata{\general}[ - {7,193}{6,182}{5,167}{4,153}{3,129}{2,108}{1,101}{0,104}] - - % Now make an EPS file from the graphics objects: - \PSTtoEPS[bbury=5cm,bburx=10.5cm, - bblly=2cm,bbllx=0cm,makeeps=all]{filetest.eps}{% - - % Now when I concatenate \total and \general, I get the points that - % delineate the boundary for the area you want to fill. - - \psyunit=.02cm - \psxunit=1.5cm - - \pscustom[plotstyle=curve,linestyle=none,fillstyle=solid, - fillcolor=gray]{\listplot{\general}\listplot[liftpen=1]{\total}} - \psset{plotstyle=curve,showpoints=true,dotscale=1.5} - \listplot[dotstyle=pentagon*]{\total} - \listplot[dotstyle=triangle]{\general} - } % end \PSTtoEPS - - % Now use the EPS file just created: - \rput[bl](-1,-10){\psdblframebox{\epsffile{filetest.eps}}} - - % Now try inputting raw ps code with \pscustom: - \pscustom[shadowsize=5pt,origin={5,4}]{% - \file{filetest.raw} - \closepath - \closedshadow} - - \endpspicture -\endTeXtoEPS - -\bye -%% END filetest.tex diff --git a/Master/texmf-dist/doc/generic/pstricks/examples/pst-test.pdf b/Master/texmf-dist/doc/generic/pstricks/examples/pst-test.pdf deleted file mode 100644 index 947988f698c..00000000000 Binary files a/Master/texmf-dist/doc/generic/pstricks/examples/pst-test.pdf and /dev/null differ diff --git a/Master/texmf-dist/doc/generic/pstricks/examples/pst-test.tex b/Master/texmf-dist/doc/generic/pstricks/examples/pst-test.tex deleted file mode 100644 index 890af15b8fc..00000000000 --- a/Master/texmf-dist/doc/generic/pstricks/examples/pst-test.tex +++ /dev/null @@ -1,126 +0,0 @@ -%%%%%%%%%%%%%%%%%%% pst-test.tex %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% Test file for pstricks.tex, v0.93 and maybe later versions. -%% -%% Run with Plain TeX. -%% -%% PAGE 1: Pure graphics objects. These us \pstunit and \pstverb. -%% -\input pstricks -\input pst-node - -\newpsobject{mygrid}{psgrid}{subgriddiv=1,griddots=10,gridlabels=7pt} -\hbox{}\vfill - -\pspicture(-1,-1)(9,2)\mygrid -\psline[linewidth=1.5pt,linestyle=dotted]{**-)}(2.5,1.5) -\psline[linewidth=2pt,linestyle=dashed, - linearc=.5,linecolor=gray]{|->}(3,-.5)(5.5,1.8)(7,-1) -\qline(9,-1)(8,2) -\endpspicture - -\vfill - -\pspicture(-1,-1)(9,2)\mygrid -\qdisk(0,0){1} -\pswedge[linecolor=gray,fillstyle=solid]{.8}{0}{70} -\pscircle[linewidth=2pt,linestyle=dashed](4,.5){1.5} -\psellipse[fillstyle=crosshatch*,fillcolor=lightgray] - (7.5,.5)(1,1.5) -\endpspicture - -\vfill - -\pspicture(-1,-1)(9,3)\mygrid -\parabola*(0,0)(1,3) -\parabola[xunit=.01]{<->}(900,3)(600,-1) -\endpspicture - -\vfill - -\eject - -%% PAGE 2: Color (using \pstVerb) and rotation (using \pstVerb and \pstrotate). - -\hbox{}\vfill - -Here is {\gray some gray text } - -\vskip 1cm -Here is a lightgray line:{\lightgray \hrulefill} - -\vskip 1cm -And a dark gray blob: - -{\darkgray \hrule height 1cm width 5 cm } -\vfill - -\centerline{ -\rotateleft{Left} \rotatedown{Down} \rotateright{Right} -\psscalebox{2}{Big} \psscalebox{1 -1}{Flip}} - -\vfill - -\rput[l]{-45}{This runs diagonally down and to the right} -\rput{45}(2in,0){This runs up to the right} - -\vfill - -\eject - -%% PAGE 3: Nodes and node connections. These use \pstVerb, \pstverbscale, -%% and maybe \pstrotate. - -\null -\vfill - -$$ -\matrix{% - &\rnode{a}{A}\cr - \noalign{\vskip 2cm}% - \rnode{b}{B}\qquad&\rnode{c}{C}\cr} -\psset{nodesep=3pt} -\everypsbox{\scriptstyle} -\ncline{->}{a}{b}\Bput{f} -\ncline{->}{a}{c}\Aput{g} -\ncline[linestyle=dotted]{->}{b}{c}\Aput{h} -$$ - -\vfill - -\vskip 2cm - -\cnode*(0,0){3pt}{A} -\cnode*(4,2){3pt}{B} -\ncline[nodesep=3pt]{A}{B} -\mput*{1} - -\vfill - -\pspicture(0.4,.2)(9.8,6.2) - \rput(2,6){\rnode{G}{\psframebox{GOAT}}} - \rput(2,.5){\rnode{I}{\psframebox{GOAT}}} - \ncangles[angleA=90, angleB=180, nodesepB=3pt, linearc=3pt, - armA=2cm]{<-**}{I}{G} - \lput*(2.5){Doom} - \aput(.5){Zoom} - \SpecialCoor - \rput{10}(7;30){\rnode{A}{\psframebox{Polar Coor}}} - \rput(5;10){\rnode{B}{\psframebox{Polar Coor}}}% - \ncline{->}{A}{B} - \mput{\pnode{Y}} - \cnodeput[linewidth=1.5pt](9.5,6){H}{H} - \cnodeput[linewidth=1.5pt](8,1){M}{M} - \newpsobject{myarc}{ncarc}{nodesep=3pt,offset=2pt,arrows=->} - \myarc{H}{M} - \mput*{r} - \myarc{M}{H} - \mput*{l} - \lput(.75){\pnode{Z}} - \nccurve[angle=135, ncurv=1.8]{Y}{Z} - \aput{:U}{Doom} -\endpspicture - -\vfill - -\bye -%% END pst-test.tex diff --git a/Master/texmf-dist/doc/generic/pstricks/examples/samples.pdf b/Master/texmf-dist/doc/generic/pstricks/examples/samples.pdf deleted file mode 100644 index 18cf8a44824..00000000000 Binary files a/Master/texmf-dist/doc/generic/pstricks/examples/samples.pdf and /dev/null differ diff --git a/Master/texmf-dist/doc/generic/pstricks/examples/samples.tex b/Master/texmf-dist/doc/generic/pstricks/examples/samples.tex deleted file mode 100644 index 57b8ad0d8ac..00000000000 --- a/Master/texmf-dist/doc/generic/pstricks/examples/samples.tex +++ /dev/null @@ -1,443 +0,0 @@ -%% samples.pst : PSTricks samples. Run with LaTeX. -%% Last edited: 93/03/03 - -\documentclass[11pt,a4paper]{article} - -\makeatletter - -%% INPUT FANCYBOX.STY HERE TO CHECK FILE VERSION. - -\usepackage[T1]{fontenc} -\usepackage[dvips]{geometry} -\geometry{tmargin=2cm,bmargin=3.3cm,headheight=20pt,headsep=10pt, -textheight=9in, footskip=.625in} -\usepackage[scaled]{luximono} -\usepackage{mathpazo} -\usepackage{pstricks,pst-node,pst-coil,fancybox} - -\let\Ldots\ldots -\def\ldots{\mbox{$\Ldots$}} % In case we're using AmS-LaTeX. -\makeatletter -\def\ps@samples{% - \def\@oddhead{\bf PSTricks samples \hfill \thepage}% - \def\@oddfoot{}} -\makeatother -\pagestyle{samples} - -\newbox\sample - -\def\example{\setbox\sample\vbox\bgroup} -\def\endexample{% - \egroup - \vbox{\vskip 1cm - \hbox{\psframebox[boxsep=false,linewidth=2pt,linearc=.5cm,framesep=.5cm, - cornersize=absolute]{\box\sample}} - \vskip 1cm}} -\def\rquote#1{{\begin{quote}\vskip-\topsep - \raggedright\hskip -2em#1\end{quote}}} -\def\creator#1{\rquote{{\bf Creator:}\hskip 1em#1}} -\def\title#1{\rquote{{\bf Description:}\hskip 1em#1}} - -\def\N#1{{\tt\string#1}} - -\begin{document} - -\begin{example} - \creator{Gisli Ottarsson \tt } - \title{Calvin and Hobbes} - - $$ - \pspicture(-3.,29)(3.,38) - \def\anglei{5} - \def\angleii{-5} - \psset{linewidth=1pt,hatchwidth=0.8pt} - \def\tower#1{% - \psline[linewidth=2pt](0,0)(0,7) - \psset{fillstyle=solid,dimen=middle,linewidth=1.5pt} - \cnode(0,2){.5}{A#1} - \cnode(0,5){.8}{B#1} - \cnode(0,7){.5}{C#1} - \psset{linestyle=solid,linewidth=1pt} - \psline{->}(0,1)(2,1) - \SpecialCoor - \rput([angle=90]B#1){\psline{->}(2,0)} - \rput([angle=90]C#1){\psline{->}(2,0)}}% - \pscustom[linewidth=2pt]{% - \psarc(0,0){30}{80}{100} - \gsave - \psarcn(0,0){29.25}{100}{80} - \fill[fillstyle=vlines] - \grestore} - \rput{\anglei}{\rput(0,30){% - \psset{fillcolor=lightgray} - \tower{1}}} - \rput{\angleii}{\rput(0,30){% - \psset{linestyle=dashed} - \tower{2}}} - \psset{linewidth=1.5pt,coilwidth=.45} - \nczigzag{B1}{A2} - \aput[.25](.85){$k_{c_3}$} - \ncline[linecolor=white,linewidth=.6]{A1}{B2} - \nczigzag{A1}{B2} - \bput[.3](.85){$k_{c_3}$} - \nczigzag{A1}{A2} - \bput[.3](.5){$k_{c_1}$} - \nczigzag{B1}{B2} - \aput[.3](.5){$k_{c_2}$} - \endpspicture - $$ -\end{example} - -\begin{example} - \creator{\tt{leecheng@liapunov.eecs.umich.edu}} - \title{Dripping faucet model.} - - \psset{unit=.4cm} - \begin{center} - \begin{pspicture}(0,-2)(31,12) - \rput(1.5,0){% - \psellipse[linewidth=1pt](8,7)(1,3) - \psframe[linecolor=white,fillstyle=solid,fillcolor=white] - (6.4,6.5)(8,7.5) - \psline[linearc=.3,linewidth=1pt](8,8)(8,7.5)(4,7.5) - \psbezier[linewidth=1pt](4,7.5)(3,7.5)(3,6.5)(3,5.5) - \psline[linearc=.3,linewidth=1pt](8,6)(8,6.5)(5,6.5) - \psbezier[linewidth=1pt](5,6.5)(4,6.5)(4,6.5)(4,5.5) - \psline[linewidth=1pt](3,5.5)(4,5.5) - \psline[linearc=.3,linewidth=1pt](5,7.5)(5,8)(6,8)(6,7.5) - \psframe[linewidth=1pt](5.3,8)(5.7,8.7) - \psframe[linewidth=1pt,framearc=1,fillstyle=solid, - fillcolor=white](4,8.7)(7,9) - \multirput(3.5,4.8)(0,-1){4}{% - \psbezier[linewidth=.5pt](0,0)(.25,-.4)(-.25,-.4)(0,0)} - \rput[t](5.5,0){Dripping Faucet}} - \rput(20,5){% - \pspolygon[linecolor=white,fillstyle=vlines, - fillcolor=darkgray,hatchsep=.2](1,4.5)(1,4)(4,4)(4,4.5) - \psline[linewidth=2pt](1,4)(4,4) - \psline[linewidth=1.5pt](2.5,4)(2.5,3.5)(2.9,3.3)(2.1,2.9) - (2.9,2.5)(2.1,2.1)(2.9,1.7)(2.1,1.3)(2.5,1.1)(2.5,0.6) - \psframe[linecolor=black,linewidth=1.5pt,fillstyle=solid, - fillcolor=lightgray](1.8,-1)(3.2,.6) - \rput(2.5,-.2){$M$} - \psline{<->}(3.7,-.9)(3.7,.5) - \psframe[linecolor=black,linewidth=1.5pt,fillstyle=solid, - fillcolor=lightgray](1.8,-3.5)(3.2,-1.9) - \rput(2.5,-2.7){$m$} - \psline{->}(5,1)(5,-1) - \rput[l](5.5,0){$g$} - \psline{->}(3.7,-2)(3.7,-3.4) - \rput[t](2.5,-4){Mathematical Model for} - \rput[t](2.5,-5){a Dripping Faucet} - \rput(-6,-2){% - \psset{linewidth=2pt} - \psline(0,.5)(2,.5) - \psline(0,-.5)(2,-.5) - \psline(1.5,1)(2.5,0)(1.5,-1)}} - \psframe[linewidth=2pt,framearc=.05,linecolor=gray](0,-2.5)(31,12) - \end{pspicture} - \end{center} -\end{example} - -\begin{example} - \creator{\tt{Christian Schytt }} - \title{Primal and dual.} - - \hbox to \hsize{% - % DUAL - \psset{linewidth=0.5pt} - \pspicture(-2,-1)(6,5) - \psline{->}(5,0)\psline{->}(0,4) - % - \qdisk(2,0){2pt} - \rput(2,0){\pnode{Z}} - \uput[dl](2,0){$c_{ij}$} - % - \uput[d](5,0){$p_i-p_j$} - \uput[r](0,4){\parbox{2cm}{Dual cost \\ of arc $(i,j)$}} - \uput[l](0,4){$q_{ij}(p_i-p_j)$} - % - \rput(.5,1.5){\pnode{U}} - \rput(2.5,-1.5){\pnode{V}} - \ncline{Z}{U}\mput{\pnode{X}} - \ncline{Z}{V}\mput{\pnode{Y}} - % - \rput[b](2,2){\rnode{A}{Slope: ${}-l_{ij}$}} - \ncline{->}{A}{X} - \rput[b](0,-0.75){\rnode{B}{Slope: ${}-u_{ij}$}} - \ncline{->}{B}{Y} - \endpspicture\hfill - % PRIMAL - \pspicture(0,-1)(6,5) - \psline{->}(5,0)\psline{->}(0,4) - \qdisk(1.5,0){2pt} - \qdisk(3.5,0){2pt} - \uput[d](1.5,0){$l_{ij}$} - \uput[d](3.5,0){$u_{ij}$} - \uput[d](5,0){$f_{ij}$} - \uput[r](0,4){\parbox{2cm}{\raggedright Primal cost \\ of arc $(i,j)$}} - % - \rput(1.5,1){\pnode{A}} - \rput(3.5,2){\pnode{B}} - \ncline{-}{A}{B}\mput{a\pnode{Y}} - % - \psline[linestyle=dashed]{-}(1.5,0)(1.5,3) - \psline[linestyle=dashed]{-}(3.5,0)(3.5,3) - % - \rput[l](4,1){\rnode{X}{Slope: $c_{ij}$}} - \ncline{->}{X}{Y} - \endpspicture - }\medskip -\end{example} - -\begin{example} - \creator{Gisli Ottarsson \tt } - - \begin{center} - \psset{unit=1in,linewidth=1pt,hatchwidth=0.8pt} - \pspicture(1,0)(5.,3) - \psline[linewidth=2pt,arrowscale=1.5]{->}(1.5,2.4)(3.5,2.4) - \psellipse[fillcolor=darkgray,fillstyle=solid](1.5,1.5)(.5,1.3) - \psellipse[fillcolor=white,fillstyle=solid](1.4,1.5)(.5,1.3) - \psline(1.5,2.8)(1.4,2.8) - \psline(1.5,0.2)(1.4,0.2) - \psline[linewidth=1.5pt,linestyle=dashed](1.3,2.4)(1.7,2.4) - \pscircle*(1.3,2.4){3pt} - \rput(1.3,2.2){$(r_o,\theta_o)$} - \rput(3.3,2.65){$u(r_o,\theta_o)$} - \psline[linewidth=2pt,arrowscale=1.5]{|->}(2.5,0.65)(4.5,0.65) - \rput(4.5,0.85){$w(x_o)$} - \psline{<->}(1.93,1.0)(2.5,.65) - \rput(2.2,.65){$x_o$} - \pscircle[fillcolor=lightgray,fillstyle=solid](1.93,1.2){0.05} - \pspolygon[fillcolor=lightgray,fillstyle=solid,linecolor=lightgray] - (1.935,1.24)(3.5,.38)(3.5,.22)(1.935,1.16) - \pscircle[fillcolor=lightgray,fillstyle=solid](2.53,0.855){0.058} - \pscircle[fillcolor=lightgray,fillstyle=solid,linecolor=lightgray] - (2.545,0.845){0.056} - \pscircle[fillcolor=gray,fillstyle=solid](3.5,.3){0.08} - \psline(1.93,1.245)(3.5,.38) - \psline(3.5,.22)(1.92,1.156) - \endpspicture - \end{center} -\end{example} - - -\begin{example} -\creator{tvz} -\title{Another example of \N\pspolygon. The coordinates where determined - using \N\psgrid, after making the table.\label{ex-pspolygon}} - -\begin{center} - \def\arraystretch{2}\tabcolsep=10pt\small\bf - {\em Result is true for values in shaded region:}\\[5pt] - \pspolygon[linearc=.4,fillcolor=lightgray,fillstyle=solid] - (3,2)(5.9,2)(5.9,0)(7.4,0)(7.4,-2)(1.45,-2)(1.45,0)(3,0) - \begin{tabular}{cccccc} - X11 & X12 & X13 & X14 & X15 & X16\\ - X21 & X22 & X23 & X24 & X25 & X26\\ - X31 & X32 & X33 & X34 & X35 & X36\\ - X41 & X42 & X43 & X44 & X45 & X46 -\end{tabular} -\end{center} - -\end{example} - - -\begin{example} - \creator{tvz} - \title{Nodes.\label{ex-nodes1}} - - \begin{center} - \begin{pspicture}(0,-1)(8,3) - \psset{arrows=->, nodesep=6pt} - \rput(3,3){\rnode{A}{Returns to Scale}} - \rput(1,1){\rnode{B}{Production}} - \rput(5,1){\rnode{C}{Managing}} - \rput(3,-1){\rnode{D}{Supervision}} - \rput(7,-1){\rnode{E}{Information Processing}} - \ncline{A}{B} \ncline{A}{C} \ncline{C}{D} \ncline{C}{E} - \end{pspicture} - \end{center} -\end{example} - - -\begin{example} - \creator{tvz} - \title{Another example of nodes.\label{ex-nodes3}} - - \begin{center} - \begin{pspicture}(0,-1)(7.5,1) - \pnode{a} - \cnodeput(1.5,0){b}{0} - \cnodeput(3,0){c}{1} - \cnodeput(4.5,0){d}{2} - \cnodeput(6,0){e}{3} - \scriptsize - \psset{arrows=->,nodesep=0} - \pslabelsep=3pt - \ncline{a}{b}\Aput{start} - \ncline{b}{c}\Bput{a} - \ncline{c}{d}\Aput{b} - \ncline{d}{e}\Aput{b} - \psset{arm=.6,linearc=.4,angleA=0,angleB=90} - \ncangles{b}{b}\Aput{b} - \ncangles{e}{b}\Aput{b} - \psset{angleB=-90} - \ncangles{c}{c}\Bput{a} - \ncangles{d}{c}\Bput{a} - \ncangles{e}{c}\Bput{a} - \end{pspicture} - \end{center} -\end{example} - -\begin{example} - \creator{tvz} - \title{Nonsense examples of nodes.\label{ex-nodes4}} - - The tempestuous \rnode{E}{Maggie} and her alcoholic husband - \rnode{A}{Brick} \ldots - \vskip 2cm - \cnode*{3pt}{D}\hskip 1em Much Ado about \rnode{B}{Nothing}. - \vskip 1in - and \rnode{J}{\psframebox{another}} another - \rnode{K}{\psframebox{another}} another another \rnode{C}{book} - \ncline[linecolor=darkgray,linewidth=1.5pt,nodesep=3pt]{->}{A}{B} - \ncline[nodesep=3pt,linestyle=dashed,border=3pt]{->}{C}{E} - \ncangle[nodesep=1pt,angleA=-90,angleB=150, armB=3cm]{D}{C} - \ncbar[angle=90]{<-oo}{J}{K} -\end{example} - - -\begin{example} - \creator{tvz} - \title{More node nonsense.\label{ex-nodes5}} - - \begin{center} - \begin{pspicture}(0.4,.2)(9.8,6.2) - \rput(2,6){\rnode{G}{\psframebox{GOAT}}} - \rput(2,.5){\rnode{I}{\psframebox{GOAT}}} - \ncangles[angleA=90, angleB=180, nodesepB=3pt, linearc=3pt, - armA=2cm]{<-**}{I}{G} - \lput*(2.5){Doom} - \bput(.5){Zoom} - \SpecialCoor - \rput{10}(7;30){\rnode{A}{\psframebox{Polar Coor}}} - \rput(5;10){\rnode{B}{\psframebox{Polar Coor}}} - \ncline{->}{A}{B} - \mput{\pnode{Y}} - \cnodeput[linewidth=1.5pt](9.5,6){H}{H} - \cnodeput[linewidth=1.5pt](8,1){M}{M} - \newpsobject{myarc}{ncarc}{nodesep=3pt,offset=2pt,arrows=->} - \myarc{H}{M}\mput*{r} - \myarc{M}{H}\mput*{l}\lput(.75){\pnode{Z}} - \nccurve[angleA=135, angleB=135, ncurv=1.8]{Z}{Y}\bput{:D}{Doom} - \end{pspicture} - \end{center} -\end{example} - -\begin{example} - \creator{tvz} - \title{} - - \[ - \def\arraystretch{3.5} - \arraycolsep .7cm - \begin{array}{ccc} - \rnode{a}{U}\\ - & \rnode{b}{X\times_Z Y} & \rnode{c}{X}\\ - & \rnode{d}{Y} & \rnode{e}{Z} - \end{array} - \psset{arrows=->,nodesep=3pt} - \pslabelsep 3pt - \everypsbox{\scriptstyle} - \ncLine{a}{b}\Bput{y} - \ncLine{a}{c}\Aput{x} - \ncLine{b}{d}\Bput{q} - \ncLine{b}{c}\Bput{p} - \ncLine{c}{e}\Aput{f} - \ncLine{d}{e}\Bput{g} - \] -\end{example} - -\begin{example} - \creator{tvz} - \title{Several ways to connect nodes to themselves} - - \def\arrow(#1,#2){\ncline{->}{#1}{#2}} - $$ - \begin{array}{c@{\hskip 1.5cm}c@{\hskip 1.5cm}c} - \rnode{a}{\bullet} & \rnode{b}{\bullet} & \rnode{c}{\bullet}\\[1cm] - \end{array} - \everypsbox{\scriptstyle} - \psset{nodesep=5pt,arm=.6,linearc=.4,angleA=0,angleB=90} - \ncangles{->}{a}{a} - \ncangles{->}{b}{b} - \ncangles{->}{c}{c} - \arrow(a,b) - \arrow(b,c) - \ncarc[arcangleA=-30, arcangleB=-30]{->}{a}{c} - $$ - $$ - \everypsbox{\scriptstyle} - \def\cn#1#2{% - \cnode*{2pt}{#1} - \ncloop[arm=.4,linearc=.39,loopsize=.8,nodesep=5pt,angleB=180] - {->}{#1}{#1} - \Bput{#2}} - \begin{array}{c@{\hskip 1.5cm}c@{\hskip 1.5cm}c} - \cn{a}{1} & \cn{b}{2} & \cn{c}{3}\\[1cm] - \end{array} - \psset{nodesep=5pt,arm=.6,linearc=.4}\arrow(a,b) - \arrow(b,c) - \ncarc[arcangleA=-30, arcangleB=-30]{->}{a}{c} - $$ - $$ - \everypsbox{\scriptstyle} - \def\cn#1#2{% - \cnode*{2pt}{#1} - \nccircle[nodesep=5pt]{->}{#1}{.5} - \Bput{#2}} - \begin{array}{c@{\hskip 1.5cm}c@{\hskip 1.5cm}c} - \cn{a}{1} & \cn{b}{2} & \cn{c}{3}\\[1cm] - \end{array} - \psset{nodesep=5pt,arm=.6,linearc=.4}\arrow(a,b) - \arrow(b,c) - \ncarc[arcangleA=-30, arcangleB=-30]{->}{a}{c} - $$ -\end{example} - -\begin{example} - \creator{tvz} - \title{} - -\centerline{% - \rnode{a}{\psframebox{\Huge A connection}}% - \hskip 1.6cm - \rnode{b}{\psframebox{\Huge Unto another}}} -\ncloop[loopsize=-1cm,arm=.8cm,linearc=.3]{->}{a}{b} -\end{example} - - -\begin{example} - \creator{tvz} - \title{} - - \newbox\mybox - \setbox\mybox=\hbox{% - \psset{unit=4pt} - \pspicture(-2.8,0)(2.8,7.75) - \psset{linewidth=.1} - \psline(-.3,0)(-.3,3) - \psline(.3,0)(.3,3) - \psline(-2,0)(2,0) - \rput{45}(0,2){% - \psframe[framearc=.1,fillstyle=solid](0,0)(4,4) - \psline[linewidth=.4,linearc=.2](1.5,.4)(.4,2.5)(3.6,1.5)(2.5,3.6)} - \psdots[dotstyle=square,dotsize=.4 0](0,7.5) - \endpspicture}% - \centerline{\copy\mybox\hskip 1pt\copy\mybox} -\end{example} - -\end{document} - diff --git a/Master/texmf-dist/doc/generic/pstricks/examples/tp-test.pdf b/Master/texmf-dist/doc/generic/pstricks/examples/tp-test.pdf deleted file mode 100644 index 2e2db9df0e5..00000000000 Binary files a/Master/texmf-dist/doc/generic/pstricks/examples/tp-test.pdf and /dev/null differ diff --git a/Master/texmf-dist/doc/generic/pstricks/examples/tp-test.tex b/Master/texmf-dist/doc/generic/pstricks/examples/tp-test.tex deleted file mode 100644 index 355851eee33..00000000000 --- a/Master/texmf-dist/doc/generic/pstricks/examples/tp-test.tex +++ /dev/null @@ -1,72 +0,0 @@ -%% BEGIN tp-test.tex -%% -%% LaTeX test file for textpath.tex/textpath.sty. -%% -%% To use PostScript fonts with the New Font Selection Scheme: -%% - Include the style option "npsfont". -%% - You may have to change the font file names given below. -%% - "npsfont.sty" is distributed with PSTricks. - -\documentclass[11pt,a4paper]{article} - -\makeatletter - -%% INPUT FANCYBOX.STY HERE TO CHECK FILE VERSION. - -\usepackage{fancybox} -\usepackage[T1]{fontenc} -\usepackage[dvips]{geometry} -\geometry{tmargin=2cm,bmargin=3.3cm,headheight=20pt,headsep=10pt, -textheight=9in, footskip=.625in} -\usepackage[scaled]{luximono} -\usepackage{mathptmx} -\usepackage{pstricks,pst-text} - -\begin{document} -The first sample shows that math works. I let the line be drawn to make the sample clearer. -\begin{verbatim} - \large - \pstextpath[c]% - {\pscurve[linecolor=gray](0,1)(4,3)(6,2)(9,0)(12,1)(15,1)}% - {$S_\alpha=\Omega(\gamma_\beta)$ is a connected snarf and - $B=(\otimes,\rightarrow,\theta)$ is Boolean left subideal.} -\end{verbatim} - -\vskip 3.5cm - -\begin{large} - \pstextpath[c]% - {\pscurve[linecolor=gray](0,1)(4,3)(6,2)(9,0)(12,1)(15,1)}% - {$S_\alpha=\Omega(\gamma_\beta)$ is a connected snarf and - $B=(\otimes,\rightarrow,\theta)$ is Boolean left subideal.} -\end{large} - -\vskip 1cm - -\begin{verbatim} - \psset{linestyle=none} - \pstextpath[c]{\psarcn(0,0){73pt}{180}{0}}% - {Centre National de la} - \pstextpath[c]{\psarc(0,0){73pt}{180}{0}}% - {Recherche Scientifique} -\end{verbatim} - -\begin{center} - \vskip 2cm - \Huge - \psset{linestyle=none} - \pstextpath[c]{\psarcn(0,0){73pt}{180}{0}}% - {Centre National de la} - \pstextpath[c]{\psarc(0,0){73pt}{180}{0}}% - {Recherche Scientifique} - \vskip 2cm -\end{center} - -\begin{center} - \pstextpath[c](0,0){\psarcn[linestyle=none](0,-6){4}{180}{0}}% - {\parbox{3.5in}{In principle, it is possible to use - parbox, but let's see what really happens. It seems - hard to believe that someone would want to do this.}} -\end{center} -\end{document} -%% END tp-test.tex diff --git a/Master/texmf-dist/doc/generic/pstricks/pst-docfull.pdf b/Master/texmf-dist/doc/generic/pstricks/pst-docfull.pdf new file mode 100644 index 00000000000..6666f0a0244 Binary files /dev/null and b/Master/texmf-dist/doc/generic/pstricks/pst-docfull.pdf differ diff --git a/Master/texmf-dist/doc/generic/pstricks/pst-news05.pdf b/Master/texmf-dist/doc/generic/pstricks/pst-news05.pdf new file mode 100644 index 00000000000..c6459f23e10 Binary files /dev/null and b/Master/texmf-dist/doc/generic/pstricks/pst-news05.pdf differ diff --git a/Master/texmf-dist/doc/generic/pstricks/pst-news05.tex b/Master/texmf-dist/doc/generic/pstricks/pst-news05.tex new file mode 100644 index 00000000000..a1ddcc64a64 --- /dev/null +++ b/Master/texmf-dist/doc/generic/pstricks/pst-news05.tex @@ -0,0 +1,403 @@ +\documentclass[12pt]{article} +\usepackage[T1]{fontenc} +\usepackage[latin1]{inputenc} +%\usepackage{geometry} +\usepackage{pst-all} +\usepackage{showexpl} +\usepackage{tabularx,array,longtable} +\SpecialCoor +\usepackage[colorlinks,linktocpage]{hyperref} +\def\UrlFont{\small\ttfamily} +\makeatletter +\def\verbatim@font{\small\normalfont\ttfamily} +\makeatother +%\usepackage{color} +\definecolor{hellgelb}{rgb}{1,1,0.8} +\definecolor{colKeys}{rgb}{0,0,1} +\definecolor{colIdentifier}{rgb}{0,0,0} +\definecolor{colComments}{rgb}{1,0,0} +\definecolor{colString}{rgb}{0,0.5,0} +% +\usepackage{listings} +\lstset{% + language=PSTricks,% + float=hbp,% + basicstyle=\ttfamily\small, % + identifierstyle=\color{colIdentifier}, % + keywordstyle=\color{colKeys}, % + stringstyle=\color{colString}, % + commentstyle=\color{colComments}, % + columns=flexible, % + tabsize=4, % + frame=single, % + extendedchars=true, % + showspaces=false, % + showstringspaces=false, % + numbers=left, % + numberstyle=\tiny, % + breaklines=true, % +% backgroundcolor=\color{hellgelb}, % + breakautoindent=true, % + captionpos=b,% + xleftmargin=0pt% +} + +%\parindent=0pt +\newcommand\verbI[1]{{\small\texttt{#1}}} +\newcommand\CMD[1]{{\texttt{\textbackslash#1}}} +\let\Lcs\CMD +% +%\psset{subgriddiv=0,griddots=5,gridlabels=7pt} +% +\DeclareRobustCommand\cs[1]{\texttt{\char`\\#1}} +\def\PS{PostScript} +% +\begin{document} +\title{\texttt{PSTricks -- 2005}\\ new macros and bugfixes for the +basic packages \Lcs{pstricks}, \Lcs{pst-tree}, and \Lcs{pst-node}} +\author{Herbert Voß\thanks{% +\url{Herbert.Voss@pstricks.de}}} +\date{\today} + +\maketitle + +\begin{abstract} +This new version of \texttt{pstricks.tex} depends on the also new prologue file +\texttt{pstricks.pro} (v 1.01) and pst-dots.pro (v. 2.00), which should go into +the local \TeX-directory \url{$TEXMFLOCAL/dvips/}. +\end{abstract} + + +\tableofcontents + +\clearpage + +\part{General informations} +%-------------------------------------------------------------------------------------- +\section{Color handling} +%-------------------------------------------------------------------------------------- +The new color package \verb+xcolor+ has a lot of interesting features, but it needs +some modification to the code of \verb+pstricks.sty+ and \verb+pstricks.tex+. The +package \verb+pstricks.sty+ superseded the old package \verb+pstcol.sty+, which is +now obsolet. The version on CTAN now does nothing else as loading \verb+pstricks.sty+. + +There are some important facts for using colors inside PSTricks with \LaTeX: + +\begin{itemize} +\item load always \verb+pstricks+ as first package; +\item use always the \LaTeX\ syntax for defining colors and \textbf{not} the PSTricks own one.\\ + \verb+\definecolor ...+ is the correct setting! +\item do not use the PSTricks style for using color, use always \verb+\color{}+. +\end{itemize} + + +\part{\texttt{pstricks} -- package} + + +%-------------------------------------------------------------------------------------- +\section{\texttt{pstricks.sty}} +%-------------------------------------------------------------------------------------- +New otions: + +\begin{description} +\item[\texttt{noxcolor}] load package \verb+color+ instead of \verb+xcolor+; +\item[\texttt{plain}] do nothing else as a \CMD{input\{pstricks\}}; +\item[\texttt{DIA}] a bug fix for the \verb+PSTricks+-export of the garfic program DIA. +\end{description} + + +%-------------------------------------------------------------------------------------- +\section{\texttt{pstricks.pro}} +%-------------------------------------------------------------------------------------- + +this file now contains the PostScript code for arcs of an ellipse. + + +\section{\texttt{pstricks.tex}} +The new version 1.10 has some minor but important changes; it is not compatible +to older versions when using the vertical shift option for the \verb+pspicture+ +environment. + +\subsection{New and modified option for {pspicture}}\label{sec:option} + +Table~\ref{tab:pspicture} shows the two new options for the \verb+pspicture+ environment. + +\begin{table}[htb] +\caption{Optionen der \texttt{pspicture}-Umgebung}\label{tab:pspicture} +\centering +\begin{tabular}{@{}lll@{}} +\textrm{\emph{name}} & \emph{meaning} & \emph{default}\\\hline +\verb+shift+ & vertical shift & $0$ \\ +\verb+showgrid+ & show grid & \verb+false+\\ +\end{tabular} +\end{table} + + +% --------------------------------------------------------------------------------------- +\subsubsection{\texttt{shift}}\label{subsubsec:shift} +% --------------------------------------------------------------------------------------- +This option is the known one from older \texttt{PSTricks} version, but now with the +usual syntax for options. The shift is relative to the height of the defined \verb+pspicture+ +environment, its lower left corner is by deafult on the base line. For older versions +the shift depends with its value to the baseline, a negative value raised up the \verb+pspicture+ +box. Now the \verb+shift+ option works similiar to the known \CMD{raisebox} makro, except that +\verb+shift+ is relative to the box height. A positive \verb+shift+ value raises up the box +and vice versa for a negative value. + +\begin{figure}[htb] +\centering +\textcolor{red}{\rule{5mm}{1pt}}% +\begin{pspicture}[shift=0.5](-0.5,-0.5)(0.5,0.5) + \psframe[linecolor=blue](-0.5,-0.5)(0.5,0.5)\rput(0,0){-0.5} +\end{pspicture}% +\textcolor{red}{\rule{5mm}{1pt}} +\hspace{1cm}% +\textcolor{red}{\rule{5mm}{1pt}}% +\begin{pspicture}(-0.5,-0.5)(0.5,0.5) + \psframe[linecolor=blue](-0.5,-0.5)(0.5,0.5)\rput(0,0){0} +\end{pspicture}\textcolor{red}{\rule{5mm}{1pt}} +\hspace{1cm}% +\textcolor{red}{\rule{5mm}{1pt}}% +\begin{pspicture}[shift=-0.5](-0.5,-0.5)(0.5,0.5) + \psframe[linecolor=blue](-0.5,-0.5)(0.5,0.5)\rput(0,0){0.5} +\end{pspicture}% +\textcolor{red}{\rule{5mm}{1pt}} +\caption{Meaning of the \texttt{shift} option}\label{fig:baseline} +\end{figure} + +%\begin{lstlisting}[caption={Vertikale Verschiebung der Baseline}] +\begin{lstlisting} +\textcolor{red}{\rule{5mm}{1pt}}% +\begin{pspicture}[shift=0.5](-0.5,-0.5)(0.5,0.5) + \psframe[linecolor=blue](-0.5,-0.5)(0.5,0.5)\rput(0,0){-0.5} +\end{pspicture}% +\textcolor{red}{\rule{5mm}{1pt}} +\hspace{1cm}% +\textcolor{red}{\rule{5mm}{1pt}}% +\begin{pspicture}(-0.5,-0.5)(0.5,0.5) + \psframe[linecolor=blue](-0.5,-0.5)(0.5,0.5)\rput(0,0){0} +\end{pspicture}\textcolor{red}{\rule{5mm}{1pt}} +\hspace{1cm}% +\textcolor{red}{\rule{5mm}{1pt}}% +\begin{pspicture}[shift=-0.5](-0.5,-0.5)(0.5,0.5) + \psframe[linecolor=blue](-0.5,-0.5)(0.5,0.5)\rput(0,0){0.5} +\end{pspicture}% +\textcolor{red}{\rule{5mm}{1pt}} +\end{lstlisting} + + +% --------------------------------------------------------------------------------------- +\subsubsection{\texttt{showgrid}}\label{subsubsec:showgrid} +% --------------------------------------------------------------------------------------- +This new version of \texttt{PSTricks} defines internally a special grid style + +\begin{lstlisting} +\newpsstyle{gridstyle}{% + subgriddiv=0,gridcolor=lightgray,griddots=10,gridlabels=8pt} +\end{lstlisting} + +which can be overwritten by the user. This style is only used for the \verb+showgrid+ +option of the \verb+pspicture+ environment. The macro \verb+\psgrid+ doesn't use this predefined +style and works in the usual way. However, the user can use it like all +other self defined styles: \verb+\psgrid[style=gridstyle]+. + + +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}[showgrid=true](-1,0)(2,1) +\end{pspicture} +\end{LTXexample} + +\begin{LTXexample}[width=3.5cm] +\newpsstyle{gridstyle}{% + subgriddiv=2,subgridcolor=lightgray} +\begin{pspicture}[showgrid=true](-1,0)(2,1) +\end{pspicture} +\end{LTXexample} + +\begin{LTXexample}[width=3.5cm] +\newpsstyle{gridstyle}{} +\begin{pspicture}[showgrid=true](-1,0)(2,1) +\end{pspicture} +\end{LTXexample} + +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(-1,0)(2,1) +\end{pspicture} +\end{LTXexample} + +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(-1,0)(2,1) + \psgrid +\end{pspicture} +\end{LTXexample} + +Depending to the internal structure of the \verb+pspicture+ environment it is not possible +to set the \verb+shift+ option global by \CMD{psset}, it must always be locally defined +with optional part of the parameter, as seen in the above examples. + + +%-------------------------------------------------------------------------------------- +\subsection{New arrows} +%-------------------------------------------------------------------------------------- + +\verb+pstricks now contains the missing arrow ends \verb+]-[+ and \verb+)-(+. + +\begin{LTXexample}[width=4cm] +\begin{pspicture}(4,3) + \psset{arrowscale=2,linewidth=1pt} + \psline{]-[}(4,0) + \psline{)-(}(0,1)(4,1) + \psline{)->}(0,2)(4,2) + \psline{]->>}(0,3)(4,3) +\end{pspicture} +\end{LTXexample} + + +%-------------------------------------------------------------------------------------- +\subsection{\Lcs{psdot} and \Lcs{psdots}} +%-------------------------------------------------------------------------------------- +\verb+\psdot*+ and \verb+\psdots*+ are now supported by PSTricks. Both were missing +in the old versions. + + +%-------------------------------------------------------------------------------------- +\subsection{Other changes} +%-------------------------------------------------------------------------------------- +\texttt{pstricks.tex} defined the PostScript subroutines for arcs of an ellipse. +This code now moved into the appropriate \texttt{pstricks.pro}, which holds the +pure PostScript code of \texttt{PSTricks}. This in not important for user until +the newest \texttt{pstricks.pro} \textbf{and} \texttt{pstricks.tex} are installed. + + +\subsection{Bugfixes} +\subsubsection{\texttt{origin}} + +There were several mailings in the past to the \verb+origin+ option, which worked the other +way round than expected. Now the coordinates work realtive to the current origin. + + +\begin{LTXexample}[width=3cm] +\begin{pspicture}(-1,-1)(2,1.25) + \psaxes{->}(0,0)(-1,-1)(2,1.25) + \psset{linewidth=1.5pt} + \parabola[linestyle=dashed](-1,1)(0,0) + \parabola[origin={0.5,-0.5}](-1,1)(0,0) + \qdisk(0.5,-0.5){2pt} +\end{pspicture} +\end{LTXexample} + +\subsubsection{Empty parameter} +\sloppy +To prevent some problems with empty arrow definitions in macros like \verb+\psline[...]{}(..)(...)+, +which makes no sense, but should be possible, there is now a check before setting the values. + + +\subsection{\CMD{psscalebox} and \CMD{psscaleboxto}} +To prevent clashes with the \verb+graphicx+ package, which also defines a \CMD{scalebox} macro +with different syntax, +\verb+PSTricks+ now defines \CMD{psscalebox} and \CMD{psscaleboxto}. For some compatibility reasons the old +names are still supported. With the new names it doesn'r matter if \verb+pstricks+ is loaded before or after +\verb+graphicx+. There are also some other changes: + + +\begin{verbatim} + \scalebox -> \psscalebox + \scaleboxto -> \psscaleboxto + \rotateleft -> \psrotateleft + \rotateright -> \psrotateright + \rotatedown -> \psrotatedown +\end{verbatim} + +%-------------------------------------------------------------------------------------- +\section{New fill options} +%-------------------------------------------------------------------------------------- +For the fillstyles \verb+hlines+, \verb+vlines+ and \verb+crosshatch+ there are two new +options to get increasing line widths and/or increasing whitespace. Both options are +lengths and can be set as usual for PSTricks, with or without a unit. + +\bigskip\noindent +\begin{tabularx}{\linewidth}{lXc} +\emph{name} & \emph{meaning} & \emph{default}\\\hline +\verb|hatchsepinc| & additional increasing space between two hatch lines & 0\tabularnewline +\verb|hatchwidthinc| & value for the increasing line width of two hatch lines & 0 +\end{tabularx} + + + +\bigskip +\begin{LTXexample}[pos=t] +\begin{pspicture}(\linewidth,3) + \psframe[fillstyle=vlines,hatchangle=0,hatchsep=.5pt,% + hatchwidth=1pt,hatchwidthinc=0.25pt](\linewidth,3) +\end{pspicture} +\end{LTXexample} + +\begin{LTXexample}[pos=t] +\begin{pspicture}(\linewidth,3) + \psframe[fillstyle=hlines,hatchangle=0,% + hatchwidth=1pt,hatchsep=0.5pt,hatchsepinc=0.1pt](\linewidth,3) +\end{pspicture} +\end{LTXexample} + +\begin{LTXexample}[pos=t] +\begin{pspicture}(\linewidth,3) + \psframe[fillstyle=vlines,hatchangle=0,hatchsep=0.6pt,% + hatchwidth=1pt,hatchwidthinc=0.3pt,hatchangle=60, + hatchcolor=red](\linewidth,3) +\end{pspicture} +\end{LTXexample} + +\begin{LTXexample}[pos=t] +\begin{pspicture}(\linewidth,3) + \psframe[fillstyle=hlines,hatchangle=0,hatchangle=-60,% + hatchwidth=1pt,hatchsep=0.5pt,hatchsepinc=0.1pt, + hatchcolor=blue](\linewidth,3) +\end{pspicture} +\end{LTXexample} + +\begin{LTXexample}[pos=t] +\begin{pspicture}(\linewidth,4) + \pscircle[fillstyle=vlines,hatchangle=0,hatchsep=0.6pt,% + hatchwidth=1pt,hatchwidthinc=0.3pt,hatchangle=90, + hatchcolor=red](2,2){2} + \pscircle[fillstyle=vlines,hatchangle=0,hatchsep=0.6pt,% + hatchwidth=1pt,hatchwidthinc=0.3pt,hatchangle=-45, + hatchcolor=green](7,2){2} + \pscircle[fillstyle=hlines,hatchangle=0,hatchsep=0.6pt,% + hatchwidth=1pt,hatchwidthinc=0.3pt,hatchangle=45, + hatchcolor=blue](12,2){2} +\end{pspicture} +\end{LTXexample} + +\begin{LTXexample}[pos=t] +\begin{pspicture}(\linewidth,3) + \psframe[fillstyle=crosshatch,hatchangle=0,hatchangle=-90,% + hatchwidth=1pt,hatchsep=0.5pt,hatchsepinc=0.1pt, + hatchcolor=blue](\linewidth,3) +\end{pspicture} +\end{LTXexample} + +\part{\texttt{pst-node} -- package} + +\section{\texttt{pst-node.tex}} +\subsection{\CMD{nccircle}} +With some modification to \CMD{psarc\@iv} it is now possible to get the loops in any direction +and above or below the node. + +\begin{LTXexample}[width=.35\linewidth] +\psscalebox{1.5}{% + \circlenode{A}{A} + \nccircle{->}{A}{1.5em} \nbput{foo} + \nccircle{<-}{A}{-1.5em}\naput{bar}} +% +\hspace{1cm} +\psscalebox{1.5}{% + \circlenode{A}{A} + \nccircle{<-}{A}{1.5em} \nbput{foo} + \nccircle{->}{A}{-1.5em}\naput{bar}} +\end{LTXexample} + +\part{\texttt{pst-tree} -- package} +\section{\texttt{pst-tree.tex}} + +\end{document} diff --git a/Master/texmf-dist/doc/generic/pstricks/pst-news06.pdf b/Master/texmf-dist/doc/generic/pstricks/pst-news06.pdf new file mode 100644 index 00000000000..ae63aadf05a Binary files /dev/null and b/Master/texmf-dist/doc/generic/pstricks/pst-news06.pdf differ diff --git a/Master/texmf-dist/doc/generic/pstricks/pst-news06.tex b/Master/texmf-dist/doc/generic/pstricks/pst-news06.tex new file mode 100644 index 00000000000..719c6174cac --- /dev/null +++ b/Master/texmf-dist/doc/generic/pstricks/pst-news06.tex @@ -0,0 +1,198 @@ +\documentclass[12pt]{article} +\usepackage[T1]{fontenc} +\usepackage[latin1]{inputenc} +%\usepackage{geometry} +\usepackage{pst-all,pst-news} +\let\CMD\cs +\usepackage{showexpl} +\usepackage{tabularx,array,longtable} +\SpecialCoor +\usepackage[colorlinks,linktocpage]{hyperref} +\def\UrlFont{\small\ttfamily} +\makeatletter +\def\verbatim@font{\small\normalfont\ttfamily} +\makeatother +\definecolor{hellgelb}{rgb}{1,1,0.8} +\definecolor{colKeys}{rgb}{0,0,1} +\definecolor{colIdentifier}{rgb}{0,0,0} +\definecolor{colComments}{rgb}{1,0,0} +\definecolor{colString}{rgb}{0,0.5,0} +% +\usepackage{listings} +\lstset{% + language=PSTricks,% + float=hbp,% + basicstyle=\ttfamily\small, % + identifierstyle=\color{colIdentifier}, % + keywordstyle=\color{colKeys}, % + stringstyle=\color{colString}, % + commentstyle=\color{colComments}, % + columns=flexible, % + tabsize=4, % + frame=single, % + extendedchars=true, % + showspaces=false, % + showstringspaces=false, % + numbers=left, % + numberstyle=\tiny, % + breaklines=true, % +% backgroundcolor=\color{hellgelb}, % + breakautoindent=true, % + captionpos=b,% + xleftmargin=0pt% +} + +\DeclareRobustCommand\cs[1]{\texttt{\char`\\#1}} +\def\PS{PostScript} +% +\begin{document} +\title{\texttt{PSTricks -- 2006}\\ new macros and bugfixes for the +basic packages \Lcs{pstricks}, \Lcs{pst-tree}, and \Lcs{pst-node}} +\author{Herbert Voß\thanks{% +\url{Herbert.Voss@pstricks.de}}} +\date{\today} + +\maketitle + +\begin{abstract} +This new version of \LFile{pstricks.tex} depends on the also new prologue file +\LFile{pstricks.pro} (v 1.01) and \LFile{pst-dots.pro} (v. 2.00), which should go into +the local \TeX-directory \url{$TEXMFLOCAL/dvips/}. +\end{abstract} + + +\tableofcontents + +\clearpage +%-------------------------------------------------------------------------------------- +\section{linecap} +%-------------------------------------------------------------------------------------- +This was already introduced with version 1.14, but I forgot to mentioned it. +For the line ends one can use the ,,arrows``{} \texttt{c-c}, but only for the ends. For dashed +lines the option \verb+linecap+ can be set to the value 1 to get the dashes with +rounded ends, too. + +\begin{pspicture}(5,3) +\psline[linestyle=dashed,linewidth=8pt,dash=5mm 5mm,linecap=2](0,2.5)(5,2.5) +\psline[linestyle=dashed,linewidth=8pt,dash=5mm 5mm,linecap=1](0,1.5)(5,1.5) +\psline[linestyle=dashed,linewidth=8pt,dash=5mm 5mm](0,0.5)(5,0.5) +\end{pspicture} + +\begin{lstlisting} +\begin{pspicture}(5,3) +\psline[linestyle=dashed,linewidth=8pt,dash=5mm 5mm,linecap=2](0,2.5)(5,2.5) +\psline[linestyle=dashed,linewidth=8pt,dash=5mm 5mm,linecap=1](0,1.5)(5,1.5) +\psline[linestyle=dashed,linewidth=8pt,dash=5mm 5mm](0,0.5)(5,0.5) +\end{pspicture} +\end{lstlisting} + +It is obvious that only the value 1 makes sense for the dashed lines. + +\section{Dots} +Long time ago, Etienne Riga sent the code for some new dotstyles +which are now part of pstricks. + +\psset{dotscale=1.5} +\let\Loption\texttt +\def\multiDot#1{\multido{\nA=0+1}{3}{\psdot[dotstyle=#1]\kern1em}} +\def\cmultiDot#1{\multido{\nA=0+1}{3}{\psdot*[dotstyle=#1]\kern1em}}%} +\begin{longtable}{@{}l@{\kern2em}>{\ttfamily}c>{\ttfamily}c| + l@{\kern2em}>{\ttfamily}c>{\ttfamily}c@{}} +\emph{Name} & \Lcs{psdot} & \Lcs{psdot*} & +\emph{Name} & \Lcs{psdot} & \Lcs{psdot*} \\\hline +\endhead +\Loption{*} & \multiDot{*} & \cmultiDot{*} &%\\ +\Loption{o} & \multiDot{o} & \cmultiDot{o}\\ +\Loption{Bo} & \multiDot{Bo} & \cmultiDot{Bo}&%\\ +\Loption{x} & \multiDot{x} & \cmultiDot{x}\\ +\Loption{+} & \multiDot{+} & \cmultiDot{+}&%\\ +\Loption{B+} & \multiDot{B+} & \cmultiDot{B+}\\ +\Loption{Add} & \multiDot{Add} & \cmultiDot{Add}&%\\ +\Loption{BoldAdd} & \multiDot{BoldAdd} & \cmultiDot{BoldAdd}\\ +\Loption{Oplus} & \multiDot{Oplus} & \cmultiDot{Oplus}&%\\ +\Loption{BoldOplus} & \multiDot{BoldOplus} & \cmultiDot{BoldOplus}\\ +\Loption{SolidOplus} & \multiDot{SolidOplus} & \cmultiDot{SolidOplus} & +\Loption{Hexagon} & \multiDot{Hexagon} & \cmultiDot{Hexagon}\\ +\Loption{BoldHexagon} & \multiDot{BoldHexagon} & \cmultiDot{BoldHexagon}& +\Loption{SolidHexagon} & \multiDot{SolidHexagon} & \cmultiDot{SolidHexagon}\\ +\Loption{asterisk} & \multiDot{asterisk} & \cmultiDot{asterisk}&%\\ +\Loption{Basterisk} & \multiDot{Basterisk} & \cmultiDot{Basterisk}\\ +\Loption{Asterisk} & \multiDot{Asterisk} & \cmultiDot{Asterisk}&%\\ +\Loption{BoldAsterisk} & \multiDot{BoldAsterisk} & \cmultiDot{BoldAsterisk}\\ +\Loption{SolidAsterisk} & \multiDot{SolidAsterisk} & \cmultiDot{SolidAsterisk}& +\Loption{oplus} & \multiDot{oplus} & \cmultiDot{oplus}\\ +\Loption{otimes} & \multiDot{otimes} & \cmultiDot{otimes}& +\Loption{Otimes} & \multiDot{Otimes} & \cmultiDot{Otimes}\\ +\Loption{BoldOtimes} & \multiDot{BoldOtimes} & \cmultiDot{BoldOtimes}& +\Loption{SolidOtimes} & \multiDot{SolidOtimes} & \cmultiDot{SolidOtimes}\\ +\Loption{Mul} & \multiDot{Mul} & \cmultiDot{Mul}&%\\ +\Loption{BoldMul} & \multiDot{BoldMul} & \cmultiDot{BoldMul}\\ +\Loption{|} & \multiDot{|} & \cmultiDot{|}&%\\ +\Loption{B|}\iffalse\index{B*@\texttt{B}|}\fi & \multiDot{B|} & \cmultiDot{B|}\\ +\Loption{Bar} & \multiDot{Bar} & \cmultiDot{Bar}&%\\ +\Loption{BoldBar} & \multiDot{BoldBar} & \cmultiDot{BoldBar}\\ +\Loption{Bullet} & \multiDot{Bullet} & \cmultiDot{Bullet}&%\\ +\Loption{Circle} & \multiDot{Circle} & \cmultiDot{Circle}\\ +\Loption{BoldCircle} & \multiDot{BoldCircle} & \cmultiDot{BoldCircle}&%\\ +\Loption{square} & \multiDot{square} & \cmultiDot{square}\\ +\Loption{Bsquare} & \multiDot{Bsquare} & \cmultiDot{Bsquare} & +\Loption{square*} & \multiDot{square*} & \cmultiDot{square*}\\ +\Loption{Square} & \multiDot{Square} & \cmultiDot{Square}&%\\ +\Loption{BoldSquare} & \multiDot{BoldSquare} & \cmultiDot{BoldSquare}\\ +\Loption{SolidSquare} & \multiDot{SolidSquare} & \cmultiDot{SolidSquare}& +\Loption{diamond} & \multiDot{diamond} & \cmultiDot{diamond}\\ +\Loption{Bdiamond} & \multiDot{Bdiamond} & \cmultiDot{Bdiamond}&%\\ +\Loption{diamond*} & \multiDot{diamond*} & \cmultiDot{diamond}\\ +\Loption{Diamond} & \multiDot{Diamond} & \cmultiDot{Diamond}&%\\ +\Loption{BoldDiamond} & \multiDot{BoldDiamond} & \cmultiDot{BoldDiamond}\\ +\Loption{SolidDiamond} & \multiDot{SolidDiamond} & \cmultiDot{SolidDiamond}& +\Loption{triangle} & \multiDot{triangle} & \cmultiDot{triangle}\\ +\Loption{Btriangle} & \multiDot{Btriangle} & \cmultiDot{Btriangle}& +\Loption{triangle*} & \multiDot{triangle*} & \cmultiDot{triangle*}\\ +\Loption{Triangle} & \multiDot{Triangle} & \cmultiDot{Triangle}&%\\ +\Loption{BoldTriangle} & \multiDot{BoldTriangle} & \cmultiDot{BoldTriangle}\\ +\Loption{SolidTriangle} & \multiDot{SolidTriangle} & \cmultiDot{SolidTriangle}& +\Loption{pentagon} & \multiDot{pentagon} & \cmultiDot{pentagon}\\ +\Loption{Bpentagon} & \multiDot{Bpentagon} & \cmultiDot{Bpentagon}&%\\ +\Loption{pentagon*} & \multiDot{pentagon*}& \cmultiDot{pentagon*}\\ +\Loption{Pentagon} & \multiDot{Pentagon} & \cmultiDot{Pentagon}&%\\ +\Loption{BoldPentagon} & \multiDot{BoldPentagon} & \cmultiDot{BoldPentagon}\\ +\Loption{SolidPentagon} & \multiDot{SolidPentagon} & \cmultiDot{SolidPentagon}& +\Loption{Hexagon} & \multiDot{Hexagon} & \cmultiDot{Hexagon}\\ +\Loption{BoldHexagon} & \multiDot{BoldHexagon} & \cmultiDot{BoldHexagon}& +\Loption{SolidHexagon} & \multiDot{SolidHexagon} & \cmultiDot{SolidHexagon} +\end{longtable} + + +\section{\texttt{pstricks.pro}} +The PostScript header file defines the following functions and constants, which +can be used +in arguments for \CMD{psplot} or any other macro, which reads PostScript code. + +\begin{lstlisting}[basicstyle=\ttfamily\footnotesize] +/Sqrt { dup 0 lt { pop 0 } { sqrt } ifelse } def% return 0 for negative arguments +/Atan { /atan load stopped { pop pop 0 } if } def% return 0 if atan not known +/ATAN1 {neg -1 atan 180 sub } def % atan(x) (only one parameter) +/Div { dup 0 eq { pop } { div } ifelse } def % control the division +/NET { neg exch neg exch T } def % change coordinate system to the negative one +/Pyth { dup mul exch dup mul add sqrt } def % Pythagoras, epects 2 parameter +/PtoC { 2 copy cos mul 3 1 roll sin mul } def % Polar to Cartesian +%----------------- hv added 20050516 --------------- +/Pi 3.14159265359 def +/TwoPi 6.28318530718 def +/Euler 2.71828182846 def +/RadtoDeg { 180 mul Pi div } bind def % convert from radian to degrees +/DegtoRad { Pi mul 180 div } bind def % viceversa +\end{lstlisting} + +\section{Packages} +The package \texttt{pst-char} is now part of \texttt{pst-text} and the +package \texttt{pst-ghsb} is now part of \texttt{pst-grad}. The macros +and enviroments will work in the same way. + +The documented source code of \texttt{pstricks} and \texttt{pst-node} is +now available as a pdf file with a source which can be run by pdf\LaTeX. +Rolf Niepraschk modified the old sources from Timothy Van Zandt for +running with \LaTeX\ and/or pdf\LaTeX. + +\end{document} diff --git a/Master/texmf-dist/doc/generic/pstricks/pst-news08.pdf b/Master/texmf-dist/doc/generic/pstricks/pst-news08.pdf new file mode 100644 index 00000000000..9273e7dddc8 Binary files /dev/null and b/Master/texmf-dist/doc/generic/pstricks/pst-news08.pdf differ diff --git a/Master/texmf-dist/doc/generic/pstricks/pst-news08.tex b/Master/texmf-dist/doc/generic/pstricks/pst-news08.tex new file mode 100644 index 00000000000..e4dd6dfce2d --- /dev/null +++ b/Master/texmf-dist/doc/generic/pstricks/pst-news08.tex @@ -0,0 +1,862 @@ +\documentclass[11pt]{article} +\usepackage[T1]{fontenc} +\usepackage[utf8]{inputenc} +\usepackage{pst-news} +% +\begin{document} +\title{\texttt{PSTricks -- 2008}\\ new macros and bugfixes for the +basic packages \nxLFile{pstricks}, \nxLFile{pst-plot}, \nxLFile{pst-tree},\\ and \nxLFile{pst-node}} +\author{Herbert Voß\thanks{% +\url{Herbert.Voss@pstricks.de}; \newline thanks to Patrick Drechsler.}} +\date{\today} + +\maketitle + +\clearpage +\tableofcontents + +\clearpage +\part{\texttt{pstricks} -- package} + +%-------------------------------------------------------------------------------------- +\section{\texttt{pstricks.sty}} +%-------------------------------------------------------------------------------------- + +\subsection{Error messages} +\begin{itemize} +\item Loading the package \LPack{pstricks} by \LaTeX\ will now write a message +into the file list of file version and date for the file \LFile{pstricks.pro}. +\item A frequently done error is choosing a file name for the document, which is +already a name of one PSTricks package, e.\,g. \LFile{pstricks.tex}. The \Index{error message} +in the log file was not really helpful. There is now an extended message +(example for a dcoument file called \LFile{pstricks.tex}): +{\small\begin{verbatim} +! LaTeX Error: `pstricks.tex' is a forbidden name for your document, + it is already a name of a package. + +See the LaTeX manual or LaTeX Companion for explanation. +Type H for immediate help. + ... + +l.13 \documentclass + {article} +? H +Choose another name for your document +\end{verbatim} +} +\end{itemize} + +\subsection{Optional arguments} +\LPack{pstricks} supports \Index{transparent colors} with Ghostscript's \LPS{.setopacityalpha}, +\LPS{.setblendmode}, and \LPS{.setshapealpha}. These functions are not known to +\Index{V\TeX} or Adobes \Index{Distiller}. The optional argument \Loption{vtex} disables transparencies +and \Loption{distiller} overrides the \Index{Ghostscript} functions with the ones from the \Index{Distiller}. + + + +\clearpage +%-------------------------------------------------------------------------------------- +\section{\texttt{pstricks.tex} (\PSTfileversion -- \PSTfiledate)} +%-------------------------------------------------------------------------------------- + +\subsection{Makro \cs{psDEBUG}} +\texttt{pstricks.tex} defines the option \texttt{PstDebug=0|1}, which can be used for +debugging. The new macro \cs{psDEBUG} makes it easier to write some debugging +information into the package files. The macro is only valid, if \texttt{PstDebug=1} +is set, otherwise the macro does nothing. + +\begin{verbatim} +\psDEBUG[optional arg]{text} +\end{verbatim} + +\cs{psDEBUG} writes the argument \texttt{text} into the log file. +Without an optional argument the word \texttt{pstricks} is used. The following output +of the log file + +\begin{lstlisting} +... +: setting ticksize to max +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <7> on input line 26. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <5> on input line 26. +: xticksizeC=0.0pt +... +\end{lstlisting} + +was possible with \verb+\psset{PstDebug=1}+\footnote{Can also be used locally for a macro when used as optional argument +in the usual way.} +and inside of \texttt{pstricks-add} with +(only the first for example): +\begin{lstlisting} +... + \psDEBUG[key:ticksize]{setting ticksize} +... +\end{lstlisting} + + + +\subsection{Option \texttt{shift}} +The optional argument \Lkeyword{shift} can be used for a vertical alignment of the +\Lenv{pspicture} box. With \Lkeyword{shift}=\Lkeyval{*}, instead of a value or a length +it is possible to center the \Lenv{pspicture} box vertically to the baseline +of the current line. + +\begin{LTXexample}[width=4cm] +\usepackage{pstricks} +\rule{5mm}{0.5pt}% +\psframebox{% +\begin{pspicture}[showgrid=true, + shift=*](-0.3,-0.4)(3.2,3.3) + \psarc[showpoints=true](1,1){2}{-45}{120} +\end{pspicture}}\rule{5mm}{0.5pt} +\end{LTXexample} + +\subsection{Option \texttt{gridfont}} +By default the \Index{grid label}s were printed always in \Index{Helvetica}. With the new keyword \Lkeyword{gridfont} +one can define another \Index{PostScript Font}. Available are at least + +\medskip +{\ttfamily\noindent +\Lkeyval{Helvetica} (default) -- \Lkeyval{Helvetica-Narrow} -- \Lkeyval{Times-Roman} -- \Lkeyval{Courier} -- \Lkeyval{AvantGard} --\Lkeyval{NewCenturySchlbk} -- +\Lkeyval{Palatino-Roman} -- \Lkeyval{Bookman-Demi} -- \linebreak \Lkeyval{ZapfDingbats} -- \Lkeyval{Symbol}} + +\begin{LTXexample}[width=4cm] +\usepackage{pstricks} +\begin{pspicture}[showgrid=true](3,2) +\end{pspicture}\\[20pt] +\begin{pspicture}(3,2) + \psgrid[style=gridstyle,gridfont=AvantGard-Demi] +\end{pspicture}\\[20pt] +\begin{pspicture}(3,2) + \psgrid[style=gridstyle,gridfont=ZapfDingbats] +\end{pspicture} +\end{LTXexample} + + +\clearpage +\subsection{\texttt{linejoin}} +Connecting lines can be done in several ways and is controlled on PS level +by the \LPS{setlinejoin} command. With this version of PSTricks it is +possible to controll this by an optional argument, called \Lkeyword{linejoin}. +It is preset to 0 and can take values of 0,1,2. Other values will have +no effect. + +\begin{LTXexample}[width=4cm] +\psset{linewidth=3mm,unit=0.8} +\begin{pspicture}[showgrid=true](3,2) + \psline(0,0)(1,2)(2,0)(3,2) +\end{pspicture}\\[10pt] +\begin{pspicture}[showgrid=true](4,2) + \psline[linejoin=1](0,0)(1,2)(2,0)(3,2)(4,0)% +\end{pspicture}\\[10pt] +\begin{pspicture}[showgrid=true](3,2) + \psline[linejoin=2](0,0)(1,2)(2,0)(3,2)% +\end{pspicture} +\end{LTXexample} + +\clearpage +\subsection{\texttt{linecap}} +The value of \Lkeyword{linecap} determines how the line ends are drawn: + +\begin{description} +\item[0] lines are cut (default) +\item[1] lines are ended by a filled semicircle of radius 0.5$\cdot$\Ldim{pslinewidth} +\item[2] lines are ended by a filled half square of radius 0.5$\cdot$\Ldim{pslinewidth} +\end{description} + +The following example shows that using \Lkeyword{linecap} for lines is the same +than using the \Index{arrow} option. + +\begin{LTXexample}[width=4cm] +\begin{pspicture}[showgrid=true](4,4)% + \psset{linewidth=5mm} + \psline[arrows=C-C](0,3.75)(4,3.75) + \psline[linecap=2](0,3)(4,3) + \psline[arrows=c-c](0,2.25)(4,2.25) + \psline[linecap=1](0,1.5)(4,1.5) + \psline[arrows=-](0,0.75)(4,0.75) + \psline(4,0) +\end{pspicture} +\end{LTXexample} + +Using this optional argument makes only sense in some special cases, because +it is the same as the \Index{arrow type} \Lkeyval{c-c}. But the arrows are not part +of the \Index{current path} and \Index{filling} an \Index{open curve} with the \Lkeyword{linecap} option +is different to a curve using the \Lkeyval{c-c} arrow. + +\begin{LTXexample}[width=3cm,wide] +\psset{unit=5cm,linewidth=5mm} +\begin{pspicture}(-0.2,-0.6)(0.2,0.5)% +\def\curve{\pscurve(-.1,.1)(-.15,.15)(0,.2)(.15,.15)(.1,.1)} +\rput(0,.2){\psset{arrows=c-c}\curve} +\rput(0,-.2){% + \psset{fillstyle=solid,fillcolor=red,arrows=c-c} + \curve} +\rput(0,-.6){% + \psset{fillstyle=solid,fillcolor=red,linecap=1} + \curve} +\end{pspicture} +\end{LTXexample} + + +\clearpage +\subsection{New arrowtype \texttt{D>} and \texttt{D>D>}} +All arrows are drawn as polygons. The new arrow type \Lkeyval{D>} or \Lkeyval{D>}(0,2)(4,2) +\psline[arrows=<-D>,arrowlength=2](0,1)(4,1) +\psline[arrowinset=0]{}(0,0.25)(4,0.25) +\end{pspicture} +\end{LTXexample} + + +\clearpage +\subsection{Fill style \texttt{penrose}} + +The valid optional arguments are \texttt{penrose}, \texttt{penrose*}, and \texttt{hatchcolor}. +The star version is only seen, if there is a fillcolor or a background different to white. + +\begin{LTXexample}[pos=t,wide] +\begin{pspicture}(3,3) +\psframe[fillstyle=penrose](3,3) +\end{pspicture} \qquad +\begin{pspicture}(3,3) +\psframe[fillstyle=penrose,psscale=0.5](3,3) +\end{pspicture} \qquad +\begin{pspicture}(3,3) +\psccurve[fillstyle=penrose*,fillcolor=red!30,hatchcolor=blue](0,1.5)(1.5,3)(3,1.5)(1.5,0) +\end{pspicture} +\end{LTXexample} + + +\clearpage +\subsection{Transparent colors} +The package \LPack{pstricks-add} already defined a fillstyle for +transparency colors by using the \Index{Ghostscript}'s \Index{blendmode}. +It now moves into the main \LPack{pstricks} package, together with +another possibility for creating transparent colors. +Transparency is only seen with the \Index{PDF} output (version 1.4 or greater), +as nearly all PostScript viewer cannot show transparencies. + +Loading the \LPack{pstricks} package with the option \Loption{vtex}, disables +the transparency effekts and everything works as before. + +\subsubsection{Options \texttt{strokeopacity} and \texttt{opacity}} +For the existing fill style \Lkeyval{solid} the new option \Lkeyword{opacity} +can be used to get also transparent colors. It is predefined by 1 ($0\ldots1$), which +is the old behaviour, no \Index{transpareny}. The option is valid only for PostScripts +fill commands. Lines and curves can be transparent with setting the option\index{transparent lines} +\Lkeyword{strokeopacity}, which can have a different value than the \Lkeyword{opacity} option. + +\begin{LTXexample}[width=4cm,wide] +\begin{pspicture}[linewidth=1cm](4,4) + \psline[linecolor=red](0,0)(4,4) + \psline[linecolor=blue,strokeopacity=0.5](0,4)(4,0) + \psline[linecolor=green,strokeopacity=0.5](0,3.5)(4,3.5) + \psline[linecolor=yellow,strokeopacity=0.5](0,0.5)(4,0.5) +\end{pspicture} +\end{LTXexample} + + +\begin{LTXexample}[width=4cm,wide] +\begin{pspicture}[linewidth=1cm](4,4) +\psline[linecolor=red](0,0)(4,4) +\pscircle*[opacity=0.5](2,2){2} +\psline[linecolor=blue,strokeopacity=0.6](0,4)(4,0) +\end{pspicture} +\end{LTXexample} + + +\begin{LTXexample}[width=4cm,wide] +\begin{pspicture}[linewidth=3mm](4,5.5) + \multido{\rA=0.0+0.5}{9}{% + \psline[linecolor=red!40](\rA,0)(\rA,5)} + \multido{\rA=0.0+0.5,\rB=0.0+0.1}{11}{% + \psline[arrows=,linecolor=blue, + linewidth=5pt,arrowscale=1.5, + strokeopacity=\rB](0,\rA)(4,\rA)} +\end{pspicture} +\end{LTXexample} + + +\begin{LTXexample}[width=5cm,wide] +\begin{pspicture}(5,5) + \psset{fillstyle=solid} + \psframe[fillcolor=red](0,1)(3,4) + \psframe[fillcolor=blue,opacity=0.7](2,2)(5,5) + \psframe[fillcolor=green,opacity=0.7](1,0)(4,3) + \pscircle[fillcolor=cyan, + opacity=0.5](1.5,3.5){1.25} +\end{pspicture} +\end{LTXexample} + +\begin{LTXexample}[width=5cm,wide] +\begin{pspicture}(5,5) + \psset{fillstyle=solid} + \psframe[fillcolor=red](0,1)(3,4) + \psframe[fillcolor=blue,opacity=0.3](2,2)(5,5) + \psframe[fillcolor=green,opacity=0.3](1,0)(4,3) + \pscircle[fillcolor=cyan, + opacity=0.5](1.5,3.5){1.25} +\end{pspicture} +\end{LTXexample} + + +\clearpage +\subsubsection{Fill style \texttt{shape}} +There is now one more \Index{fill style} for \Index{transparent colors}: \Lkeyword{shape} +with using the \Lkeyword{shapealpha} value and one of the possible blendmodes: +\begin{verbatim} + /Normal ->0 + /Compatible ->1 + /Screen ->2 + /Multiply ->3 +\end{verbatim} + + +The fill style \Lkeyval{solid} uses +\Index{Ghostscript}'s \LPS{.setopacityalpha} function +and the new style \Lkeyval{shape} and the \Lkeyword{blendmode} together with \LPS{.setshapealpha}. +\Lkeyword{shapealpha} is predefined +with 0.6 and both alpha values can be chosen from the range $0\le\alpha\le1$. + +\begin{pspicture}(5,5)% default blendmode + \psframe*[linecolor=red](0,1)(3,4) + \psframe[fillcolor=blue,fillstyle=shape](2,2)(5,5) + \psframe[fillcolor=green,fillstyle=shape](1,0)(4,3) + \pscircle[fillcolor=cyan,fillstyle=shape, + shapealpha=0.3](1.5,3.5){1.25} + \rput(1.5,3.5){\huge\textbf{0}} +\end{pspicture} +\hfill +\begin{pspicture}(5,5) + \psset{blendmode=1}% type /Compatible + \psframe*[linecolor=red](0,1)(3,4) + \psframe[fillcolor=blue,fillstyle=shape](2,2)(5,5) + \psframe[fillcolor=green,fillstyle=shape](1,0)(4,3) + \pscircle[fillcolor=cyan,fillstyle=shape, + shapealpha=0.3](1.5,3.5){1.25} + \rput(1.5,3.5){\huge\textbf{1}} +\end{pspicture} + +\begin{pspicture}(5,5) + \psset{blendmode=2}% type /Screen + \psframe*[linecolor=red](0,1)(3,4) + \psframe[fillcolor=blue,fillstyle=shape](2,2)(5,5) + \psframe[fillcolor=green,fillstyle=shape](1,0)(4,3) + \pscircle[fillcolor=cyan,fillstyle=shape, + shapealpha=0.3](1.5,3.5){1.25} + \rput(1.5,3.5){\huge\textbf{2}} +\end{pspicture} +\hfill +\begin{pspicture}(5,5) + \psset{blendmode=3}% type /Multiply + \psframe*[linecolor=red](0,1)(3,4) + \psframe[fillcolor=blue,fillstyle=shape](2,2)(5,5) + \psframe[fillcolor=green,fillstyle=shape](1,0)(4,3) + \pscircle[fillcolor=cyan,fillstyle=shape, + shapealpha=0.3](1.5,3.5){1.25} + \rput(1.5,3.5){\huge\textbf{3}} +\end{pspicture} + +\begin{lstlisting} +\begin{pspicture}(5,5)% default blendmode + \psframe*[linecolor=red](0,1)(3,4) + \psframe[fillcolor=blue,fillstyle=shape](2,2)(5,5) + \psframe[fillcolor=green,fillstyle=shape](1,0)(4,3) + \pscircle[fillcolor=cyan,fillstyle=shape, + shapealpha=0.3](1.5,3.5){1.25} + \rput(1.5,3.5){\huge\textbf{0}} +\end{pspicture} +\hfill +\begin{pspicture}(5,5) + \psset{blendmode=1}% type /Compatible + \psframe*[linecolor=red](0,1)(3,4) + \psframe[fillcolor=blue,fillstyle=shape](2,2)(5,5) + \psframe[fillcolor=green,fillstyle=shape](1,0)(4,3) + \pscircle[fillcolor=cyan,fillstyle=shape, + shapealpha=0.3](1.5,3.5){1.25} + \rput(1.5,3.5){\huge\textbf{1}} +\end{pspicture} + +\begin{pspicture}(5,5) + \psset{blendmode=2}% type /Screen + \psframe*[linecolor=red](0,1)(3,4) + \psframe[fillcolor=blue,fillstyle=shape](2,2)(5,5) + \psframe[fillcolor=green,fillstyle=shape](1,0)(4,3) + \pscircle[fillcolor=cyan,fillstyle=shape, + shapealpha=0.3](1.5,3.5){1.25} + \rput(1.5,3.5){\huge\textbf{2}} +\end{pspicture} +\hfill +\begin{pspicture}(5,5) + \psset{blendmode=3}% type /Multiply + \psframe*[linecolor=red](0,1)(3,4) + \psframe[fillcolor=blue,fillstyle=shape](2,2)(5,5) + \psframe[fillcolor=green,fillstyle=shape](1,0)(4,3) + \pscircle[fillcolor=cyan,fillstyle=shape, + shapealpha=0.3](1.5,3.5){1.25} + \rput(1.5,3.5){\huge\textbf{3}} +\end{pspicture} +\end{lstlisting} + + +\iffalse +\begin{LTXexample}[width=5cm,wide] +\begin{pspicture}(5,5) + \psset{blendmode=4}% type /Hardlight + \psframe*[linecolor=red](0,1)(3,4) + \psframe[fillcolor=blue,fillstyle=shape](2,2)(5,5) + \psframe[fillcolor=green,fillstyle=shape](1,0)(4,3) + \pscircle[fillcolor=cyan,fillstyle=shape, + shapealpha=0.3](1.5,3.5){1.25} +\end{pspicture} +\end{LTXexample} + +\fi + +\clearpage + +\subsection{\nxLcs{addtopsstyle}} +\begin{verbatim} +\addtopsstyle{style-name}{settings} +\end{verbatim} + +This macro allows to add some more settings to an existing \Index{style}. +If the style is not defined, then \Lcs{addtopsstyle} behaves like the +already defined \Lcs{newpsstyle} macro. + +\begin{LTXexample}[width=5cm,wide] +\newpsstyle{Fiber}{linewidth=2pt} +\begin{pspicture}(5,5) + \psline[style=Fiber](0,0)(5,1) + \addtopsstyle{Fiber}{linecolor=green} + \psline[style=Fiber](0,1)(5,2) + \addtopsstyle{Fiber}{linestyle=dotted} + \psline[style=Fiber](0,2)(5,3) + \addtopsstyle{Fiber}{} + \psline[style=Fiber](0,3)(5,4) + \addtopsstyle{Fibber}{linecolor=red} + \psline[style=Fibber](0,4)(5,5) +\end{pspicture} +\end{LTXexample} + + +\clearpage + +\subsection{\nxLcs{pscircleOA}} +\begin{verbatim} +\pscircleOA[settings](xO,yO)(xA,yA) +\end{verbatim} + +$(x_0, y_0)$ is the center and $(x_A, y_A)$ a given point of the +circle. The radius is calculated by \TeX. + +\begin{LTXexample}[pos=t] +\begin{pspicture}[showgrid=true](-2,0)(8,8) +\pscircleOA(6,4)(4,4) +\pscircleOA[linecolor=blue](4,6)(4,4) +\pscircleOA[linewidth=2pt,linecolor=yellow](3,5)(4,4) +\pscircleOA*[opacity=0.3,linecolor=red](2,2)(4,4) +\end{pspicture} +\end{LTXexample} + + +\subsection{\nxLcs{psTextFrame}} +\begin{verbatim} +\psTextFrame[settings](x1,y1)(x2,y2){Text} +\end{verbatim} + +The \emph{Text} cannot have a linebreak. In case it is needed, put the \emph{Text} +into a \Lenv{minipage} or \Lcs{parbox}, as seen in the following example. The +\Lkeyword{ref}-option allows different placing and the \Lkeyword{rot}-option allows +the \Index{rotating} of the \emph{Text}. The macro itself first uses the +\Lcs{psframe} and the \Lcs{rput} macro with \Index{calculated coordinates}. + + +\begin{LTXexample}[pos=t] +\begin{pspicture}[showgrid=true](0,-0.5)(10,10) + \psTextFrame[linecolor=lightgray,ref=l](0,0.5)(4,1.5){Hallo} + \psTextFrame[linecolor=blue](2,4)(4,7){\color{blue}Hallo} + \psTextFrame[linestyle=dashed](9,9)(10,10){\huge H} + \psTextFrame*[linecolor=red,linestyle=dashed](7,7)(9,9){\Huge H} + \psTextFrame*[linecolor=red!40,ref=lB](7,4)(9,6){\Huge H} + \psTextFrame*[linecolor=blue!40,ref=rt](7,1)(9,3){\Huge H} + \psTextFrame[linestyle=dashed](4.5,0)(6.5,10){% + \parbox{2cm}{\centering Here comes some more text over several + lines, which is also horizontally and vertically centered and + written in a parbox.}} + \psTextFrame*[linecolor=cyan!20,rot=90](.5,2)(1.5,10){% + \parbox{8cm}{\centering Here comes some more text over several + lines and rotated by 90 degrees.}} +\end{pspicture} +\end{LTXexample} + +\subsection{Special coordinates} + +Additionally to the existing \Index{!-operator} for \Index{PostScript} coordinates, +there is new a \Index{*-operator}, which invokes the \Index{algebraic parser} before +the coordinates are passed to the default !-operator. The syntax +is pretty easy: \verb=( {f(x)})=. In the following example the +predefined value of Pi\index{$\pi$} from \LFile{pstricks.pro} is used. The x value +and the function must be enclosed +in braces when they contain spaces, round braces or sybolic names, like \verb+Pi+ for the +x value. + +\begin{LTXexample}[width=5cm,wide] +\SpecialCoor +\begin{pspicture}(0,-1)(5,1) + \psaxes{->}(0,0)(0,-1)(5,1) + \psline(0,0)(*{Pi} {sqrt(abs(cos(x)))}) + \psline{<->}(*{Pi} {cos(x)})(*5 {sin(x)*cos(x)}) +\end{pspicture} +\end{LTXexample} + +For a macro definition of the algebraic function the \verb+\string+ command +has to be used, otherwise \TeX{} expects the math mode in the following +example. + +\begin{LTXexample}[width=4cm,wide] +\def\F{\string x^2 } +\begin{pspicture}[showgrid=true](2,4) + \psline[linecolor=red](*1 {\F} )(*2 {\F} ) +\end{pspicture} +\end{LTXexample} + + + + +\subsection{Octogon-Symbol} + +An octogon symbol was added. +\begin{verbatim} +\newpsfontdotH{Octogon}[1 0 0 1 0 0]{PSTricksDotFont}{(f)}{(g)} +\newpsfontdotH{BoldOctogon}[1 0 0 1 0 0]{PSTricksDotFont}{(F)}{(g)} +\newpsfontdot{SolidOctogon}[1 0 0 1 0 0]{PSTricksDotFont}{(g)} +\end{verbatim} + +\begin{LTXexample}[width=4cm,wide] +\psset{dotscale=4} +\begin{pspicture}[showgrid=true](4,4) +\psdot[dotstyle=Octogon](1,1) +\psdot[dotstyle=BoldOctogon](2,2) +\psdot[dotstyle=SolidOctogon](3,3) +\end{pspicture} +\end{LTXexample} + + +\subsection{Code changes} + +\begin{verbatim} +% hv 2007-10-16 to fix the bug in pst-node with \\[name=...] +\def\ps@ifnextchar#1#2#3{% + \let\reserved@d= #1% + \def\reserved@a{#2}\def\reserved@b{#3}% + \futurelet\@let@token\ps@ifnch} +\def\ps@ifnch{% + \ifx\@let@token\reserved@d \let\reserved@b\reserved@a \fi + \reserved@b +} +\end{verbatim} + + + + +%-------------------------------------------------------------------------------------- +\section{The PostScript header files} +\subsection{\texttt{pstricks.pro}} +%-------------------------------------------------------------------------------------- + +\begin{verbatim} +/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{verbatim} + +This new PostScript function allows to calculate the distance +between two points, given by their coordinates whereas the +existing \LPS{/Pyth} does this for two values. + +\subsection{\texttt{pst-dots.pro}} +\verb+pst-dots.pro+ ist the file which defines the so called softfont PSTRocksFontDot, which +collects all PSTricks symbols, which are not part of one of the standard PostScript fonts. +The octogon symbol is defined as: +\begin{verbatim} + /OctogonPath { + 228 550 moveto 7 { -456 0 rlineto 45 rotate } repeat closepath + } def + /SolidOctogon { OctogonPath fill } def + /Octogon { OctogonPath .89 .89 scale OctogonPath eofill } def + /BoldOctogon { OctogonPath .79 .79 scale OctogonPath eofill } def +% +\end{verbatim} + + +\part{\texttt{pst-node} -- package} + +\section{\texttt{pst-node.tex} (\NODEfileversion -- \NODEfiledate)} + +\subsection{Bugfix for \texttt{psmatrix}} +A long standing bug with \Lenv{psmatrix} and using the \Lkeyword{name} option is now fixed. +The following works as expected: + +\begin{LTXexample}[width=2cm] +\begin{psmatrix}[rowsep=5mm] +[name=a]a\\ +[name=b]b\\[1cm] +[name=c]c\\ +\end{psmatrix} +\ncline{a}{b} +\ncarc{a}{c} +\end{LTXexample} + +An optional argument after \Lcs{\textbackslash} is now scanned in the correct way. + + +\subsection{New option \texttt{pcRef}} +There is a new option \Lkeyword{pcRef} for the \Lcs{ncangles} connection\index{node connection}. By default, +the reference point for the \Lkeyword{armA} option is the border of the node. This makes +it difficult to get horizontically aligned lines for different node images. +With \texttt{pcRef=true} the node center is the reference point and the connection is +still drawn from the border of the node. + +The first three images show the default behaviour: + +\makebox[\linewidth]{% +\begin{pspicture}(5,4) + \cnode(2.5,3.5){0.2}{A} + \cnode(0.5,1){0.2}{B1} + \cnode(1.5,1){0.4}{B2} + \cnode(2.6,1){0.6}{B3} + \cnode(4,1){0.8}{B4} + \psset{angleB=90,angleA=-90,armA=0.5cm} + \ncangles{A}{B1} + \ncangles{A}{B2} + \ncangles{A}{B3} + \ncangles{A}{B4} +\end{pspicture} +% +\begin{pspicture}(5,4) + \cnode(2.5,3.5){0.4}{A} + \cnode(0.5,1){0.2}{B1} + \cnode(1.5,1){0.4}{B2} + \cnode(2.6,1){0.6}{B3} + \cnode(4,1){0.8}{B4} + \psset{angleB=90,angleA=-90,armA=0.5cm} + \ncangles{A}{B1} + \ncangles{A}{B2} + \ncangles{A}{B3} + \ncangles{A}{B4} +\end{pspicture} +% +\begin{pspicture}(5,4) + \cnode(2.5,3.5){0.8}{A} + \cnode(0.5,1){0.2}{B1} + \cnode(1.5,1){0.4}{B2} + \cnode(2.6,1){0.6}{B3} + \cnode(4,1){0.8}{B4} + \psset{angleB=90,angleA=-90,armA=0.5cm} + \ncangles{A}{B1} + \ncangles{A}{B2} + \ncangles{A}{B3} + \ncangles{A}{B4} +\end{pspicture} +} + +The next three images display the influence of \texttt{pcRef=true}; the horizontal line +for the three examples is on the same height: + +\makebox[\linewidth]{% +\begin{pspicture}(5,4) + \cnode(2.5,3.5){0.2}{A} + \cnode(0.5,1){0.2}{B1} + \cnode(1.5,1){0.4}{B2} + \cnode(2.6,1){0.6}{B3} + \cnode(4,1){0.8}{B4} + \psset{angleB=90,angleA=-90,armA=1cm} + \ncangles[pcRef=true]{A}{B1} + \ncangles[pcRef=true]{A}{B2} + \ncangles[pcRef=true]{A}{B3} + \ncangles[pcRef=true]{A}{B4} +\end{pspicture} +% +\begin{pspicture}(5,4) + \cnode(2.5,3.5){0.4}{A} + \cnode(0.5,1){0.2}{B1} + \cnode(1.5,1){0.4}{B2} + \cnode(2.6,1){0.6}{B3} + \cnode(4,1){0.8}{B4} + \psset{angleB=90,angleA=-90,armA=1cm} + \ncangles[pcRef=true]{A}{B1} + \ncangles[pcRef=true]{A}{B2} + \ncangles[pcRef=true]{A}{B3} + \ncangles[pcRef=true]{A}{B4} +\end{pspicture} +% +\begin{pspicture}(5,4) + \cnode(2.5,3.5){0.8}{A} + \cnode(0.5,1){0.2}{B1} + \cnode(1.5,1){0.4}{B2} + \cnode(2.6,1){0.6}{B3} + \cnode(4,1){0.8}{B4} + \psset{angleB=90,angleA=-90,armA=1cm} + \ncangles[pcRef=true]{A}{B1} + \ncangles[pcRef=true]{A}{B2} + \ncangles[pcRef=true]{A}{B3} + \ncangles[pcRef=true]{A}{B4} +\end{pspicture} +} + +\begin{lstlisting} +\begin{pspicture}(5,4) + \cnode(2.5,3.5){0.2}{A} + \cnode(0.5,1){0.2}{B1} + \cnode(1.5,1){0.4}{B2} + \cnode(2.6,1){0.6}{B3} + \cnode(4,1){0.8}{B4} + \psset{angleB=90,angleA=-90,armA=1cm} + \ncangles[pcRef=true]{A}{B1} + \ncangles[pcRef=true]{A}{B2} + \ncangles[pcRef=true]{A}{B3} + \ncangles[pcRef=true]{A}{B4} +\end{pspicture} +% +\begin{pspicture}(5,4) + \cnode(2.5,3.5){0.4}{A} + \cnode(0.5,1){0.2}{B1} + \cnode(1.5,1){0.4}{B2} + \cnode(2.6,1){0.6}{B3} + \cnode(4,1){0.8}{B4} + \psset{angleB=90,angleA=-90,armA=1cm} + \ncangles[pcRef=true]{A}{B1} + \ncangles[pcRef=true]{A}{B2} + \ncangles[pcRef=true]{A}{B3} + \ncangles[pcRef=true]{A}{B4} +\end{pspicture} +% +\begin{pspicture}(5,4) + \cnode(2.5,3.5){0.8}{A} + \cnode(0.5,1){0.2}{B1} + \cnode(1.5,1){0.4}{B2} + \cnode(2.6,1){0.6}{B3} + \cnode(4,1){0.8}{B4} + \psset{angleB=90,angleA=-90,armA=1cm} + \ncangles[pcRef=true]{A}{B1} + \ncangles[pcRef=true]{A}{B2} + \ncangles[pcRef=true]{A}{B3} + \ncangles[pcRef=true]{A}{B4} +\end{pspicture} +\end{lstlisting} + +\part{\texttt{pst-plot} -- package} + +\section{\texttt{pst-plot.tex} (\PLOTfileversion -- \PLOTfiledate)} + +\iffalse + +\subsection{Axes} +The behaviour of the optional argument \Lkeyword{Dx} changed. Using +negative values will now decrease the labels with the correct +value of \Lkeyword{Dx}: + +\psset{xunit=1cm} +\begin{LTXexample}[wide,width=6cm] +\begin{pspicture}(-0.5,-1)(6,4) + \psaxes[Dy=-2, dy=1, + Ox=4000, Dx=-1000, dx=1.5]{->}(10,4) +\end{pspicture} +\end{LTXexample} + +\vspace{1cm} +\begin{pspicture}(-0.5,-1)(10,3) + \psaxes[Dy=2, dy=1, Ox=4000, Dx=1000, dx=1.5]{->}(10,3)(0,0) + \rput(5,2){Positive values for Dx und Dy} +\end{pspicture} + +\begin{pspicture}(-0.5,-1)(10,3) + \psaxes[Dy=-2, dy=1, Ox=4000, Dx=-1000, dx=1.5]{->}(10,3)(0,0) + \rput(5,2){Negative values for Dx und Dy} +\end{pspicture} + +\begin{lstlisting} +\begin{pspicture}(-0.5,-1)(10,3) + \psaxes[Dy=2, dy=1, Ox=4000, Dx=1000, dx=1.5]{->}(10,3)(0,0) + \rput(5,2){Positive values for Dx und Dy} +\end{pspicture} + +\begin{pspicture}(-0.5,-1)(10,3) + \psaxes[Dy=-2, dy=1, Ox=4000, Dx=-1000, dx=1.5]{->}(10,3)(0,0) + \rput(5,2){Negative values for Dx und Dy} +\end{pspicture} +\end{lstlisting} +%\clearpage + +\fi +\subsection{New options \texttt{LineToXAxis} and \texttt{LineToYAxis}} + + +\psset{xunit=0.0333cm,yunit=2.5cm} +\begin{pspicture}(0,-1)(400,1) + \psline{->}(0,0)(400,0) + \psline{->}(0,-1)(0,1) + \psplot[plotstyle=LineToXAxis,linestyle=dashed,plotpoints=50, + linecolor=red!40, + showpoints=true,dotstyle=o,dotsize=0.2]{0}{360}{x sin} +\end{pspicture} + +\begin{lstlisting} +\psset{xunit=0.0333cm,yunit=2.5cm} +\begin{pspicture}(0,-1)(400,1) + \psline{->}(0,0)(400,0) + \psline{->}(0,-1)(0,1) + \psplot[plotstyle=LineToXAxis,linestyle=dashed,plotpoints=50, + linecolor=red!40, + showpoints=true,dotstyle=o,dotsize=0.2]{0}{360}{x sin} +\end{pspicture} +\end{lstlisting} + + + +\psset{xunit=0.0333cm,yunit=2.5cm} +\begin{pspicture}(0,-1.2)(400,1.4) + \psline{->}(0,0)(390,0) + \psline{->}(0,-1.1)(0,1.2) + \psplot[plotstyle=LineToYAxis,linestyle=dashed,plotpoints=50, + linecolor=blue!40, + showpoints=true]{0}{360}{x cos} +\end{pspicture} + +\begin{lstlisting} +\psset{xunit=0.0333cm,yunit=2.5cm} +\begin{pspicture}(0,-1.2)(400,1.4) + \psline{->}(0,0)(390,0) + \psline{->}(0,-1.1)(0,1.2) + \psplot[plotstyle=LineToYAxis,linestyle=dashed,plotpoints=50, + linecolor=blue!40, + showpoints=true]{0}{360}{x cos} +\end{pspicture} +\end{lstlisting} + + +\part{\texttt{pst-tree} -- package} +\section{\texttt{pst-tree.tex} (\TREEfileversion -- \TREEfiledate)} +There was a bug with \texttt{style=...} due to a missing \Lcs{use\textat par} in +\Lcs{pstree\textat ii}. + + +\nocite{*} +\bibliographystyle{plain} +\bibliography{PSTricks} + +\printindex + + +\end{document} diff --git a/Master/texmf-dist/doc/generic/pstricks/pst-news2008.pdf b/Master/texmf-dist/doc/generic/pstricks/pst-news2008.pdf deleted file mode 100644 index 70a02afa84c..00000000000 Binary files a/Master/texmf-dist/doc/generic/pstricks/pst-news2008.pdf and /dev/null differ diff --git a/Master/texmf-dist/doc/generic/pstricks/pst-news2008.tex b/Master/texmf-dist/doc/generic/pstricks/pst-news2008.tex deleted file mode 100644 index 2aedc8e6089..00000000000 --- a/Master/texmf-dist/doc/generic/pstricks/pst-news2008.tex +++ /dev/null @@ -1,823 +0,0 @@ -\documentclass[11pt]{article} -\usepackage[T1]{fontenc} -\usepackage[utf8]{inputenc} -\usepackage{pst-news} -% -\begin{document} -\title{\texttt{PSTricks -- 2008}\\ new macros and bugfixes for the -basic packages \nxLFile{pstricks}, \nxLFile{pst-plot}, \nxLFile{pst-tree},\\ and \nxLFile{pst-node}} -\author{Herbert Voß\thanks{% -\url{Herbert.Voss@pstricks.de}; \newline thanks to Patrick Drechsler.}} -\date{\today} - -\maketitle - -\clearpage -\tableofcontents - -\clearpage -\part{\texttt{pstricks} -- package} - -%-------------------------------------------------------------------------------------- -\section{\texttt{pstricks.sty}} -%-------------------------------------------------------------------------------------- - -\subsection{Error messages} -\begin{itemize} -\item Loading the package \LPack{pstricks} by \LaTeX\ will now write a message -into the file list of file version and date for the file \LFile{pstricks.pro}. -\item A frequently done error is choosing a file name for the document, which is -already a name of one PSTricks package, e.\,g. \LFile{pstricks.tex}. The \Index{error message} -in the log file was not really helpful. There is now an extended message -(example for a dcoument file called \LFile{pstricks.tex}): -{\small\begin{verbatim} -! LaTeX Error: `pstricks.tex' is a forbidden name for your document, - it is already a name of a package. - -See the LaTeX manual or LaTeX Companion for explanation. -Type H for immediate help. - ... - -l.13 \documentclass - {article} -? H -Choose another name for your document -\end{verbatim} -} -\end{itemize} - -\subsection{Optional arguments} -\LPack{pstricks} supports \Index{transparent colors} with Ghostscript's \LPS{.setopacityalpha}, -\LPS{.setblendmode}, and \LPS{.setshapealpha}. These functions are not known to -\Index{V\TeX} or Adobes \Index{Distiller}. The optional argument \Loption{vtex} disables transparencies -and \Loption{distiller} overrides the \Index{Ghostscript} functions with the ones from the \Index{Distiller}. - - - -\clearpage -%-------------------------------------------------------------------------------------- -\section{\texttt{pstricks.tex} (\PSTfileversion -- \PSTfiledate)} -%-------------------------------------------------------------------------------------- - -\subsection{Option \texttt{shift}} -The optional argument \Lkeyword{shift} can be used for a vertical alignment of the -\Lenv{pspicture} box. With \Lkeyword{shift}=\Lkeyval{*}, instead of a value or a length -it is possible to center the \Lenv{pspicture} box vertically to the baseline -of the current line. - -\begin{LTXexample}[width=4cm] -\usepackage{pstricks} -\rule{5mm}{0.5pt}% -\psframebox{% -\begin{pspicture}[showgrid=true, - shift=*](-0.3,-0.4)(3.2,3.3) - \psarc[showpoints=true](1,1){2}{-45}{120} -\end{pspicture}}\rule{5mm}{0.5pt} -\end{LTXexample} - - -\iffalse -\subsection{Option \texttt{noCheck}} - -By default PSTricks checks all values for angles and radi, which makes it impossible to -insert the values in PostScript notation. With setting \verb+noCheck=true+ the argument is -taken verbatim and passed directly into the PostScript part. - -\begin{LTXexample}[width=4cm] -\usepackage{pstricks} -\begin{pspicture}[showgrid=true](3,2) - \psarc[noCheck=true](1,1){ 100 sin }{ 30 }{ 350 Pi div } -\end{pspicture} -\end{LTXexample} -\fi - -\subsection{Option \texttt{gridfont}} -By default the \Index{grid label}s were printed always in \Index{Helvetica}. With the new keyword \Lkeyword{gridfont} -one can define another \Index{PostScript Font}. Available are at least - -\medskip -{\ttfamily\noindent -\Lkeyval{Helvetica} (default) -- \Lkeyval{Helvetica-Narrow} -- \Lkeyval{Times-Roman} -- \Lkeyval{Courier} -- \Lkeyval{AvantGard} --\Lkeyval{NewCenturySchlbk} -- -\Lkeyval{Palatino-Roman} -- \Lkeyval{Bookman-Demi} -- \linebreak \Lkeyval{ZapfDingbats} -- \Lkeyval{Symbol}} - -\begin{LTXexample}[width=4cm] -\usepackage{pstricks} -\begin{pspicture}[showgrid=true](3,2) -\end{pspicture}\\[20pt] -\begin{pspicture}(3,2) - \psgrid[style=gridstyle,gridfont=AvantGard-Demi] -\end{pspicture}\\[20pt] -\begin{pspicture}(3,2) - \psgrid[style=gridstyle,gridfont=ZapfDingbats] -\end{pspicture} -\end{LTXexample} - - -\clearpage -\subsection{\texttt{linejoin}} -Connecting lines can be done in several ways and is controlled on PS level -by the \LPS{setlinejoin} command. With this version of PSTricks it is -possible to controll this by an optional argument, called \Lkeyword{linejoin}. -It is preset to 0 and can take values of 0,1,2. Other values will have -no effect. - -\begin{LTXexample}[width=4cm] -\psset{linewidth=3mm,unit=0.8} -\begin{pspicture}[showgrid=true](3,2) - \psline(0,0)(1,2)(2,0)(3,2) -\end{pspicture}\\[10pt] -\begin{pspicture}[showgrid=true](4,2) - \psline[linejoin=1](0,0)(1,2)(2,0)(3,2)(4,0)% -\end{pspicture}\\[10pt] -\begin{pspicture}[showgrid=true](3,2) - \psline[linejoin=2](0,0)(1,2)(2,0)(3,2)% -\end{pspicture} -\end{LTXexample} - -\clearpage -\subsection{\texttt{linecap}} -The value of \Lkeyword{linecap} determines how the line ends are drawn: - -\begin{description} -\item[0] lines are cut (default) -\item[1] lines are ended by a filled semicircle of radius 0.5$\cdot$\Ldim{pslinewidth} -\item[2] lines are ended by a filled half square of radius 0.5$\cdot$\Ldim{pslinewidth} -\end{description} - -The following example shows that using \Lkeyword{linecap} for lines is the same -than using the \Index{arrow} option. - -\begin{LTXexample}[width=4cm] -\begin{pspicture}[showgrid=true](4,4)% - \psset{linewidth=5mm} - \psline[arrows=C-C](0,3.75)(4,3.75) - \psline[linecap=2](0,3)(4,3) - \psline[arrows=c-c](0,2.25)(4,2.25) - \psline[linecap=1](0,1.5)(4,1.5) - \psline[arrows=-](0,0.75)(4,0.75) - \psline(4,0) -\end{pspicture} -\end{LTXexample} - -Using this optional argument makes only sense in some special cases, because -it is the same as the \Index{arrow type} \Lkeyval{c-c}. But the arrows are not part -of the \Index{current path} and \Index{filling} an \Index{open curve} with the \Lkeyword{linecap} option -is different to a curve using the \Lkeyval{c-c} arrow. - -\begin{LTXexample}[width=3cm,wide] -\psset{unit=5cm,linewidth=5mm} -\begin{pspicture}(-0.2,-0.6)(0.2,0.5)% -\def\curve{\pscurve(-.1,.1)(-.15,.15)(0,.2)(.15,.15)(.1,.1)} -\rput(0,.2){\psset{arrows=c-c}\curve} -\rput(0,-.2){% - \psset{fillstyle=solid,fillcolor=red,arrows=c-c} - \curve} -\rput(0,-.6){% - \psset{fillstyle=solid,fillcolor=red,linecap=1} - \curve} -\end{pspicture} -\end{LTXexample} - - -\clearpage -\subsection{New arrowtype \texttt{D>} and \texttt{D>D>}} -All arrows are drawn as polygons. The new arrow type \Lkeyval{D>} or \Lkeyval{D>}(0,2)(4,2) -\psline[arrows=<-D>,arrowlength=2](0,1)(4,1) -\psline[arrowinset=0]{}(0,0.25)(4,0.25) -\end{pspicture} -\end{LTXexample} - - - -\clearpage -\subsection{Transparent colors} -The package \LPack{pstricks-add} already defined a fillstyle for -transparency colors by using the \Index{Ghostscript}'s \Index{blendmode}. -It now moves into the main \LPack{pstricks} package, together with -another possibility for creating transparent colors. -Transparency is only seen with the \Index{PDF} output (version 1.4 or greater), -as nearly all PostScript viewer cannot show transparencies. - -Loading the \LPack{pstricks} package with the option \Loption{vtex}, disables -the transparency effekts and everything works as before. - -\subsubsection{Options \texttt{strokeopacity} and \texttt{opacity}} -For the existing fill style \Lkeyval{solid} the new option \Lkeyword{opacity} -can be used to get also transparent colors. It is predefined by 1 ($0\ldots1$), which -is the old behaviour, no \Index{transpareny}. The option is valid only for PostScripts -fill commands. Lines and curves can be transparent with setting the option\index{transparent lines} -\Lkeyword{strokeopacity}, which can have a different value than the \Lkeyword{opacity} option. - -\begin{LTXexample}[width=4cm,wide] -\begin{pspicture}[linewidth=1cm](4,4) - \psline[linecolor=red](0,0)(4,4) - \psline[linecolor=blue,strokeopacity=0.5](0,4)(4,0) - \psline[linecolor=green,strokeopacity=0.5](0,3.5)(4,3.5) - \psline[linecolor=yellow,strokeopacity=0.5](0,0.5)(4,0.5) -\end{pspicture} -\end{LTXexample} - - -\begin{LTXexample}[width=4cm,wide] -\begin{pspicture}[linewidth=1cm](4,4) -\psline[linecolor=red](0,0)(4,4) -\pscircle*[opacity=0.5](2,2){2} -\psline[linecolor=blue,strokeopacity=0.6](0,4)(4,0) -\end{pspicture} -\end{LTXexample} - - -\begin{LTXexample}[width=4cm,wide] -\begin{pspicture}[linewidth=3mm](4,5.5) - \multido{\rA=0.0+0.5}{9}{% - \psline[linecolor=red!40](\rA,0)(\rA,5)} - \multido{\rA=0.0+0.5,\rB=0.0+0.1}{11}{% - \psline[arrows=,linecolor=blue, - linewidth=5pt,arrowscale=1.5, - strokeopacity=\rB](0,\rA)(4,\rA)} -\end{pspicture} -\end{LTXexample} - - -\begin{LTXexample}[width=5cm,wide] -\begin{pspicture}(5,5) - \psset{fillstyle=solid} - \psframe[fillcolor=red](0,1)(3,4) - \psframe[fillcolor=blue,opacity=0.7](2,2)(5,5) - \psframe[fillcolor=green,opacity=0.7](1,0)(4,3) - \pscircle[fillcolor=cyan, - opacity=0.5](1.5,3.5){1.25} -\end{pspicture} -\end{LTXexample} - -\begin{LTXexample}[width=5cm,wide] -\begin{pspicture}(5,5) - \psset{fillstyle=solid} - \psframe[fillcolor=red](0,1)(3,4) - \psframe[fillcolor=blue,opacity=0.3](2,2)(5,5) - \psframe[fillcolor=green,opacity=0.3](1,0)(4,3) - \pscircle[fillcolor=cyan, - opacity=0.5](1.5,3.5){1.25} -\end{pspicture} -\end{LTXexample} - - -\clearpage -\subsubsection{Fill style \texttt{shape}} -There is now one more \Index{fill style} for \Index{transparent colors}: \Lkeyword{shape} -with using the \Lkeyword{shapealpha} value and one of the possible blendmodes: -\begin{verbatim} - /Normal ->0 - /Compatible ->1 - /Screen ->2 - /Multiply ->3 -\end{verbatim} - - -The fill style \Lkeyval{solid} uses -\Index{Ghostscript}'s \LPS{.setopacityalpha} function -and the new style \Lkeyval{shape} and the \Lkeyword{blendmode} together with \LPS{.setshapealpha}. -\Lkeyword{shapealpha} is predefined -with 0.6 and both alpha values can be chosen from the range $0\le\alpha\le1$. - -\begin{pspicture}(5,5)% default blendmode - \psframe*[linecolor=red](0,1)(3,4) - \psframe[fillcolor=blue,fillstyle=shape](2,2)(5,5) - \psframe[fillcolor=green,fillstyle=shape](1,0)(4,3) - \pscircle[fillcolor=cyan,fillstyle=shape, - shapealpha=0.3](1.5,3.5){1.25} - \rput(1.5,3.5){\huge\textbf{0}} -\end{pspicture} -\hfill -\begin{pspicture}(5,5) - \psset{blendmode=1}% type /Compatible - \psframe*[linecolor=red](0,1)(3,4) - \psframe[fillcolor=blue,fillstyle=shape](2,2)(5,5) - \psframe[fillcolor=green,fillstyle=shape](1,0)(4,3) - \pscircle[fillcolor=cyan,fillstyle=shape, - shapealpha=0.3](1.5,3.5){1.25} - \rput(1.5,3.5){\huge\textbf{1}} -\end{pspicture} - -\begin{pspicture}(5,5) - \psset{blendmode=2}% type /Screen - \psframe*[linecolor=red](0,1)(3,4) - \psframe[fillcolor=blue,fillstyle=shape](2,2)(5,5) - \psframe[fillcolor=green,fillstyle=shape](1,0)(4,3) - \pscircle[fillcolor=cyan,fillstyle=shape, - shapealpha=0.3](1.5,3.5){1.25} - \rput(1.5,3.5){\huge\textbf{2}} -\end{pspicture} -\hfill -\begin{pspicture}(5,5) - \psset{blendmode=3}% type /Multiply - \psframe*[linecolor=red](0,1)(3,4) - \psframe[fillcolor=blue,fillstyle=shape](2,2)(5,5) - \psframe[fillcolor=green,fillstyle=shape](1,0)(4,3) - \pscircle[fillcolor=cyan,fillstyle=shape, - shapealpha=0.3](1.5,3.5){1.25} - \rput(1.5,3.5){\huge\textbf{3}} -\end{pspicture} - -\begin{lstlisting} -\begin{pspicture}(5,5)% default blendmode - \psframe*[linecolor=red](0,1)(3,4) - \psframe[fillcolor=blue,fillstyle=shape](2,2)(5,5) - \psframe[fillcolor=green,fillstyle=shape](1,0)(4,3) - \pscircle[fillcolor=cyan,fillstyle=shape, - shapealpha=0.3](1.5,3.5){1.25} - \rput(1.5,3.5){\huge\textbf{0}} -\end{pspicture} -\hfill -\begin{pspicture}(5,5) - \psset{blendmode=1}% type /Compatible - \psframe*[linecolor=red](0,1)(3,4) - \psframe[fillcolor=blue,fillstyle=shape](2,2)(5,5) - \psframe[fillcolor=green,fillstyle=shape](1,0)(4,3) - \pscircle[fillcolor=cyan,fillstyle=shape, - shapealpha=0.3](1.5,3.5){1.25} - \rput(1.5,3.5){\huge\textbf{1}} -\end{pspicture} - -\begin{pspicture}(5,5) - \psset{blendmode=2}% type /Screen - \psframe*[linecolor=red](0,1)(3,4) - \psframe[fillcolor=blue,fillstyle=shape](2,2)(5,5) - \psframe[fillcolor=green,fillstyle=shape](1,0)(4,3) - \pscircle[fillcolor=cyan,fillstyle=shape, - shapealpha=0.3](1.5,3.5){1.25} - \rput(1.5,3.5){\huge\textbf{2}} -\end{pspicture} -\hfill -\begin{pspicture}(5,5) - \psset{blendmode=3}% type /Multiply - \psframe*[linecolor=red](0,1)(3,4) - \psframe[fillcolor=blue,fillstyle=shape](2,2)(5,5) - \psframe[fillcolor=green,fillstyle=shape](1,0)(4,3) - \pscircle[fillcolor=cyan,fillstyle=shape, - shapealpha=0.3](1.5,3.5){1.25} - \rput(1.5,3.5){\huge\textbf{3}} -\end{pspicture} -\end{lstlisting} - - -\iffalse -\begin{LTXexample}[width=5cm,wide] -\begin{pspicture}(5,5) - \psset{blendmode=4}% type /Hardlight - \psframe*[linecolor=red](0,1)(3,4) - \psframe[fillcolor=blue,fillstyle=shape](2,2)(5,5) - \psframe[fillcolor=green,fillstyle=shape](1,0)(4,3) - \pscircle[fillcolor=cyan,fillstyle=shape, - shapealpha=0.3](1.5,3.5){1.25} -\end{pspicture} -\end{LTXexample} - -\fi - -\clearpage - -\subsection{\nxLcs{addtopsstyle}} -\begin{verbatim} -\addtopsstyle{style-name}{settings} -\end{verbatim} - -This macro allows to add some more settings to an existing \Index{style}. -If the style is not defined, then \Lcs{addtopsstyle} behaves like the -already defined \Lcs{newpsstyle} macro. - -\begin{LTXexample}[width=5cm,wide] -\newpsstyle{Fiber}{linewidth=2pt} -\begin{pspicture}(5,5) - \psline[style=Fiber](0,0)(5,1) - \addtopsstyle{Fiber}{linecolor=green} - \psline[style=Fiber](0,1)(5,2) - \addtopsstyle{Fiber}{linestyle=dotted} - \psline[style=Fiber](0,2)(5,3) - \addtopsstyle{Fiber}{} - \psline[style=Fiber](0,3)(5,4) - \addtopsstyle{Fibber}{linecolor=red} - \psline[style=Fibber](0,4)(5,5) -\end{pspicture} -\end{LTXexample} - - -\clearpage - -\subsection{\nxLcs{pscircleOA}} -\begin{verbatim} -\pscircleOA[settings](xO,yO)(xA,yA) -\end{verbatim} - -$(x_0, y_0)$ is the center and $(x_A, y_A)$ a given point of the -circle. The radius is calculated by \TeX. - -\begin{LTXexample}[pos=t] -\begin{pspicture}[showgrid=true](-2,0)(8,8) -\pscircleOA(6,4)(4,4) -\pscircleOA[linecolor=blue](4,6)(4,4) -\pscircleOA[linewidth=2pt,linecolor=yellow](3,5)(4,4) -\pscircleOA*[opacity=0.3,linecolor=red](2,2)(4,4) -\end{pspicture} -\end{LTXexample} - - -\subsection{\nxLcs{psTextFrame}} -\begin{verbatim} -\psTextFrame[settings](x1,y1)(x2,y2){Text} -\end{verbatim} - -The \emph{Text} cannot have a linebreak. In case it is needed, put the \emph{Text} -into a \Lenv{minipage} or \Lcs{parbox}, as seen in the following example. The -\Lkeyword{ref}-option allows different placing and the \Lkeyword{rot}-option allows -the \Index{rotating} of the \emph{Text}. The macro itself first uses the -\Lcs{psframe} and the \Lcs{rput} macro with \Index{calculated coordinates}. - - -\begin{LTXexample}[pos=t] -\begin{pspicture}[showgrid=true](0,-0.5)(10,10) - \psTextFrame[linecolor=lightgray,ref=l](0,0.5)(4,1.5){Hallo} - \psTextFrame[linecolor=blue](2,4)(4,7){\color{blue}Hallo} - \psTextFrame[linestyle=dashed](9,9)(10,10){\huge H} - \psTextFrame*[linecolor=red,linestyle=dashed](7,7)(9,9){\Huge H} - \psTextFrame*[linecolor=red!40,ref=lB](7,4)(9,6){\Huge H} - \psTextFrame*[linecolor=blue!40,ref=rt](7,1)(9,3){\Huge H} - \psTextFrame[linestyle=dashed](4.5,0)(6.5,10){% - \parbox{2cm}{\centering Here comes some more text over several - lines, which is also horizontally and vertically centered and - written in a parbox.}} - \psTextFrame*[linecolor=cyan!20,rot=90](.5,2)(1.5,10){% - \parbox{8cm}{\centering Here comes some more text over several - lines and rotated by 90 degrees.}} -\end{pspicture} -\end{LTXexample} - -\subsection{Special coordinates} - -Additionally to the existing \Index{!-operator} for \Index{PostScript} coordinates, -there is new a \Index{*-operator}, which invokes the \Index{algebraic parser} before -the coordinates are passed to the default !-operator. The syntax -is pretty easy: \verb=( {f(x)})=. In the following example the -predefined value of Pi\index{$\pi$} from \LFile{pstricks.pro} is used. The x value -and the function must be enclosed -in braces when they contain spaces, round braces or sybolic names, like \verb+Pi+ for the -x value. - -\begin{LTXexample}[width=5cm,wide] -\SpecialCoor -\begin{pspicture}(0,-1)(5,1) - \psaxes{->}(0,0)(0,-1)(5,1) - \psline(0,0)(*{Pi} {sqrt(abs(cos(x)))}) - \psline{<->}(*{Pi} {cos(x)})(*5 {sin(x)*cos(x)}) -\end{pspicture} -\end{LTXexample} - -For a macro definition of the algebraic function the \verb+\string+ command -has to be used, otherwise \TeX{} expects the math mode in the following -example. - -\begin{LTXexample}[width=4cm,wide] -\def\F{\string x^2 } -\begin{pspicture}[showgrid=true](2,4) - \psline[linecolor=red](*1 {\F} )(*2 {\F} ) -\end{pspicture} -\end{LTXexample} - - - - -\subsection{Octogon-Symbol} - -An octogon symbol was added. -\begin{verbatim} -\newpsfontdotH{Octogon}[1 0 0 1 0 0]{PSTricksDotFont}{(f)}{(g)} -\newpsfontdotH{BoldOctogon}[1 0 0 1 0 0]{PSTricksDotFont}{(F)}{(g)} -\newpsfontdot{SolidOctogon}[1 0 0 1 0 0]{PSTricksDotFont}{(g)} -\end{verbatim} - -\begin{LTXexample}[width=4cm,wide] -\psset{dotscale=4} -\begin{pspicture}[showgrid=true](4,4) -\psdot[dotstyle=Octogon](1,1) -\psdot[dotstyle=BoldOctogon](2,2) -\psdot[dotstyle=SolidOctogon](3,3) -\end{pspicture} -\end{LTXexample} - - -\subsection{Code changes} - -\begin{verbatim} -% hv 2007-10-16 to fix the bug in pst-node with \\[name=...] -\def\ps@ifnextchar#1#2#3{% - \let\reserved@d= #1% - \def\reserved@a{#2}\def\reserved@b{#3}% - \futurelet\@let@token\ps@ifnch} -\def\ps@ifnch{% - \ifx\@let@token\reserved@d \let\reserved@b\reserved@a \fi - \reserved@b -} -\end{verbatim} - - - - -%-------------------------------------------------------------------------------------- -\section{The PostScript header files} -\subsection{\texttt{pstricks.pro}} -%-------------------------------------------------------------------------------------- - -\begin{verbatim} -/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{verbatim} - -This new PostScript function allows to calculate the distance -between two points, given by their coordinates whereas the -existing \LPS{/Pyth} does this for two values. - -\subsection{\texttt{pst-dots.pro}} -\verb+pst-dots.pro+ ist the file which defines the so called softfont PSTRocksFontDot, which -collects all PSTricks symbols, which are not part of one of the standard PostScript fonts. -The octogon symbol is defined as: -\begin{verbatim} - /OctogonPath { - 228 550 moveto 7 { -456 0 rlineto 45 rotate } repeat closepath - } def - /SolidOctogon { OctogonPath fill } def - /Octogon { OctogonPath .89 .89 scale OctogonPath eofill } def - /BoldOctogon { OctogonPath .79 .79 scale OctogonPath eofill } def -% -\end{verbatim} - - -\part{\texttt{pst-node} -- package} - -\section{\texttt{pst-node.tex} (\NODEfileversion -- \NODEfiledate)} - -\subsection{Bugfix for \texttt{psmatrix}} -A long standing bug with \Lenv{psmatrix} and using the \Lkeyword{name} option is now fixed. -The following works as expected: - -\begin{LTXexample}[width=2cm] -\begin{psmatrix}[rowsep=5mm] -[name=a]a\\ -[name=b]b\\[1cm] -[name=c]c\\ -\end{psmatrix} -\ncline{a}{b} -\ncarc{a}{c} -\end{LTXexample} - -An optional argument after \Lcs{\textbackslash} is now scanned in the correct way. - - -\subsection{New option \texttt{pcRef}} -There is a new option \Lkeyword{pcRef} for the \Lcs{ncangles} connection\index{node connection}. By default, -the reference point for the \Lkeyword{armA} option is the border of the node. This makes -it difficult to get horizontically aligned lines for different node images. -With \texttt{pcRef=true} the node center is the reference point and the connection is -still drawn from the border of the node. - -The first three images show the default behaviour: - -\makebox[\linewidth]{% -\begin{pspicture}(5,4) - \cnode(2.5,3.5){0.2}{A} - \cnode(0.5,1){0.2}{B1} - \cnode(1.5,1){0.4}{B2} - \cnode(2.6,1){0.6}{B3} - \cnode(4,1){0.8}{B4} - \psset{angleB=90,angleA=-90,armA=0.5cm} - \ncangles{A}{B1} - \ncangles{A}{B2} - \ncangles{A}{B3} - \ncangles{A}{B4} -\end{pspicture} -% -\begin{pspicture}(5,4) - \cnode(2.5,3.5){0.4}{A} - \cnode(0.5,1){0.2}{B1} - \cnode(1.5,1){0.4}{B2} - \cnode(2.6,1){0.6}{B3} - \cnode(4,1){0.8}{B4} - \psset{angleB=90,angleA=-90,armA=0.5cm} - \ncangles{A}{B1} - \ncangles{A}{B2} - \ncangles{A}{B3} - \ncangles{A}{B4} -\end{pspicture} -% -\begin{pspicture}(5,4) - \cnode(2.5,3.5){0.8}{A} - \cnode(0.5,1){0.2}{B1} - \cnode(1.5,1){0.4}{B2} - \cnode(2.6,1){0.6}{B3} - \cnode(4,1){0.8}{B4} - \psset{angleB=90,angleA=-90,armA=0.5cm} - \ncangles{A}{B1} - \ncangles{A}{B2} - \ncangles{A}{B3} - \ncangles{A}{B4} -\end{pspicture} -} - -The next three images display the influence of \texttt{pcRef=true}; the horizontal line -for the three examples is on the same height: - -\makebox[\linewidth]{% -\begin{pspicture}(5,4) - \cnode(2.5,3.5){0.2}{A} - \cnode(0.5,1){0.2}{B1} - \cnode(1.5,1){0.4}{B2} - \cnode(2.6,1){0.6}{B3} - \cnode(4,1){0.8}{B4} - \psset{angleB=90,angleA=-90,armA=1cm} - \ncangles[pcRef=true]{A}{B1} - \ncangles[pcRef=true]{A}{B2} - \ncangles[pcRef=true]{A}{B3} - \ncangles[pcRef=true]{A}{B4} -\end{pspicture} -% -\begin{pspicture}(5,4) - \cnode(2.5,3.5){0.4}{A} - \cnode(0.5,1){0.2}{B1} - \cnode(1.5,1){0.4}{B2} - \cnode(2.6,1){0.6}{B3} - \cnode(4,1){0.8}{B4} - \psset{angleB=90,angleA=-90,armA=1cm} - \ncangles[pcRef=true]{A}{B1} - \ncangles[pcRef=true]{A}{B2} - \ncangles[pcRef=true]{A}{B3} - \ncangles[pcRef=true]{A}{B4} -\end{pspicture} -% -\begin{pspicture}(5,4) - \cnode(2.5,3.5){0.8}{A} - \cnode(0.5,1){0.2}{B1} - \cnode(1.5,1){0.4}{B2} - \cnode(2.6,1){0.6}{B3} - \cnode(4,1){0.8}{B4} - \psset{angleB=90,angleA=-90,armA=1cm} - \ncangles[pcRef=true]{A}{B1} - \ncangles[pcRef=true]{A}{B2} - \ncangles[pcRef=true]{A}{B3} - \ncangles[pcRef=true]{A}{B4} -\end{pspicture} -} - -\begin{lstlisting} -\begin{pspicture}(5,4) - \cnode(2.5,3.5){0.2}{A} - \cnode(0.5,1){0.2}{B1} - \cnode(1.5,1){0.4}{B2} - \cnode(2.6,1){0.6}{B3} - \cnode(4,1){0.8}{B4} - \psset{angleB=90,angleA=-90,armA=1cm} - \ncangles[pcRef=true]{A}{B1} - \ncangles[pcRef=true]{A}{B2} - \ncangles[pcRef=true]{A}{B3} - \ncangles[pcRef=true]{A}{B4} -\end{pspicture} -% -\begin{pspicture}(5,4) - \cnode(2.5,3.5){0.4}{A} - \cnode(0.5,1){0.2}{B1} - \cnode(1.5,1){0.4}{B2} - \cnode(2.6,1){0.6}{B3} - \cnode(4,1){0.8}{B4} - \psset{angleB=90,angleA=-90,armA=1cm} - \ncangles[pcRef=true]{A}{B1} - \ncangles[pcRef=true]{A}{B2} - \ncangles[pcRef=true]{A}{B3} - \ncangles[pcRef=true]{A}{B4} -\end{pspicture} -% -\begin{pspicture}(5,4) - \cnode(2.5,3.5){0.8}{A} - \cnode(0.5,1){0.2}{B1} - \cnode(1.5,1){0.4}{B2} - \cnode(2.6,1){0.6}{B3} - \cnode(4,1){0.8}{B4} - \psset{angleB=90,angleA=-90,armA=1cm} - \ncangles[pcRef=true]{A}{B1} - \ncangles[pcRef=true]{A}{B2} - \ncangles[pcRef=true]{A}{B3} - \ncangles[pcRef=true]{A}{B4} -\end{pspicture} -\end{lstlisting} - -\part{\texttt{pst-plot} -- package} - -\section{\texttt{pst-plot.tex} (\PLOTfileversion -- \PLOTfiledate)} - -\iffalse - -\subsection{Axes} -The behaviour of the optional argument \Lkeyword{Dx} changed. Using -negative values will now decrease the labels with the correct -value of \Lkeyword{Dx}: - -\psset{xunit=1cm} -\begin{LTXexample}[wide,width=6cm] -\begin{pspicture}(-0.5,-1)(6,4) - \psaxes[Dy=-2, dy=1, - Ox=4000, Dx=-1000, dx=1.5]{->}(10,4) -\end{pspicture} -\end{LTXexample} - -\vspace{1cm} -\begin{pspicture}(-0.5,-1)(10,3) - \psaxes[Dy=2, dy=1, Ox=4000, Dx=1000, dx=1.5]{->}(10,3)(0,0) - \rput(5,2){Positive values for Dx und Dy} -\end{pspicture} - -\begin{pspicture}(-0.5,-1)(10,3) - \psaxes[Dy=-2, dy=1, Ox=4000, Dx=-1000, dx=1.5]{->}(10,3)(0,0) - \rput(5,2){Negative values for Dx und Dy} -\end{pspicture} - -\begin{lstlisting} -\begin{pspicture}(-0.5,-1)(10,3) - \psaxes[Dy=2, dy=1, Ox=4000, Dx=1000, dx=1.5]{->}(10,3)(0,0) - \rput(5,2){Positive values for Dx und Dy} -\end{pspicture} - -\begin{pspicture}(-0.5,-1)(10,3) - \psaxes[Dy=-2, dy=1, Ox=4000, Dx=-1000, dx=1.5]{->}(10,3)(0,0) - \rput(5,2){Negative values for Dx und Dy} -\end{pspicture} -\end{lstlisting} -%\clearpage - -\fi -\subsection{New options \texttt{LineToXAxis} and \texttt{LineToYAxis}} - - -\psset{xunit=0.0333cm,yunit=2.5cm} -\begin{pspicture}(0,-1)(400,1) - \psline{->}(0,0)(400,0) - \psline{->}(0,-1)(0,1) - \psplot[plotstyle=LineToXAxis,linestyle=dashed,plotpoints=50, - linecolor=red!40, - showpoints=true,dotstyle=o,dotsize=0.2]{0}{360}{x sin} -\end{pspicture} - -\begin{lstlisting} -\psset{xunit=0.0333cm,yunit=2.5cm} -\begin{pspicture}(0,-1)(400,1) - \psline{->}(0,0)(400,0) - \psline{->}(0,-1)(0,1) - \psplot[plotstyle=LineToXAxis,linestyle=dashed,plotpoints=50, - linecolor=red!40, - showpoints=true,dotstyle=o,dotsize=0.2]{0}{360}{x sin} -\end{pspicture} -\end{lstlisting} - - - -\psset{xunit=0.0333cm,yunit=2.5cm} -\begin{pspicture}(0,-1.2)(400,1.4) - \psline{->}(0,0)(390,0) - \psline{->}(0,-1.1)(0,1.2) - \psplot[plotstyle=LineToYAxis,linestyle=dashed,plotpoints=50, - linecolor=blue!40, - showpoints=true]{0}{360}{x cos} -\end{pspicture} - -\begin{lstlisting} -\psset{xunit=0.0333cm,yunit=2.5cm} -\begin{pspicture}(0,-1.2)(400,1.4) - \psline{->}(0,0)(390,0) - \psline{->}(0,-1.1)(0,1.2) - \psplot[plotstyle=LineToYAxis,linestyle=dashed,plotpoints=50, - linecolor=blue!40, - showpoints=true]{0}{360}{x cos} -\end{pspicture} -\end{lstlisting} - - -\part{\texttt{pst-tree} -- package} -\section{\texttt{pst-tree.tex} (\TREEfileversion -- \TREEfiledate)} -There was a bug with \texttt{style=...} due to a missing \Lcs{use\textat par} in -\Lcs{pstree\textat ii}. - - -\nocite{*} -\bibliographystyle{plain} -\bibliography{PSTricks} - -\printindex - - -\end{document} diff --git a/Master/texmf-dist/doc/generic/pstricks/pst-user.tgz b/Master/texmf-dist/doc/generic/pstricks/pst-user.tgz new file mode 100644 index 00000000000..f234c090838 Binary files /dev/null and b/Master/texmf-dist/doc/generic/pstricks/pst-user.tgz differ diff --git a/Master/texmf-dist/doc/generic/pstricks/pst-usrfull.pdf b/Master/texmf-dist/doc/generic/pstricks/pst-usrfull.pdf new file mode 100644 index 00000000000..ea5caefd0f1 Binary files /dev/null and b/Master/texmf-dist/doc/generic/pstricks/pst-usrfull.pdf differ diff --git a/Master/texmf-dist/doc/generic/pstricks/pstnews1-14.pdf b/Master/texmf-dist/doc/generic/pstricks/pstnews1-14.pdf deleted file mode 100644 index 77e7bbb34fc..00000000000 Binary files a/Master/texmf-dist/doc/generic/pstricks/pstnews1-14.pdf and /dev/null differ diff --git a/Master/texmf-dist/doc/generic/pstricks/pstnews1-14.tex b/Master/texmf-dist/doc/generic/pstricks/pstnews1-14.tex deleted file mode 100644 index 0b72f9889f4..00000000000 --- a/Master/texmf-dist/doc/generic/pstricks/pstnews1-14.tex +++ /dev/null @@ -1,94 +0,0 @@ -\documentclass[12pt]{article} -\usepackage[T1]{fontenc} -\usepackage[latin1]{inputenc} -%\usepackage{geometry} -\usepackage{pst-all} -\usepackage{showexpl} -\usepackage{tabularx} -\SpecialCoor -%\usepackage[ps2pdf,colorlinks,linktocpage]{hyperref} -\usepackage[colorlinks,linktocpage]{hyperref} -\def\UrlFont{\small\ttfamily} -\makeatletter -\def\verbatim@font{\small\normalfont\ttfamily} -\makeatother -%\usepackage{color} -\definecolor{hellgelb}{rgb}{1,1,0.8} -\definecolor{colKeys}{rgb}{0,0,1} -\definecolor{colIdentifier}{rgb}{0,0,0} -\definecolor{colComments}{rgb}{1,0,0} -\definecolor{colString}{rgb}{0,0.5,0} -% -\usepackage{listings} -\lstset{% - language=PSTricks,% - float=hbp,% - basicstyle=\ttfamily\small, % - identifierstyle=\color{colIdentifier}, % - keywordstyle=\color{colKeys}, % - stringstyle=\color{colString}, % - commentstyle=\color{colComments}, % - columns=flexible, % - tabsize=4, % - frame=single, % - extendedchars=true, % - showspaces=false, % - showstringspaces=false, % - numbers=left, % - numberstyle=\tiny, % - breaklines=true, % -% backgroundcolor=\color{hellgelb}, % - breakautoindent=true, % - captionpos=b,% - xleftmargin=0pt% -} - -%\parindent=0pt -\newcommand\verbI[1]{{\small\texttt{#1}}} -\newcommand\CMD[1]{{\texttt{\textbackslash#1}}} -% -%\psset{subgriddiv=0,griddots=5,gridlabels=7pt} -% -\DeclareRobustCommand\cs[1]{\texttt{\char`\\#1}} -\def\PS{PostScript} -% -\begin{document} -\title{\texttt{PSTricks -- version 1.14}\\new macros and bugfixes for \texttt{pstricks}} -\author{Herbert Voß\thanks{% -\url{Herbert.Voss@perce.de}}} -\date{\today} - -\maketitle - -\begin{abstract} -This new version of \texttt{pstricks.tex} depends on the also new prologue file -\texttt{pstricks.pro} (v 1.00), which should go into the local \TeX-directory \url{$TEXMFLOCAL/dvips/}. -\end{abstract} - - -\tableofcontents - -%-------------------------------------------------------------------------------------- -\section{Color handling} -%-------------------------------------------------------------------------------------- -The new color package \verb+xcolor+ has a lot of interesting features, but it needs -some modification to the code of \verb+pstricks.sty+ and \verb+pstricks.tex+. The -package \verb+pstricks.sty+ superseded the old package \verb+pstcol.sty+, which is -now obsolet. The version on CTAN now does nothing else as loading \verb+pstricks.sty+. - -There are some important facts for using colors inside PSTricks with \LaTeX: - -\begin{itemize} -\item load always \verb+pstricks+ as first package; -\item use always the \LaTeX\ syntax for defining colors and \textbf{not} the PSTricks own one.\\ - \verb+\definecolor ...+ is the correct setting! -\item do not use the PSTricks style for using color, use always \verb+\color{}+. -\end{itemize} - -%-------------------------------------------------------------------------------------- -\section{Missing star version} -%-------------------------------------------------------------------------------------- -\verb+\psdot*+ and \verb+\psdots*+ are now supported by PSTricks. Both were missing -in the old versions. - -\end{document} diff --git a/Master/texmf-dist/doc/generic/pstricks/pstnews1-15.pdf b/Master/texmf-dist/doc/generic/pstricks/pstnews1-15.pdf deleted file mode 100644 index ce326dc8e1a..00000000000 Binary files a/Master/texmf-dist/doc/generic/pstricks/pstnews1-15.pdf and /dev/null differ diff --git a/Master/texmf-dist/doc/generic/pstricks/pstnews1-15.tex b/Master/texmf-dist/doc/generic/pstricks/pstnews1-15.tex deleted file mode 100644 index 7a1b54508c3..00000000000 --- a/Master/texmf-dist/doc/generic/pstricks/pstnews1-15.tex +++ /dev/null @@ -1,204 +0,0 @@ -\documentclass[12pt]{article} -\usepackage[T1]{fontenc} -\usepackage[latin1]{inputenc} -%\usepackage{geometry} -\usepackage{pst-all} -\usepackage{showexpl} -\usepackage{tabularx,array,longtable} -\SpecialCoor -\usepackage[colorlinks,linktocpage]{hyperref} -\def\UrlFont{\small\ttfamily} -\makeatletter -\def\verbatim@font{\small\normalfont\ttfamily} -\makeatother -%\usepackage{color} -\definecolor{hellgelb}{rgb}{1,1,0.8} -\definecolor{colKeys}{rgb}{0,0,1} -\definecolor{colIdentifier}{rgb}{0,0,0} -\definecolor{colComments}{rgb}{1,0,0} -\definecolor{colString}{rgb}{0,0.5,0} -% -\usepackage{listings} -\lstset{% - language=PSTricks,% - float=hbp,% - basicstyle=\ttfamily\small, % - identifierstyle=\color{colIdentifier}, % - keywordstyle=\color{colKeys}, % - stringstyle=\color{colString}, % - commentstyle=\color{colComments}, % - columns=flexible, % - tabsize=4, % - frame=single, % - extendedchars=true, % - showspaces=false, % - showstringspaces=false, % - numbers=left, % - numberstyle=\tiny, % - breaklines=true, % -% backgroundcolor=\color{hellgelb}, % - breakautoindent=true, % - captionpos=b,% - xleftmargin=0pt% -} - -%\parindent=0pt -\newcommand\verbI[1]{{\small\texttt{#1}}} -\newcommand\CMD[1]{{\texttt{\textbackslash#1}}} -\let\Lcs\CMD -% -%\psset{subgriddiv=0,griddots=5,gridlabels=7pt} -% -\DeclareRobustCommand\cs[1]{\texttt{\char`\\#1}} -\def\PS{PostScript} -% -\begin{document} -\title{\texttt{PSTricks -- version 1.15}\\new macros and bugfixes for \texttt{pstricks}} -\author{Herbert Voß\thanks{% -\url{Herbert.Voss@pstricks.de}}} -\date{\today} - -\maketitle - -\begin{abstract} -This new version of \texttt{pstricks.tex} depends on the also new prologue file -\texttt{pstricks.pro} (v 1.01) and pst-dots.pro (v. 2.00), which should go into -the local \TeX-directory \url{$TEXMFLOCAL/dvips/}. -\end{abstract} - - -\tableofcontents - -\clearpage -%-------------------------------------------------------------------------------------- -\section{linecap} -%-------------------------------------------------------------------------------------- -This was already introduced with version 1.14, but I forgot to mentioned it. -For the line ends one can use the ,,arrows``{} \texttt{c-c}, but only for the ends. For dashed -lines the option \verb+linecap+ can be set to the value 1 to get the dashes with -rounded ends, too. - -\begin{pspicture}(5,3) -\psline[linestyle=dashed,linewidth=8pt,dash=5mm 5mm,linecap=2](0,2.5)(5,2.5) -\psline[linestyle=dashed,linewidth=8pt,dash=5mm 5mm,linecap=1](0,1.5)(5,1.5) -\psline[linestyle=dashed,linewidth=8pt,dash=5mm 5mm](0,0.5)(5,0.5) -\end{pspicture} - -\begin{lstlisting} -\begin{pspicture}(5,3) -\psline[linestyle=dashed,linewidth=8pt,dash=5mm 5mm,linecap=2](0,2.5)(5,2.5) -\psline[linestyle=dashed,linewidth=8pt,dash=5mm 5mm,linecap=1](0,1.5)(5,1.5) -\psline[linestyle=dashed,linewidth=8pt,dash=5mm 5mm](0,0.5)(5,0.5) -\end{pspicture} -\end{lstlisting} - -It is obvious that only the value 1 makes sense for the dashed lines. - -\section{Dots} -Long time ago, Etienne Riga sent the code for some new dotstyles -which are now part of pstricks. - -\psset{dotscale=1.5} -\let\Loption\texttt -\def\multiDot#1{\multido{\nA=0+1}{3}{\psdot[dotstyle=#1]\kern1em}} -\def\cmultiDot#1{\multido{\nA=0+1}{3}{\psdot*[dotstyle=#1]\kern1em}}%} -\begin{longtable}{@{}l@{\kern2em}>{\ttfamily}c>{\ttfamily}c| - l@{\kern2em}>{\ttfamily}c>{\ttfamily}c@{}} -\emph{Name} & \Lcs{psdot} & \Lcs{psdot*} & -\emph{Name} & \Lcs{psdot} & \Lcs{psdot*} \\\hline -\endhead -\Loption{*} & \multiDot{*} & \cmultiDot{*} &%\\ -\Loption{o} & \multiDot{o} & \cmultiDot{o}\\ -\Loption{Bo} & \multiDot{Bo} & \cmultiDot{Bo}&%\\ -\Loption{x} & \multiDot{x} & \cmultiDot{x}\\ -\Loption{+} & \multiDot{+} & \cmultiDot{+}&%\\ -\Loption{B+} & \multiDot{B+} & \cmultiDot{B+}\\ -\Loption{Add} & \multiDot{Add} & \cmultiDot{Add}&%\\ -\Loption{BoldAdd} & \multiDot{BoldAdd} & \cmultiDot{BoldAdd}\\ -\Loption{Oplus} & \multiDot{Oplus} & \cmultiDot{Oplus}&%\\ -\Loption{BoldOplus} & \multiDot{BoldOplus} & \cmultiDot{BoldOplus}\\ -\Loption{SolidOplus} & \multiDot{SolidOplus} & \cmultiDot{SolidOplus} & -\Loption{Hexagon} & \multiDot{Hexagon} & \cmultiDot{Hexagon}\\ -\Loption{BoldHexagon} & \multiDot{BoldHexagon} & \cmultiDot{BoldHexagon}& -\Loption{SolidHexagon} & \multiDot{SolidHexagon} & \cmultiDot{SolidHexagon}\\ -\Loption{asterisk} & \multiDot{asterisk} & \cmultiDot{asterisk}&%\\ -\Loption{Basterisk} & \multiDot{Basterisk} & \cmultiDot{Basterisk}\\ -\Loption{Asterisk} & \multiDot{Asterisk} & \cmultiDot{Asterisk}&%\\ -\Loption{BoldAsterisk} & \multiDot{BoldAsterisk} & \cmultiDot{BoldAsterisk}\\ -\Loption{SolidAsterisk} & \multiDot{SolidAsterisk} & \cmultiDot{SolidAsterisk}& -\Loption{oplus} & \multiDot{oplus} & \cmultiDot{oplus}\\ -\Loption{otimes} & \multiDot{otimes} & \cmultiDot{otimes}& -\Loption{Otimes} & \multiDot{Otimes} & \cmultiDot{Otimes}\\ -\Loption{BoldOtimes} & \multiDot{BoldOtimes} & \cmultiDot{BoldOtimes}& -\Loption{SolidOtimes} & \multiDot{SolidOtimes} & \cmultiDot{SolidOtimes}\\ -\Loption{Mul} & \multiDot{Mul} & \cmultiDot{Mul}&%\\ -\Loption{BoldMul} & \multiDot{BoldMul} & \cmultiDot{BoldMul}\\ -\Loption{|} & \multiDot{|} & \cmultiDot{|}&%\\ -\Loption{B|}\iffalse\index{B*@\texttt{B}|}\fi & \multiDot{B|} & \cmultiDot{B|}\\ -\Loption{Bar} & \multiDot{Bar} & \cmultiDot{Bar}&%\\ -\Loption{BoldBar} & \multiDot{BoldBar} & \cmultiDot{BoldBar}\\ -\Loption{Bullet} & \multiDot{Bullet} & \cmultiDot{Bullet}&%\\ -\Loption{Circle} & \multiDot{Circle} & \cmultiDot{Circle}\\ -\Loption{BoldCircle} & \multiDot{BoldCircle} & \cmultiDot{BoldCircle}&%\\ -\Loption{square} & \multiDot{square} & \cmultiDot{square}\\ -\Loption{Bsquare} & \multiDot{Bsquare} & \cmultiDot{Bsquare} & -\Loption{square*} & \multiDot{square*} & \cmultiDot{square*}\\ -\Loption{Square} & \multiDot{Square} & \cmultiDot{Square}&%\\ -\Loption{BoldSquare} & \multiDot{BoldSquare} & \cmultiDot{BoldSquare}\\ -\Loption{SolidSquare} & \multiDot{SolidSquare} & \cmultiDot{SolidSquare}& -\Loption{diamond} & \multiDot{diamond} & \cmultiDot{diamond}\\ -\Loption{Bdiamond} & \multiDot{Bdiamond} & \cmultiDot{Bdiamond}&%\\ -\Loption{diamond*} & \multiDot{diamond*} & \cmultiDot{diamond}\\ -\Loption{Diamond} & \multiDot{Diamond} & \cmultiDot{Diamond}&%\\ -\Loption{BoldDiamond} & \multiDot{BoldDiamond} & \cmultiDot{BoldDiamond}\\ -\Loption{SolidDiamond} & \multiDot{SolidDiamond} & \cmultiDot{SolidDiamond}& -\Loption{triangle} & \multiDot{triangle} & \cmultiDot{triangle}\\ -\Loption{Btriangle} & \multiDot{Btriangle} & \cmultiDot{Btriangle}& -\Loption{triangle*} & \multiDot{triangle*} & \cmultiDot{triangle*}\\ -\Loption{Triangle} & \multiDot{Triangle} & \cmultiDot{Triangle}&%\\ -\Loption{BoldTriangle} & \multiDot{BoldTriangle} & \cmultiDot{BoldTriangle}\\ -\Loption{SolidTriangle} & \multiDot{SolidTriangle} & \cmultiDot{SolidTriangle}& -\Loption{pentagon} & \multiDot{pentagon} & \cmultiDot{pentagon}\\ -\Loption{Bpentagon} & \multiDot{Bpentagon} & \cmultiDot{Bpentagon}&%\\ -\Loption{pentagon*} & \multiDot{pentagon*}& \cmultiDot{pentagon*}\\ -\Loption{Pentagon} & \multiDot{Pentagon} & \cmultiDot{Pentagon}&%\\ -\Loption{BoldPentagon} & \multiDot{BoldPentagon} & \cmultiDot{BoldPentagon}\\ -\Loption{SolidPentagon} & \multiDot{SolidPentagon} & \cmultiDot{SolidPentagon}& -\Loption{Hexagon} & \multiDot{Hexagon} & \cmultiDot{Hexagon}\\ -\Loption{BoldHexagon} & \multiDot{BoldHexagon} & \cmultiDot{BoldHexagon}& -\Loption{SolidHexagon} & \multiDot{SolidHexagon} & \cmultiDot{SolidHexagon} -\end{longtable} - - -\section{\texttt{pstricks.pro}} -The PostScript header file defines the following functions and constants, which -can be used -in arguments for \CMD{psplot} or any other macro, which reads PostScript code. - -\begin{lstlisting}[basicstyle=\ttfamily\footnotesize] -/Sqrt { dup 0 lt { pop 0 } { sqrt } ifelse } def% return 0 for negative arguments -/Atan { /atan load stopped { pop pop 0 } if } def% return 0 if atan not known -/ATAN1 {neg -1 atan 180 sub } def % atan(x) (only one parameter) -/Div { dup 0 eq { pop } { div } ifelse } def % control the division -/NET { neg exch neg exch T } def % change coordinate system to the negative one -/Pyth { dup mul exch dup mul add sqrt } def % Pythagoras, epects 2 parameter -/PtoC { 2 copy cos mul 3 1 roll sin mul } def % Polar to Cartesian -%----------------- hv added 20050516 --------------- -/Pi 3.14159265359 def -/TwoPi 6.28318530718 def -/Euler 2.71828182846 def -/RadtoDeg { 180 mul Pi div } bind def % convert from radian to degrees -/DegtoRad { Pi mul 180 div } bind def % viceversa -\end{lstlisting} - -\section{Packages} -The package \texttt{pst-char} is now part of \texttt{pst-text} and the -package \texttt{pst-ghsb} is now part of \texttt{pst-grad}. The macros -and enviroments will work in the same way. - -The documented source code of \texttt{pstricks} and \texttt{pst-node} is -now available as a pdf file with a source which can be run by pdf\LaTeX. -Rolf Niepraschk modified the old sources from Timothy Van Zandt for -running with \LaTeX\ and/or pdf\LaTeX. - -\end{document} diff --git a/Master/texmf-dist/doc/generic/pstricks/test-pst.pdf b/Master/texmf-dist/doc/generic/pstricks/test-pst.pdf new file mode 100644 index 00000000000..2ac2bd0199a Binary files /dev/null and b/Master/texmf-dist/doc/generic/pstricks/test-pst.pdf differ diff --git a/Master/texmf-dist/doc/generic/pstricks/test-pst.tex b/Master/texmf-dist/doc/generic/pstricks/test-pst.tex new file mode 100644 index 00000000000..2af57b5daa6 --- /dev/null +++ b/Master/texmf-dist/doc/generic/pstricks/test-pst.tex @@ -0,0 +1,257 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -*- Mode: Latex -*- %%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% test-pst.tex --- Various PSTricks tests, from the PSTricks chapter +%% of "The LaTeX Graphics Companion" (by Goossens, Rahtz, +%% Mittelbach, Addison Wesley, 1997) +%% +%% Author : Sebastian RAHTZ (Oxford University - GB) +%% +%% Created the : Tue Feb 3 20:37:47 1998 +%% Last mod. by : Denis GIROU (CNRS/IDRIS - France) +%% Last mod. the : Wed May 5 20:09:18 1999 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\documentclass{article} + +\usepackage[latin1]{inputenc} % From LaTeX distribution +\usepackage{calc} % From LaTeX distribution +\usepackage{graphicx} % From LaTeX distribution +\usepackage{ifthen} % From LaTeX distribution +\usepackage{subfigure} % From CTAN/macros/latex/contrib/supported/subfigure +\usepackage{pst-all} % From PSTricks +\usepackage{pst-poly} % From pstricks/contrib/pst-poly +\usepackage{multido} % From PSTricks +\input{random.tex} % From CTAN/macros/generic + +% Take care that on some non Unix systems, you may have to replace +% the / character by, for instance, the : one (\input{lgc:#2.inl}}) +\newcommand{\ExampleSubFigure}[2][0.3333]{% +\subfigure[Example #2]{% + \begin{minipage}[t]{#1\textwidth} + \parbox[b]{\textwidth}{% + \centering + \input{lgc/#2.inl}} + \end{minipage}}} + +\newpsobject{showgrid}{psgrid}{subgriddiv=1,griddots=10,gridlabels=6pt} + +% New colors defined +\definecolor{brown}{rgb}{.65, .16, .16} +\definecolor{lightblue}{rgb}{.68, .85, .9} +\definecolor{palegreen}{rgb}{.6, .98, .6} +\definecolor{pink}{rgb}{1, .75, .8} +\definecolor{wheat}{rgb}{.96, .87, .7} + +% Layout changes +\textheight=23cm +\topmargin=-2cm +\textwidth=16cm +\oddsidemargin=0cm +\evensidemargin=0cm + +\begin{document} + +\title{Test file for the PSTricks 97 distribution:\\ + most of the PSTricks examples of\\ + \emph{The \LaTeX{} Graphics Companion}} +\author{Sebastian \textsc{Rahtz} --- March 1997} +\date{Version 1.3 (September 9, 1998)} +\maketitle + +\begin{figure}[!htbp] + \centering + \ExampleSubFigure{4-2-1}% + \ExampleSubFigure{4-2-2}% + \ExampleSubFigure{4-2-3} + \ExampleSubFigure{4-2-4}% + \ExampleSubFigure{4-2-5} + \caption{Section 2} +\end{figure} + +\begin{figure}[!htbp] + \centering + \ExampleSubFigure{4-3-1}% + \ExampleSubFigure{4-3-2} + \caption{Section 3} +\end{figure} + +\clearpage +\begin{figure}[!htbp] + \centering + \ExampleSubFigure{4-4-1}% + \ExampleSubFigure{4-4-2}% + \ExampleSubFigure{4-4-3} + \ExampleSubFigure{4-4-4}% + \ExampleSubFigure{4-4-5}% + \ExampleSubFigure{4-4-6} + \ExampleSubFigure{4-4-7}% + \ExampleSubFigure{4-4-8}% + \ExampleSubFigure{4-4-9} + \ExampleSubFigure{4-4-10}% + \ExampleSubFigure{4-4-11}% + \ExampleSubFigure{4-4-12} + \caption{Section 4} +\end{figure} + +\clearpage +\begin{figure}[!htbp] + \centering + \ExampleSubFigure[0.5]{4-5-1}% + \ExampleSubFigure[0.5]{4-5-2} + \ExampleSubFigure[0.75]{4-5-3}% + \ExampleSubFigure[0.25]{4-5-4} + \ExampleSubFigure[0.15]{4-5-5}% + \ExampleSubFigure[0.25]{4-5-6}% + \ExampleSubFigure[0.2]{4-5-7}% + \ExampleSubFigure[0.2]{4-5-8}% + \ExampleSubFigure[0.2]{4-5-9} + \ExampleSubFigure[0.5]{4-5-10}% + \ExampleSubFigure[0.5]{4-5-11} + \caption{Section 5-A} +\end{figure} + +\clearpage +\begin{figure}[!htbp] + \centering + \ExampleSubFigure[1]{4-5-13} + \ExampleSubFigure[1]{4-5-14} + \ExampleSubFigure[1]{4-5-16} + \caption{Section 5-B} +\end{figure} + +\clearpage +\begin{figure}[!htbp] + \centering + \ExampleSubFigure{4-6-1}% + \ExampleSubFigure{4-6-2}% + \ExampleSubFigure{4-6-3} + \ExampleSubFigure{4-6-4}% + \ExampleSubFigure{4-6-5}% + \ExampleSubFigure{4-6-6} + \ExampleSubFigure{4-6-7}% + \ExampleSubFigure{4-6-8}% + \ExampleSubFigure{4-6-9} + \ExampleSubFigure{4-6-10}% + \ExampleSubFigure{4-6-11}% + \ExampleSubFigure{4-6-12} + \ExampleSubFigure{4-6-13}% + \ExampleSubFigure{4-6-14}% + \ExampleSubFigure{4-6-15} + \ExampleSubFigure{4-6-16}% + \ExampleSubFigure{4-6-17}% + \ExampleSubFigure{4-6-18} + \caption{Section 6-A} +\end{figure} + +\clearpage +\begin{figure}[!htbp] + \centering + \ExampleSubFigure{4-6-19}% + \ExampleSubFigure{4-6-20}% + \ExampleSubFigure{4-6-21} + \ExampleSubFigure{4-6-22}% + \ExampleSubFigure{4-6-23}% + \ExampleSubFigure{4-6-24} + \ExampleSubFigure{4-6-25} + \caption{Section 6-B} +\end{figure} + +\begin{figure}[!htbp] + \centering + \ExampleSubFigure[1]{4-6-26} + \ExampleSubFigure{4-6-27}% + \ExampleSubFigure{4-6-28}% + \ExampleSubFigure{4-6-29} + \ExampleSubFigure[0.3333]{4-6-30}% + \ExampleSubFigure[0.6667]{4-6-31} + \ExampleSubFigure[1]{4-6-32} + \caption{Section 6-C} +\end{figure} + +\clearpage +\begin{figure}[!htbp] + \centering + \ExampleSubFigure[1]{4-6-33} + \ExampleSubFigure[0.5]{4-6-34}% + \ExampleSubFigure[0.5]{4-6-35} + \ExampleSubFigure[0.5]{4-6-36}% + \ExampleSubFigure[0.5]{4-6-37} + \caption{Section 6-D} +\end{figure} + +\clearpage +\begin{figure}[!htbp] + \centering + \ExampleSubFigure[1]{4-6-38} + \ExampleSubFigure[1]{4-6-39} + \ExampleSubFigure[0.5]{4-6-40}% + \ExampleSubFigure[0.5]{4-6-41} + \caption{Section 6-E} +\end{figure} + +\clearpage +\begin{figure}[!htbp] + \centering + \ExampleSubFigure[0.5]{4-6-42}% + \ExampleSubFigure[0.5]{4-6-43} + \ExampleSubFigure{4-6-44}% + \ExampleSubFigure{4-6-45}% + \ExampleSubFigure{4-6-46} + \caption{Section 6-F} +\end{figure} + +\clearpage +\begin{figure}[!htbp] + \centering + \ExampleSubFigure[1]{4-7-1} + \ExampleSubFigure[1]{4-7-2} + \ExampleSubFigure[1]{4-7-4} + \caption{Section 7} +\end{figure} + +\clearpage +\begin{figure}[!htbp] + \centering + \ExampleSubFigure[0.5]{4-8-1}% + \ExampleSubFigure[0.25]{4-8-2}% + \ExampleSubFigure[0.25]{4-8-3} + \ExampleSubFigure[1]{4-8-4} + \caption{Section 8-A} +\end{figure} + +\clearpage +\begin{figure}[!htbp] + \centering + \ExampleSubFigure[1]{4-8-5} + \caption{Section 8-B} +\end{figure} + +\begin{figure}[!htbp] + \centering + \ExampleSubFigure[0.5]{4-9-1}% + \ExampleSubFigure[0.5]{4-9-2} + \caption{Section 9} +\end{figure} + +\clearpage +\begin{figure}[!htbp] + \centering + \ExampleSubFigure[0.4]{4-10-1}% + \ExampleSubFigure[0.2]{4-10-2}% + \ExampleSubFigure[0.2]{4-10-3}% + \ExampleSubFigure[0.2]{4-10-4} + \ExampleSubFigure[0.4]{4-10-5}% + \ExampleSubFigure[0.2]{4-10-6}% + \ExampleSubFigure[0.4]{4-10-7} + \caption{Section 10-A} +\end{figure} + +\clearpage +\begin{figure}[!htbp] + \centering + \ExampleSubFigure[1]{4-10-8} + \ExampleSubFigure[1]{4-10-9} + \ExampleSubFigure[1]{4-10-10} + \caption{Section 10-B} +\end{figure} + +\end{document} diff --git a/Master/texmf-dist/dvips/pstricks/pst-algparser.pro b/Master/texmf-dist/dvips/pstricks/pst-algparser.pro index a859d0a9825..ab96e87353e 100644 --- a/Master/texmf-dist/dvips/pstricks/pst-algparser.pro +++ b/Master/texmf-dist/dvips/pstricks/pst-algparser.pro @@ -1,4 +1,4 @@ -% $Id: pst-algparser.pro 7 2007-12-29 22:21:13Z herbert $ +% $Id: pst-algparser.pro 26 2008-06-14 11:50:02Z herbert $ %% %% PostScript prologue for PSTricks algorithm parser %% Version 0.01, 2008/01/01 diff --git a/Master/texmf-dist/dvips/pstricks/pst-dots.pro b/Master/texmf-dist/dvips/pstricks/pst-dots.pro index c704de559f5..8077b3d59a0 100644 --- a/Master/texmf-dist/dvips/pstricks/pst-dots.pro +++ b/Master/texmf-dist/dvips/pstricks/pst-dots.pro @@ -1,7 +1,7 @@ -% $Id: pst-dots.pro 22 2008-04-18 16:03:12Z herbert $ +% $Id: pst-dots.pro 26 2008-06-14 11:50:02Z herbert $ % %% PostScript prologue for pstricks.tex. -%% Version 2.01, 2008/04/18 +%% Version 2.02, 2008/04/18 %% %% For distribution, see pstricks.tex. %% @@ -44,6 +44,9 @@ dup (h) 0 get /Hexagon put dup (H) 0 get /BoldHexagon put dup (G) 0 get /SolidHexagon put + dup (f) 0 get /Octogon put % 2008-04-18 hv + dup (F) 0 get /BoldOctogon put % 2008-04-18 hv + dup (g) 0 get /SolidOctogon put % 2008-04-18 hv dup (a) 0 get /Add put dup (A) 0 get /BoldAdd put % 65 dup (x) 0 get /Mul put @@ -89,6 +92,14 @@ CharProcs begin /SolidHexagon {HexagonPath fill} def /Hexagon {HexagonPath .89 .89 scale HexagonPath eofill} def /BoldHexagon {HexagonPath .79 .79 scale HexagonPath eofill} def +% 2008-04-18 hv + /OctogonPath { + 550 dup 22.5 tan mul dup neg dup add /xMove exch def + exch moveto 7 { xMove 0 rlineto 45 rotate } repeat closepath } def + /SolidOctogon { OctogonPath fill } def + /Octogon { OctogonPath .89 .89 scale OctogonPath eofill } def + /BoldOctogon { OctogonPath .79 .79 scale OctogonPath eofill } def +% /AsteriskPath { 20 0 moveto 10 250 180 500 0 500 curveto -180 500 -10 250 -20 0 curveto closepath @@ -97,6 +108,7 @@ CharProcs begin AsteriskPath 60 rotate AsteriskPath 60 rotate AsteriskPath 60 rotate AsteriskPath 60 rotate AsteriskPath 60 rotate AsteriskPath fill } def +% /Basterp {50 250 220 500 0 500 curveto -220 500 -50 250 -50 30 cos 100 mul curveto} def /BoldAsteriskPath { 50 30 cos 100 mul moveto Basterp diff --git a/Master/texmf-dist/dvips/pstricks/pst-node.pro b/Master/texmf-dist/dvips/pstricks/pst-node.pro index aa9d39dbe0d..5916c637eb1 100644 --- a/Master/texmf-dist/dvips/pstricks/pst-node.pro +++ b/Master/texmf-dist/dvips/pstricks/pst-node.pro @@ -1,4 +1,4 @@ -% $Id: pst-node.pro 11 2008-01-24 13:37:27Z herbert $ +% $Id: pst-node.pro 26 2008-06-14 11:50:02Z herbert $ %% %% PostScript prologue for pst-node.tex. %% Version 1.00, 2008/01/01. diff --git a/Master/texmf-dist/dvips/pstricks/pstricks.pro b/Master/texmf-dist/dvips/pstricks/pstricks.pro index 841b2896e7d..7701af23def 100644 --- a/Master/texmf-dist/dvips/pstricks/pstricks.pro +++ b/Master/texmf-dist/dvips/pstricks/pstricks.pro @@ -1,7 +1,7 @@ -% $Id: pstricks.pro 21 2008-04-18 13:40:08Z herbert $ +% $Id: pstricks.pro 34 2008-06-25 17:20:01Z herbert $ % %% PostScript prologue for pstricks.tex. -%% Version 1.04, 2008/04/15 +%% Version 1.05, 2008/06/25 %% %% This program can be redistributed and/or modified under the terms %% of the LaTeX Project Public License Distributed from CTAN archives @@ -141,6 +141,30 @@ tx@Dict begin grestore pop pop } def % +/PenroseFill {% on stack: scaling factor + dup dup scale + 1 exch div round /penroseFactor ED + a 0 dtransform round exch round exch + 2 copy idtransform + exch Atan rotate + idtransform pop /a ED + .25 .25 itransform pathbbox + /y2 ED + a Div ceiling cvi /x2 ED /y1 ED + a Div cvi /x1 ED /y2 y2 y1 sub def + clip + newpath + systemdict + /setstrokeadjust known { true setstrokeadjust } if + /I/S/L/W/G/+/Z/F/E/D[/def/exch/for{E D}/add{s E get mul} + { Z -36.2001 1 33 }{25 E S rlineto}{/q Z dup q G E q 1 + G}{Z 2 2}]{cvx def}forall + [0 72 1008 {dup sin E cos }F ]1 setlinejoin/s W{/a W{/b I 10{/i I 4{/m I moveto + i m +/j I 10{/l Z b m l + G a l G sub s m get div .2 + floor .3 + 25 + mul j l + S rmoveto}F i L j L stroke }F}F}F}F + grestore + pop pop +} def +% %gsave abs CLW add /a ED a 0 dtransform round exch round exch %2 copy idtransform exch Atan rotate idtransform pop /a ED .25 .25 %% DG/SR modification begin - Dec. 12, 1997 - Patch 2 diff --git a/Master/texmf-dist/source/generic/pstricks/Makefile b/Master/texmf-dist/source/generic/pstricks/Makefile deleted file mode 100644 index ce772c9e8cd..00000000000 --- a/Master/texmf-dist/source/generic/pstricks/Makefile +++ /dev/null @@ -1,97 +0,0 @@ - -# Rolf Niepraschk, niepraschk@ptb.de, 2003-02-23 - -.SUFFIXES : .tex .dvi .ps .pdf .eps - -MAIN = pst-user - -# D.G. modification begin - Feb. 28, 2003 -#LATEX = elatex -LATEX = latex -# D.G. modification end -PDFLATEX = pdfelatex -PS2PDF = ps2pdf - -# D.G. modification begin - Feb. 28, 2003 -PS2PDF_OPT1 = -sPAPERSIZE=letter -#PS2PDF_OPT1 = -sPAPERSIZE=a4 -# D.G. modification end -PS2PDF_OPT2 = -sPAPERSIZE=letter - -DVIPSFLAGS1 = -Ppdf -G0 -DVIPSFLAGS2 = -Pwww -E -#GSOPT = GS_OPTIONS=-dAutoRotatePages=/None -GSOPT = GS_OPTIONS=-dPDFSETTINGS=/prepress - -PICS := $(PICS:.eps=.pdf) - -# D.G. modification begin - Mar. 7, 2003 -#ADDINPUTS = pst-user.cls defaults.pst -ADDINPUTS = pst-user.cls defaults.pst \ - psd-cove.tex psd-esse.tex psd-basi.tex psd-para.tex psd-cust.tex \ - psd-pict.tex psd-text.tex psd-node.tex psd-tree.tex psd-fill.tex \ - psd-3d.tex psd-spec.tex psd-help.tex -# D.G. modification end - -ARCHNAME = $(MAIN)-$(shell date +%y%m%d).zip - -# D.G. modification begin - Mar. 7, 2003 -TARNAME = $(MAIN)-$(shell date +%y%m%d).tar -# D.G. modification end - -# D.G. modification begin - Feb. 28, 2003 -#all : $(MAIN).pdf $(MAIN)-old.pdf -all : $(MAIN).pdf -# D.G. modification end - - -$(MAIN).dvi : $(MAIN).tex $(ADDINPUTS) - $(LATEX) $< -# D.G. modification begin - Feb. 28, 2003 -# makeindex -t $(basename $<).ilg $(basename $<) -# D.G. modification end - makeindex -t $(basename $<).ilg -s pst-user.ist $(basename $<) - $(LATEX) $< - -$(MAIN).pdf : $(MAIN).ps - $(PS2PDF) $(PS2PDF_OPT1) $< $@ - -%.ps : %.dvi - dvips $(DVIPSFLAGS1) $< -o $@ - -pst-user-old.pdf : pst-user-old.tex pst-usr1.pdf pst-usr2.pdf pst-usr3.pdf \ - pst-usr4.pdf - $(PDFLATEX) $< - -pst-usr%.pdf : pst-usr%.ps.gz - zcat $< | $(PS2PDF) $(PS2PDF_OPT2) - > $@ - -clean : - $(RM) $(addprefix $(MAIN), .aux .ilg .ind .idx .log .out .tmp .toc) -# D.G. modification begin - Mar. 7, 2003 -# $(RM) $(addprefix $(MAIN)-old, .log .aux) -# $(RM) pst-usr?.pdf -# D.G. modification end - -veryclean : clean - $(RM) $(addprefix $(MAIN), .ps .dvi .pdf) -# D.G. modification begin - Mar. 7, 2003 -# $(RM) $(MAIN)-old.pdf - $(RM) *.aux -# D.G. modification end - -arch : - zip $(ARCHNAME) $(MAIN).tex $(ADDINPUTS) pst-user-old.tex Makefile - @ echo ; echo $(ARCHNAME) ; echo - -# D.G. modification begin - Mar. 7, 2003 -tar: - tar -cf $(TARNAME) $(MAIN).tex $(ADDINPUTS) \ - pst-user.ist pst-user.idx \ - CHANGES VERSIONS TODO \ - Makefile artistic.txt defaults.pst \ - pstricks.tex pst-eps.tex pst-node.tex pst-tree.tex \ - *.sty pst-user.pdf - gzip --force $(TARNAME) - ls -l $(TARNAME).gz -# D.G. modification end diff --git a/Master/texmf-dist/source/generic/pstricks/defaults.pst b/Master/texmf-dist/source/generic/pstricks/defaults.pst deleted file mode 100644 index 4e3ba5f27f2..00000000000 --- a/Master/texmf-dist/source/generic/pstricks/defaults.pst +++ /dev/null @@ -1,149 +0,0 @@ -%% defaults.pst -%% Created with unix shell commands: -%% grep ^.psset\@ pstricks.tex > defaults.pst -%% grep ^.psset\@ pst-node.tex >> defaults.pst -%% grep ^.psset\@ pst-grad.tex >> defaults.pst -%% grep ^.psset\@ pst-coil.tex >> defaults.pst -%% grep ^.psset\@ pst-eps.tex >> defaults.pst -%% grep ^.psset\@ pst-plot.tex >> defaults.pst -%% grep ^.psset\@ pst-tree.tex >> defaults.pst -%% Input by pst-user.tex -\psset@swapaxes{false} -\psset@showpoints{false} -\psset@border{0pt} -\psset@bordercolor{white} -\psset@doubleline{false} -\psset@doublesep{1.25\pslinewidth} -\psset@doublecolor{white} -\psset@shadow{false} -\psset@shadowsize{3pt} -\psset@shadowangle{-45} -\psset@shadowcolor{darkgray} -\psset@linewidth{.8pt} -\psset@linecolor{black} -\psset@dash{5pt 3pt} -\psset@dashadjust{true} -\psset@dotsep{3pt} -\psset@linestyle{solid} -\psset@fillcolor{white} -\psset@hatchwidth{.8pt} -\psset@hatchsep{4pt} -\psset@hatchcolor{black} -\psset@hatchangle{45} -\psset@fillstyle{none} -\psset@arrowscale{1} -\psset@arrowsize{1.5pt 2} -\psset@arrowlength{1.4} -\psset@arrowinset{.4} -\psset@tbarsize{2pt 5} -\psset@bracketlength{.15} -\psset@rbracketlength{.15} -\psset@arrows{-} -\psset@liftpen{0} -\psset@linetype{0} -\psset@gangle{0} -\psset@curvature{1 .1 0} -\psset@dotsize{2pt 2} -\psset@dotscale{1} -\psset@dotangle{0} -\psset@dotstyle{*} -\psset@linearc{0pt} -\psset@framearc{0} -\psset@cornersize{relative} -\psset@dimen{outer} -\psset@gridwidth{.8pt} -\psset@griddots{0} -\psset@gridcolor{black} -\psset@subgridwidth{.4pt} -\psset@subgridcolor{gray} -\psset@subgriddots{0} -\psset@subgriddiv{5} -\psset@gridlabels{10pt} -\psset@gridlabelcolor{black} -\psset@framesep{3pt} -\psset@boxsep{true} -\psset@trimode{U} -\psset@arcsep{0} -\psset@radius{.25cm} -\psset@ref{c} -\psset@rot{0} -\psset@labelsep{5pt} -\psset@refangle{0} -\psset@nodealign{false} -\psset@href{0} -\psset@vref{.7ex} -\psset@framesize{10pt} -\psset@nodesep{0pt} -\psset@arm{10pt} -\psset@offset{0pt} -\psset@angle{0} -\psset@arcangle{8} -\psset@ncurv{.67} -\psset@loopsize{1cm} -\psset@boxsize{.4cm} -\psset@nrot{0} -\psset@npos{} -\psset@tpos{.5} -\psset@shortput{none} -\psset@colsep{1.5cm} -\psset@rowsep{1.5cm} -\psset@mcol{c} -\psset@mnodesize{-1pt} -\psset@mnode{R} -\psset@emnode{none} -\psset@gradbegin{gradbegin} -\psset@gradend{gradend} -\psset@gradlines{500} -\psset@gradmidpoint{.9} -\psset@gradangle{0} -\psset@coilwidth{1cm} -\psset@coilheight{1} -\psset@coilarm{.5cm} -\psset@coilaspect{45} -\psset@coilinc{10} -\psset@bbllx{0pt} -\psset@bblly{0pt} -\psset@bburx{0pt} -\psset@bbury{0pt} -\psset@headers{none} -\psset@checkfile{true} -\psset@makeeps{new} -\psset@headerfile{} -\psset@plotstyle{line} -\psset@plotpoints{50} -\psset@ticksize{3pt} -\psset@tickstyle{full} -\psset@ticks{all} -\psset@labels{all} -\psset@Ox{0} -\psset@Dx{1} -\psset@dx{0} -\psset@Oy{0} -\psset@Dy{1} -\psset@dy{0} -\psset@showorigin{true} -\psset@axesstyle{axes} -\psset@treemode{D} -\psset@treeflip{false} -\psset@root{\TC} -\psset@treesep{.75cm} -\psset@xtreesep{0pt} -\psset@treenodesize{-1pt} -\psset@treefit{tight} -\psset@treerep{1} -\psset@showbbox{false} -\psset@levelsep{2cm} -\psset@varlevelsep{false} -\psset@treeshift{0} -\psset@skiplevels{0} -\psset@unary{middle} -\psset@leafalign{false} -\psset@edge{\ncline} -\psset@skipedge{} -\psset@fansize{1cm} -\psset@tnsep{} -\psset@tnyref{} -\psset@tnheight{\ht\strutbox} -\psset@tndepth{\dp\strutbox} -\psset@tnpos{} -\endinput diff --git a/Master/texmf-dist/source/generic/pstricks/psd-3d.tex b/Master/texmf-dist/source/generic/pstricks/psd-3d.tex deleted file mode 100644 index 9837db6e91f..00000000000 --- a/Master/texmf-dist/source/generic/pstricks/psd-3d.tex +++ /dev/null @@ -1,12 +0,0 @@ -%% BEGIN psd-3d.tex - -\part{Three Dimensional Graphics\label{P-threeD}} - -\Section{Overview} - -\File{pst-3d} -The... - -\endinput - -%% END psd-3d.tex diff --git a/Master/texmf-dist/source/generic/pstricks/psd-basi.tex b/Master/texmf-dist/source/generic/pstricks/psd-basi.tex deleted file mode 100644 index 0d9f5ccea8b..00000000000 --- a/Master/texmf-dist/source/generic/pstricks/psd-basi.tex +++ /dev/null @@ -1,648 +0,0 @@ -%% BEGIN psd-basi.tex - -\part{Basic graphics objects\label{P-graphics}} - -\Section{Lines and polygons\label{S-lines}} - -The objects in this section also use the following parameters: -\begin{description} - \pitem[linearc=dim] The radius of arcs drawn at the corners of lines by the - \n\psline{} and \n\pspolygon{} graphics objects. should be positive. - \pitem[framearc=num] In the \n\psframe{} and the related box framing macros, - the radius of rounded corners is set, by default, to one-half times - the width or height of the frame, whichever is less. should be between - 0 and 1. - \pitem[cornersize=relative/absolute] If \p{cornersize} is "relative", then - the \p{framearc} parameter determines the radius of the rounded corners for - \n\psframe, as described above (and hence the radius depends on the size of - the frame). If \p{cornersize} is "absolute", then the \p{linearc} parameter - determines the radius of the rounded corners for \n\psframe{} (and hence the - radius is of constant size). -\end{description} - - -Now here are the lines and polygons: -\begin{description} - -\oitem \psline`{arrows}(\x0,\y0)'(\x1,\y1)`\ldots(\x n,\y n)' - - This draws a line through the list of coordinates. For example: -\begin{MEx*}(4,2) - \psline[linewidth=2pt,linearc=.25]{->}(4,2)(0,1)(2,0) -\end{MEx*} - -\mitem \qline(coor0)(coor1) - - This is a streamlined version of \n\psline{} that does not pay attention to -the \p{arrows} parameter, and that can only draw a single line segment. Note -that both coordinates are obligatory, and there is no optional argument for -setting parameters (use \n\psset{} if you need to change the \p{linewidth}, or -whatever). For example: -\begin{MEx*}(2,1) - \qline(0,0)(2,1) -\end{MEx*} - -\oitem \pspolygon`(\x0,\y0)'(\x1,\y1)(\x2,\y2)`\ldots(\x n,\y n)' - - This is similar to \n\psline, but it draws a closed path. For example: -\begin{MEx*}(4,2) - \pspolygon[linewidth=1.5pt](0,2)(1,2) - \pspolygon*[linearc=.2,linecolor=darkgray](1,0)(1,2)(4,0)(4,2) -\end{MEx*} - -\oitem \psframe`(\x0,\y0)'(\x1,\y1) - - \n\psframe{} draws a rectangle with opposing corners \c0 and \c1. For -example: -\begin{MEx*}(4,2) - \psframe[linewidth=2pt,framearc=.3,fillstyle=solid, - fillcolor=lightgray](4,2) - \psframe*[linecolor=white](1,.5)(2,1.5) -\end{MEx*} - -\oitem \psdiamond`\c0'\c1 - - \n\psdiamond{} draws a diamond centered at \c0, and with the half width and -height equal to \x1\ and \y1, respectively. -\begin{MEx*}(4,2) - \psdiamond[framearc=.3,fillstyle=solid, - fillcolor=lightgray](2,1)(1.5,1) -\end{MEx*} - -The diamond is rotated about the center by -\begin{Ex} - \Par{gangle=gangle} -\end{Ex} - -\oitem \pstriangle`\c0'\c1 - - \n\pstriangle{} draws an isosceles triangle with the base centered at \c0, -and with width (base) and height equal to \x1{} and \y1, respectively. -\begin{MEx*}(4,2) - \pstriangle*[gangle=10](2,.5)(4,1) -\end{MEx*} - -\end{description} - -\Section{Arcs, circles and ellipses} - -\begin{description} - -\oitem \pscircle`(\x0,\y0)'{radius} - -This draws a circle whose center is at \c0 and that has radius . For -example: -\begin{MEx*}[-1,-1](2,2) - \pscircle[linewidth=2pt](.5,.5){1.5} -\end{MEx*} - -\mitem \qdisk(coor){radius} - - This is a streamlined version of \n{\pscircle*}. Note that the two arguments -are obligatory and there is no parameters arguments. To change the color of -the disks, you have to use \n\psset: -\begin{MEx}[1.9,2.9](2.1,3.1) - \psset{linecolor=gray} - \qdisk(2,3){4pt} -\end{MEx} - -\oitem \pswedge`(\x0,\y0)'{radius}{angle1}{angle2} - - This draws a wedge whose center is at \c0, that has radius , and -that extends counterclockwise from to . The angles must be -specified in degrees. For example: -\begin{MEx*}(2,2) - \pswedge[linecolor=gray,linewidth=2pt,fillstyle=solid]{2}{0}{70} -\end{MEx*} - -\oitem \psellipse`(\x0,\y0)'(\x1,\y1) - -\c0 is the center of the ellipse, and \x1 and \y1 are the horizontal and -vertical radii, respectively. For example: -% D.G. modification begin - Mar. 3, 2003 -%\begin{MEx*}[-1,-1.5](2,1) -% D.G. modification end -\begin{MEx*}[-1,-1](2,1) - \psellipse[fillcolor=lightgray](.5,0)(1.5,1) -\end{MEx*} - -\oitem \psarc`{arrows}\c~'{radius}{angleA}{angleB} - - This draws an arc from to , going counter clockwise, for a -circle of radius and centered at \c{}. You must include either the -{arrows} argument or the \c{} argument. For example: -\begin{MEx*}(3,2) - \psarc*[showpoints=true](1.5,1.5){1.5}{215}{0} -\end{MEx*} -See how \p{showpoints=true} draws a dashed line from the center to the arc; -this is useful when composing pictures. - -\n\psarc{} also uses the parameters: -\begin{description} - -\pitem[arcsepA=dim](0pt) - - is adjusted so that the arc would just touch a line of width -that extended from the center of the arc in the direction of . - -\pitem[arcsepB=dim](0pt) This is like \p{arcsepA}, but is adjusted. - -\pitem[arcsep=dim] This just sets both \p{arcsepA} and \p{arcsepB}. -\end{description} -These parameters make it easy to draw two intersecting lines and then use -\n\psarc{} with arrows to indicate the angle between them. For example: -\begin{MEx*}(4,3) - \SpecialCoor - \psline[linewidth=2pt](4;50)(0,0)(4;10) - \psarc[arcsepB=2pt]{->}{3}{10}{50} -\end{MEx*} - -\oitem \psarcn`{arrows}\c~'{radius}{angleA}{angleB} - - This is like \n\psarc, but the arc is drawn \emph{clockwise}. You can achieve -the same effect using \n\psarc{} by switching and and the -arrows.\footnote{% -However, with \n\pscustom{} graphics object, described in Part \ref{P-custom}, -\n\psarcn{} is not redundant.} - -\oitem \psellipticarc`{arrows}(\x0,\y0)'(\x1,\y1){angleA}{angleB} - - This draws an elliptic from to , going counter clockwise, -with \c0 the center of the ellipse and \x1 and \y1 the horizontal and -vertical radii, respectively. For example: -\begin{MEx*}[-1,-1](2,1) - \psellipticarc[showpoints=true,arrowscale=2]{->}(.5,0)(1.5,1){215}{0} -\end{MEx*} -See how \p{showpoints=true} draws a dashed line from the center to the arc; -this is useful when composing pictures. - -Like \n\psarc, \n\psellipticarc{} use the \p{arcsep}/\p{arcsepA}/\p{arcsepB} -parameters. - -Unlike \n\psarc, \n\psellipticarc use the -\p{dimen}=\p{inner}/\p{middle}/\p{outer} parameter. - -\oitem \psellipticarcn`{arrows}(\x0,\y0)'(\x1,\y1){angleA}{angleB} - - This is like \n\psellipticarc, but the arc is drawn \emph{clockwise}. You can -achieve the same effect using \n\psellipticarc{} by switching and - and the arrows.\footnote{% -However, with \n\pscustom{} graphics object, described in Part \ref{P-custom}, -\n\psellipticarcn{} is not redundant.} - -\end{description} - - -\Section{Curves} - -\begin{description} - -\oitem \psbezier`{arrows}(\x0,\y0)'(\x1,\y1)(\x2,\y2)(\x3,\y3) - - \n\psbezier{} draws a bezier curve with the four control points. The curve -starts at the first coordinate, tangent to the line connecting to the second -coordinate. It ends at the last coordinate, tangent to the line connecting to -the third coordinate. The second and third coordinates, in addition to -determining the tangency of the curve at the endpoints, also ``pull'' the -curve towards themselves. For example: -\begin{MEx}(4,4) - \psbezier[linewidth=2pt,showpoints=true]{->}(0,0)(1,4)(2,1)(4,3.5) -\end{MEx} -\p{showpoints=true} puts dots in all the control points, and connects them by -dashed lines, which is useful when adjusting your bezier curve. - -\oitem \parabola`{arrows}'\c0\c1 - - Starting at \c0, \n\parabola{} draws the parabola that passes through \c0 and -whose maximum or minimum is \c1. For example: -\begin{MEx*}(4,3) - \parabola*(1,1)(2,3) - \psset{xunit=.01} - \parabola{<->}(400,3)(200,0) -\end{MEx*} -\end{description} - -The next three graphics objects interpolate an open or closed curve through -the given points. The curve at each interior point is perpendicular to the -line bisecting the angle ABC, where B is the interior point, and A and C are -the neighboring points. Scaling the coordinates \emph{does not} cause the curve -to scale proportionately. - -The curvature is controlled by the following parameter: -\begin{description} -\pitem[curvature=num1 num2 num3] - - You have to just play around with this parameter to get what you want. -Individual values outside the range -1 to 1 are either ignored or are for -entertainment only. Below is an explanation of what each number does. A, B and -C refer to three consecutive points. - - Lower values of make the curve tighter. - - Lower values of tighten the curve where the angle ABC is greater than -45 degrees, and loosen the curve elsewhere. - - determines the slope at each point. If =0, then the curve is -perpendicular at B to the bisection of ABC. If =-1, then the curve at B -is parallel to the line AC. With this value (and only this value), scaling the -coordinates causes the curve to scale proportionately. However, positive -values can look better with irregularly spaced coordinates. Values less than --1 or greater than 2 are converted to -1 and 2, respectively. -\end{description} - -Here are the three curve interpolation macros: -\begin{description} - -\oitem \pscurve`{arrows}'\c1`\ldots\cn' - - This interpolates an open curve through the points. For example: -\begin{MEx*}(4,2) - \pscurve[showpoints=true]{<->}(0,1.3)(0.7,1.8) - (3.3,0.5)(4,1.6)(0.4,0.4) -\end{MEx*} -Note the use of \p{showpoints=true} to see the points. This is helpful when -constructing a curve. - -\oitem \psecurve`{arrows}'\c1`\ldots\cn'] - - This is like \n\pscurve, but the curve is not extended to the first and last -points. This gets around the problem of trying to determine how the curve -should join the first and last points. The "e" has something to do with -``endpoints''. For example: -% D.G. modification begin - Mar. 3, 2003 -%\begin{MEx*}[0,-.9](4,4) -% D.G. modification end -\begin{MEx*}(4,4) - \psecurve[showpoints=true](.125,8)(.25,4)(.5,2) - (1,1)(2,.5)(4,.25)(8,.125) -\end{MEx*} - -\oitem \psccurve`{arrows}'\c1`\ldots\cn' - -This interpolates a closed curve through the points. "c" stands for -``closed''. For example: -\begin{MEx*}(4,1) - \psccurve[showpoints=true] - (.5,0)(3.5,1)(3.5,0)(.5,1) -\end{MEx*} -\end{description} - -\Section{Dots\label{S-dots}} - -The graphics objects -\begin{Ex} - \object \psdot`*[par](\x1,y1)' - \object \psdots`*[par]'(\x1,\y1)`(\x2,\y2)\ldots(\x n,\y n)' -\end{Ex} -put a dot at each coordinate. - -What a ``dot'' is depends on the value of the -\begin{Ex} - \Par{dotstyle=style} -\end{Ex} -parameter. This also determines the dots you get when \p{showpoints=true}. - -The dot styles are also pretty intuitive:% -\newbox\dottable -\setbox\dottable=\hbox{% - \psset{fillcolor=lightgray} - \def\mydots#1{% - \psdots[dotstyle=#1](.1,1ex)(.55,1ex)(1,1ex)(1.45,1ex)(1.9,1ex)}% - \hfill - \begin{tabular}{cl}% - \emph{Style} & \hbox to 2cm{\emph{Example}\hss} \\[2pt] - "*" & \mydots{*}\\ - "o" & \mydots{o}\\ - "Bo" & \mydots{Bo}\\ - "x" & \mydots{x}\\ - "+" & \mydots{+}\\ - "B+" & \mydots{B+}\\ - "asterisk" & \mydots{asterisk}\\ - "Basterisk" & \mydots{Basterisk}\\ - "oplus" & \mydots{oplus}\\ - "otimes" & \mydots{otimes}\\ - "|" & \mydots{|}\\ - "B|" & \mydots{B|} - \end{tabular}% - \hfill - \begin{tabular}{cl} - \emph{Style} & \hbox to 2cm{\emph{Example}\hss} \\[2pt] - "square" & \mydots{square}\\ - "Bsquare" & \mydots{Bsquare}\\ - "square*" & \mydots{square*}\\ - "diamond" & \mydots{diamond}\\ - "diamond*" & \mydots{diamond*}\\ - "triangle" & \mydots{triangle}\\ - "Btriangle" & \mydots{Btriangle}\\ - "triangle*" & \mydots{triangle*}\\ - "pentagon" & \mydots{pentagon}\\ - "Bpentagon" & \mydots{Bpentagon}\\ - "pentagon*" & \mydots{pentagon*}\\ - \end{tabular}% - \hfill}% -\addtoquickref{center}{% - {\large\textbf{Dot styles}}\par - \leavevmode\hbox to \hsize{\unhbox\dottable}} -\begin{center} - \leavevmode - \hbox to \hsize{\unhcopy\dottable}% -\end{center} - -Except for "diamond", the center of dot styles with a hollow center is colored -\p{fillcolor}. - -Here are the parameters for changing the size and orientation of the dots: -\begin{description} - -\pitem[dotsize=dim `num'] - The diameter of a circle or disc is plus times \p{linewidth} -(if the optional is included). The size of the other dots styles is -similar (except for the size of the "|" dot style, which is set by the -\p{tbarsize} parameter described on page \pageref{p+tbarsize}). - -\pitem[dotscale=num1 `num2'] -The dots are scaled horizontally by and vertically by . If you -only include , the arrows are scaled by in both directions. - -\pitem[dotangle=angle] - After setting the size and scaling the dots, the dots are rotated by . - -\end{description} - - -\Section{Grids\label{S-grids}} - -PSTricks has a powerful macro for making grids and graph paper: - \Mac \psgrid`(\x0,\y0)(\x1,\y1)(\x2,\y2)' -\n\psgrid{} draws a grid with opposing corners \c1 and \c2. The intervals are -numbered, with the numbers positioned at \x0 and \y0. The coordinates are -always interpreted as Cartesian coordinates. For example: -\begin{MEx}[-1,-1](3,2) - \psgrid(0,0)(-1,-1)(3,2) -\end{MEx} -(Note that the coordinates and label positioning work the same as with -\n\psaxes.) - -The main grid divisions occur on multiples of \p{xunit} and \p{yunit}. -Subdivisions are allowed as well. Generally, the coordinates would be given as -integers, without units. - -If the \c0 coordinate is omitted, \c1 is used. The default for \c1 is "(0,0)". -If you don't give any coordinates at all, then the coordinates of the current -\n\pspicture{} environment are used or a 10x10 grid is drawn. Thus, you can -include a \n\psgrid{} command without coordinates in a \n\pspicture\ -environment to get a grid that will help you position objects in the picture. - -The main grid divisions are numbered, with the numbers drawn next to the -vertical line at \x0 (away from \x2) and next to the horizontal line at \x1 -(away from \y2). \c1 can be any corner of the grid, as long as \c2 is the -opposing corner, you can position the labels on any side you want. For -example, compare -\begin{MEx}(4,1) - \psgrid(0,0)(4,1) -\end{MEx} -and -\begin{MEx}(4,1) - \psgrid(4,1)(0,0) -\end{MEx} - -The following parameters apply only to \n\psgrid: -\begin{description} - -\pitem[gridwidth=dim] - The width of grid lines. - -\pitem[gridcolor=color] - The color of grid lines. - -\pitem[griddots=num] - If is positive, the grid lines are dotted, with dots per -division. - -\pitem[gridlabels=dim] - The size of the numbers used to mark the grid. - -\pitem[gridlabelcolor=color] - The color of the grid numbers. - -\pitem[subgriddiv=int] - The number of grid subdivisions. - -\pitem[subgridwidth=dim] - The width of subgrid lines. - -\pitem[subgridcolor=color] - The color of subgrid lines. - -\pitem[subgriddots=num] - Like \p{griddots}, but for subdivisions. - -\end{description} - -Here is a familiar looking grid which illustrates some of the parameters: -\begin{MEx}[-1,-1](3,1) - \psgrid[subgriddiv=1,griddots=10,gridlabels=7pt](-1,-1)(3,1) -\end{MEx} - -Note that the values of \p{xunit} and \p{yunit} are important parameters for -\n\psgrid, because they determine the spacing of the divisions. E.g., if the -value of these is "1pt", and then you type -\begin{LVerb} - \psgrid(0,0)(10in,10in) -\end{LVerb} -you will get a grid with 723 main divisions and 3615 subdivisions! (Actually, -\n\psgrid{} allows at most 500 divisions or subdivisions, to limit the damage -done by this kind of mistake.) Probably you want to set \p{unit} to ".5in" or -"1in", as in -\begin{LVerb} - \psgrid[unit=.5in](0,0)(20,20) -\end{LVerb} - - -\Section{Plots} - -\File{pst-plot} -The plotting commands described in this part are defined in -"pst-plot.tex" / "pst-plot.sty", which you must load first. - -The \n\psdots, \n\psline, \n\pspolygon, \n\pscurve, \n\psecurve{} and -\n\psccurve{} graphics objects let you plot data in a variety of ways. However, -first you have to generate the data and enter it as coordinate pairs \c{}. -The plotting macros in this section give you other ways to get and use the -data. (Section \ref{S-axes} tells you how to generate axes.) - -To parameter -\begin{Ex} - \Par{plotstyle=style} -\end{Ex} -determines what kind of plot you get. Valid styles are "dots", "line", -"polygon", "curve", "ecurve", "ccurve". E.g., if the \p{plotstyle} is -"polygon", then the macro becomes a variant of the \n\pspolygon{} object. - -You can use arrows with the plot styles that are open curves, but there is no -optional argument for specifying the arrows. You have to use the \p{arrows} -parameter instead. - -\begin{Warning} -No PostScript error checking is provided for the data arguments. Read Appendix -\ref{S-raw} before including PostScript code in the arguments. - -There are system-dependent limits on the amount of data \TeX{} and PostScript -can handle. You are much less likely to exceed the PostScript limits when you -use the "line", "polygon" or "dots" plot style, with \p{showpoints=false}, -\p{linearc=0pt}, and no arrows. -\end{Warning} - -Note that the lists of data generated or used by the plot commands cannot -contain units. The values of \n\psxunit{} and \n\psyunit{} are used as the unit. - - -\begin{description} - -\oitem \fileplot{file} - -\n\fileplot{} is the simplest of the plotting functions to use. You just need a -file that contains a list of coordinates (without units), such as generated by -Mathematica or other mathematical packages. The data can be delimited by curly -braces "{"~"}", parentheses "("~")", commas, and/or white space. Bracketing -all the data with square brackets "[ ]" will significantly speed up the rate -at which the data is read, but there are system-dependent limits on how much -data \TeX{} can read like this in one chunk. (The "[" \emph{must} go at the -beginning of a line.) The file should not contain anything else (not even -"\endinput"), except for comments marked with "%". - -\n\fileplot{} only recognizes the "line", "polygon" and "dots" plot styles, and -it ignores the \p{arrows}, \p{linearc} and \p{showpoints} parameters. The -\n\listplot{} command, described below, can also plot data from file, without -these restrictions and with faster \TeX{} processing. However, you are less -likely to exceed PostScript's memory or operand stack limits with \n\fileplot. - -If you find that it takes \TeX{} a long time to process your \n\fileplot\ -command, you may want to use the \n\PSTtoEPS{} command described on page -\pageref{+PSTtoEPS}. This will also reduce \TeX's memory requirements. - -\oitem \dataplot{commands} - -\n\dataplot{} is also for plotting lists of data generated by other programs, -but you first have to retrieve the data with one of the following commands: -\begin{Ex} - \object \savedata{command}[data] - \object \readdata{command}{file} -\end{Ex} - or the data in should conform to the rules described above for -the data in \n\fileplot{} (with \n\savedata, the data must be delimited by -"["~"]", and with \n\readdata, bracketing the data with "["~"]" speeds things -up). You can concatenate and reuse lists, as in -\begin{LVerb} - \readdata{\foo}{foo.data} - \readdata{\bar}{bar.data} - \dataplot{\foo\bar} - \dataplot[origin={0,1}]{\bar} -\end{LVerb} - -The \n\readdata{} and \n\dataplot{} combination is faster than \n\fileplot{} -if you reuse the data. \n\fileplot{} uses less of \TeX's memory than -\n\readdata{} and \n\dataplot{} if you are also use \n\PSTtoEPS. - -Here is a plot of "Integral(sin(x))". The data was generated by Mathematica, -with -\begin{LVerb} - Table[{x,N[SinIntegral[x]]},{x,0,20}] -\end{LVerb} -and then copied to this document. -\begin{MEx}(4,3) - \psset{xunit=.2cm,yunit=1.5cm} - \savedata{\mydata}[ - {{0, 0}, {1., 0.946083}, {2., 1.60541}, {3., 1.84865}, {4., 1.7582}, - {5., 1.54993}, {6., 1.42469}, {7., 1.4546}, {8., 1.57419}, - {9., 1.66504}, {10., 1.65835}, {11., 1.57831}, {12., 1.50497}, - {13., 1.49936}, {14., 1.55621}, {15., 1.61819}, {16., 1.6313}, - {17., 1.59014}, {18., 1.53661}, {19., 1.51863}, {20., 1.54824}}] - \dataplot[plotstyle=curve,showpoints=true, - dotstyle=triangle]{\mydata} - \psline{<->}(0,2)(0,0)(20,0) -\end{MEx} - -\oitem \listplot{list} - -\n\listplot{} is yet another way of plotting lists of data. This time, -should be a list of data (coordinate pairs), delimited only by white space. - is first expanded by \TeX{} and then by PostScript. This means that - might be a PostScript program that leaves on the stack a list of data, -but you can also include data that has been retrieved with \n\readdata{} and -\n\dataplot. However, when using the "line", "polygon" or "dots" plotstyles -with \p{showpoints=false}, \p{linearc=0pt} and no arrows, \n\dataplot{} is much -less likely than \n\listplot{} to exceed PostScript's memory or stack limits. -In the preceding example, these restrictions were not satisfied, and so the -example is equivalent to when \n\listplot{} is used: -\begin{LVerb} - ... - \listplot[plotstyle=curve,showpoints=true, - dotstyle=triangle]{\mydata} - ... -\end{LVerb} - -\oitem \psplot{$x_!\min@$}{$x_!\max@$}{function} - - \n\psplot{} can be used to plot a function $f(x)$, if you know a little -PostScript. should be the PostScript code for calculating $f(x)$. -Note that you must use $x$ as the dependent variable. PostScript is not -designed for scientific computation, but \n\psplot{} is good for graphing -simple functions right from within \TeX. E.g., -\begin{LVerb} - \psplot[plotpoints=200]{0}{720}{x sin} -\end{LVerb} -plots $\sin(x)$ from 0 to 720 degrees, by calculating $\sin(x)$ roughly every -3.6 degrees and then connecting the points with \n\psline. Here are plots of -$\sin(x)\cos((x/2)^2)$ and $\sin^2(x)$: -\begin{MEx}[0,-1](4,1) - \psset{xunit=1.2pt} - \psplot[linecolor=gray,linewidth=1.5pt,plotstyle=curve]% - {0}{90}{x sin dup mul} - \psplot[plotpoints=100]{0}{90}{x sin x 2 div 2 exp cos mul} - \psline{<->}(0,-1)(0,1) - \psline{->}(100,0) -\end{MEx} - -\oitem \parametricplot{$t_!\min@$}{$t_!\max@$}{function} - -This is for a parametric plot of $(x(t),y(t))$. is the PostScript -code for calculating the pair $x(t)$ $y(t)$. - -For example, -\begin{MEx*}(3,3) - \parametricplot[plotstyle=dots,plotpoints=13]% - {-6}{6}{1.2 t exp 1.2 t neg exp} -\end{MEx*} -plots 13 points from the hyperbola $xy=1$, starting with $(1.2^{-6},1.2^6)$ -and ending with $(1.2^6,1.2^{-6})$. - -Here is a parametric plot of $(\sin(t),\sin(2t))$: -\begin{MEx}[-2,-1](2,1) - \psset{xunit=1.7cm} - \parametricplot[linewidth=1.2pt,plotstyle=ccurve]% - {0}{360}{t sin t 2 mul sin} - \psline{<->}(0,-1.2)(0,1.2) - \psline{<->}(-1.2,0)(1.2,0) -\end{MEx} - -\end{description} - -The number of points that the \n\psplot{} and \n\parametricplot{} commands -calculate is set by the -\begin{Ex} - \Par{plotpoints=int} -\end{Ex} -parameter. Using "curve" or its variants instead of "line" and increasing the -value of \p{plotpoints} are two ways to get a smoother curve. Both ways -increase the imaging time. Which is better depends on the complexity of the -computation. (Note that all PostScript lines are ultimately rendered as a -series (perhaps short) line segments.) Mathematica generally uses "lineto" to -connect the points in its plots. The default minimum number of plot points for -Mathematica is 25, but unlike \n\psplot{} and \n\parametricplot, Mathematica -increases the sampling frequency on sections of the curve with greater -fluctuation. - -\endinput - -%% END psd-basi.tex diff --git a/Master/texmf-dist/source/generic/pstricks/psd-cove.tex b/Master/texmf-dist/source/generic/pstricks/psd-cove.tex deleted file mode 100644 index 177e0bff2c1..00000000000 --- a/Master/texmf-dist/source/generic/pstricks/psd-cove.tex +++ /dev/null @@ -1,108 +0,0 @@ -%% BEGIN psd-cove.tex - -\begingroup -\evensidemargin \paperwidth\relax -\advance\evensidemargin -2in -\advance\evensidemargin -\textwidth -\divide\evensidemargin 2 -\oddsidemargin\evensidemargin - -\begin{titlepage} - -\let\footnotesize\small -\let\footnoterule\relax -\setcounter{page}{0} - -\null -\vfil -\vskip 25pt -\begin{center} - {\LARGE\textbf{PSTricks}}:\\[5pt] - {\large\textbf{PostScript macros for Generic TeX}.}\\ -\end{center} - -\bigskip\bigskip -\hbox to \hsize{% - \hss - \psset{unit=.4cm} - \begin{pspicture}(0,-2)(31,12) - \catcode`\<=12 - \rput(1.5,0){% - \psellipse[linewidth=1pt](8,7)(1,3) - \psframe[linecolor=white,fillstyle=solid,fillcolor=white] - (6.4,6.5)(8,7.5) - \psline[linearc=.3,linewidth=1pt](8,8)(8,7.5)(4,7.5) - \psbezier[linewidth=1pt](4,7.5)(3,7.5)(3,6.5)(3,5.5) - \psline[linearc=.3,linewidth=1pt](8,6)(8,6.5)(5,6.5) - \psbezier[linewidth=1pt](5,6.5)(4,6.5)(4,6.5)(4,5.5) - \psline[linewidth=1pt](3,5.5)(4,5.5) - \psline[linearc=.3,linewidth=1pt](5,7.5)(5,8)(6,8)(6,7.5) - \psframe[linewidth=1pt](5.3,8)(5.7,8.7) - \psframe[linewidth=1pt,framearc=1,fillstyle=solid, - fillcolor=white](4,8.7)(7,9) - \multirput(3.5,4.8)(0,-1){4}{% - \psbezier[linewidth=.5pt](0,0)(.25,-.4)(-.25,-.4)(0,0)} - \rput[t](5.5,0){Dripping Faucet}} - \rput(20,5){% - \pspolygon[linecolor=white,fillstyle=vlines, - fillcolor=darkgray,hatchsep=.2](1,4.5)(1,4)(4,4)(4,4.5) - \psline[linewidth=2pt](1,4)(4,4) - \psline[linewidth=1.5pt](2.5,4)(2.5,3.5)(2.9,3.3)(2.1,2.9) - (2.9,2.5)(2.1,2.1)(2.9,1.7)(2.1,1.3)(2.5,1.1)(2.5,0.6) - \psframe[linecolor=black,linewidth=1.5pt,fillstyle=solid, - fillcolor=lightgray](1.8,-1)(3.2,.6) - \rput(2.5,-.2){$M$} - \psline{<->}(3.7,-.9)(3.7,.5) - \psframe[linecolor=black,linewidth=1.5pt,fillstyle=solid, - fillcolor=lightgray](1.8,-3.5)(3.2,-1.9) - \rput(2.5,-2.7){$m$} - \psline{->}(5,1)(5,-1) - \rput[l](5.5,0){$g$} - \psline{->}(3.7,-2)(3.7,-3.4) - \rput[t](2.5,-4){Mathematical Model for} - \rput[t](2.5,-5){a Dripping Faucet} - \rput(-6,-2){% - \psset{linewidth=2pt} - \psline(0,.5)(2,.5) - \psline(0,-.5)(2,-.5) - \psline(1.5,1)(2.5,0)(1.5,-1)}} - \psframe[linewidth=2pt,framearc=.05,linecolor=gray](0,-2.5)(31,12) - \uput[l]{90}(0,4.75){\texttt{leecheng}} - \end{pspicture}% - \hss} -\bigskip -\bigskip - -\begin{center} -{\LARGE\textbf{User's Guide}}\par -\vskip 3em -{\large \lineskip .75em Timothy Van Zandt}\par -\vskip 1.5em -{\large \thefiledate\\[2pt] - Version \Version% - \footnote{Documentation edited and repacked at \today\ by Rolf Niepraschk - \url{niepraschk@gmx.de} - and Herbert Vo\ss\ \url{voss@pstricks.de}.}}\par -% \Verb[codes={\catcode`\<=12}]++ -% and Herbert Voß \Verb[codes={\catcode`\<=12}]++.}}\par -\end{center} -\vfil -\small -Author's address:\\ - Department of Economics and Political Science\\ - INSEAD\\ - Boulevard de Constance\\ - 77305 Fontainebleau Cedex\\ - France\\[3mm] - Internet: \Verb[codes={\catcode`\<=12}]++ -\end{titlepage} - -\endgroup - -\setcounter{footnote}{0} -\tableofcontents -\pagenumbering{arabic} - -\endinput - -%% END psd-cove.tex diff --git a/Master/texmf-dist/source/generic/pstricks/psd-cust.tex b/Master/texmf-dist/source/generic/pstricks/psd-cust.tex deleted file mode 100644 index 03441baca4f..00000000000 --- a/Master/texmf-dist/source/generic/pstricks/psd-cust.tex +++ /dev/null @@ -1,406 +0,0 @@ -%% BEGIN psd-cust.tex - -\part{Custom graphics\label{P-custom}} - -\Section{The basics} - -PSTricks contains a large palette of graphics objects, but sometimes you need -something special. For example, you might want to shade the region between two -curves. The - \Mac \pscustom`*[par]'{commands} -command lets you ``roll you own'' graphics object. - -Let's review how PostScript handles graphics. A \emph{path} is a line, in the -mathematical sense rather than the visual sense. A path can have several -disconnected segments, and it can be open or closed. PostScript has various -operators for making paths. The end of the path is called the \emph{current -point}, but if there is no path then there is no current point. To turn the -path into something visual, PostScript can \emph{fill} the region enclosed by -the path (that is what \p{fillstyle} and such are about), and \emph{stroke} the -path (that is what \p{linestyle} and such are about). - -At the beginning of \n\pscustom, there is no path. There are various commands -that you can use in \n\pscustom{} for drawing paths. Some of these (the open -curves) can also draw arrows. \n\pscustom{} fills and strokes the path at the -end, and for special effects, you can fill and stroke the path along the way -using \n\fill{} and \n\stroke{} (see below). - -\begin{drivers} -\n\pscustom{} uses \n\pstverb{} and \n\pstunit. There are system-dependent -limits on how long the argument of "\special" can be. You may run into this -limit using \n\pscustom{} because all the PostScript code accumulated by -\n\pscustom{} is the argument of a single "\special" command. -\end{drivers} - -\Section{Parameters} - -You need to keep the separation between drawing, stroking and filling paths in -mind when setting graphics parameters. The \p{linewidth} and \p{linecolor} -parameters affect the drawing of arrows, but since the path commands do not -stroke or fill the paths, these parameters, and the \p{linestyle}, -\p{fillstyle} and related parameters, do not have any other effect (except -that in some cases \p{linewidth} is used in some calculations when drawing the -path). \n\pscustom{} and \n\fill{} make use of \p{fillstyle} and related -parameters, and \n\pscustom{} and \n\stroke{} make use of p{linestyle} and -related parameters. - -For example, if you include -\begin{LVerbatim} - \psline[linewidth=2pt,linecolor=blue,fillstyle=vlines]{<-}(3,3)(4,0) -\end{LVerbatim} -in \n\pscustom, then the changes to \p{linewidth} and \p{linecolor} will -affect the size and color of the arrow but not of the line when it is stroked, -and the change to \p{fillstyle} will have no effect at all. - -The \p{shadow}, \p{border}, \p{doubleline} and \p{showpoints} parameters are -disabled in \n\pscustom, and the \p{origin} and \p{swapaxes} parameters only -affect \n\pscustom{} itself, but there are commands (described below) that let -you achieve these special effects. - -The \p{dashed} and \p{dotted} line styles need to know something about the -path in order to adjust the dash or dot pattern appropriately. You can give -this information by setting the -\begin{Ex} - \Par{linetype=int} -\end{Ex} -parameter. If the path contains more than one disconnected segment, there is -no appropriate way to adjust the dash or dot pattern, and you might as well -leave the default value of \p{linetype}. Here are the values for simple paths: -\begin{center} -\begin{tabular}{cl} - \emph{Value} & \emph{Type of path}\\ - 0 & Open curve without arrows.\\ - -1 & Open curve with an arrow at the beginning.\\ - -2 & Open curve with an arrow at the end.\\ - -3 & Open curve with an arrow at both ends.\\ - 1 & Closed curve with no particular symmetry.\\ - $n$\textgreater 1 & Closed curve with $n$ symmetric segments. -\end{tabular} -\end{center} - -\Section{Graphics objects} - -You can use most of the graphics objects in \n\pscustom. These draw paths and -making arrows, but do not fill and stroke the paths. - -There are three types of graphics objects: -\begin{description} -\item[Special] - Special graphics objects include \n\psgrid, \n\psdots, \n\qline{} and -\n\qdisk. You cannot use special graphics objects in \n\pscustom. - -\item[Closed] - You are allowed to use closed graphics objects in \n\pscustom, but their -effect is unpredictable.\footnote{% -The closed objects never use the current point as an coordinate, but typically -they will close any existing paths, and they might draw a line between the -currentpoint and the closed curved.} -Usually you would use the open curves plus \n\closepath{} (see below) to draw -closed curves. - -\item[Open]The open graphics objects are the most useful commands for drawing -paths with \n\pscustom. By piecing together several open curves, you can draw -arbitrary paths. The rest of this section pertains to the open graphics -objects. -\end{description} - - By default, the open curves draw a straight line between the current point, -if it exists, and the beginning of the curve, except when the curve begins -with an arrow. For example -\begin{MEx*}(3,3) - \pscustom{% - \psarc(0,0){1.5}{5}{85} - \psarcn{->}(0,0){3}{85}{5}} -\end{MEx*} - -Also, the following curves make use of the current point, if it exists, as a -first coordinate: -\begin{quote} - \n\psline{} and \n\pscurve.\\ - The plot commands, with the "line" or "curve" \p{plotstyle}.\\ - \n\psbezier\, if you only include three coordinates.\\ -\end{quote} -For example: -\begin{MEx*}(4,3) - \pscustom[linewidth=1.5pt]{% - \psplot[plotstyle=curve]{.67}{4}{2 x div} - \psline(4,3)} -\end{MEx*} -We'll see later how to make that one more interesting. Here is another example -\begin{MEx*}(4,3) - \pscustom{% - \psline[linearc=.2]{|-}(0,2)(0,0)(2,2) - \psbezier{->}(2,2)(3,3)(1,0)(4,3)} -\end{MEx*} - -However, you can control how the open curves treat the current point with the -\begin{Ex} - \Par{liftpen=0/1/2} -\end{Ex} -parameter. - -If \p{liftpen=0}, you get the default behavior described above. For example -\begin{MEx*}(4,3) - \pscustom[linewidth=2pt,fillstyle=solid,fillcolor=gray]{% - \pscurve(0,2)(1,2.5)(2,1.5)(4,3) - \pscurve(4,1)(3,0.5)(2,1)(1,0)(0,.5)} -\end{MEx*} - -If \p{liftpen=1}, the curves do not use the current point as the first -coordinate (except \n\psbezier, but you can avoid this by explicitly including -the first coordinate as an argument). For example: -\begin{MEx*}(4,3) - \pscustom[linewidth=2pt,fillstyle=solid,fillcolor=gray]{% - \pscurve(0,2)(1,2.5)(2,1.5)(4,3) - \pscurve[liftpen=1](4,1)(3,0.5)(2,1)(1,0)(0,.5)} -\end{MEx*} - -If \p{liftpen=2}, the curves do not use the current point as the first -coordinate, and they do not draw a line between the current point and the -beginning of the curve. For example -\begin{MEx*}(4,3) - \pscustom[linewidth=2pt,fillstyle=solid,fillcolor=gray]{% - \pscurve(0,2)(1,2.5)(2,1.5)(4,3) - \pscurve[liftpen=2](4,1)(3,0.5)(2,1)(1,0)(0,.5)} -\end{MEx*} - -Later we will use the second example to fill the region between the two -curves, and then draw the curves. - -\Section{Safe tricks} - -The commands described under this heading, which can only be used in -\n\pscustom, do not run a risk of PostScript errors (assuming your document -compiles without \TeX{} errors). - -Let's start with some path, fill and stroke commands: -\begin{description} - -\mitem \newpath - -Clear the path and the current point. - -\mitem \moveto(coor) - - This moves the current point to \c{}. - -\mitem \closepath - - This closes the path, joining the beginning and end of each piece (there may -be more than one piece if you use \n\moveto).\footnote{% -Note that the path is automatically closed when the region is filled. Use -\n\closepath{} if you also want to close the boundary.} - -\mitem \stroke`[par]' - - This strokes the path (non-destructively). \n\pscustom{} automatically -strokes the path, but you might want to stroke it twice, e.g., to add a -border. Here is an example that makes a double line and adds a border (this -example is kept so simple that it doesn't need \n\pscustom{} at all): -\begin{MEx*}(4,3) - \psline(0,3)(4,0) - \pscustom[linecolor=white,linewidth=1.5pt]{% - \psline(0,0)(4,3) - \stroke[linewidth=5\pslinewidth] - \stroke[linewidth=3\pslinewidth,linecolor=black]} -\end{MEx*} - -\mitem \fill`[par]' - - This fills the region (non-destructively). \n\pscustom{} automatically fills -the region as well. - -\mitem \gsave - - This saves the current graphics state (i.e., the path, color, line width, -coordinate system, etc.) \n\grestore{} restores the graphics state. \n\gsave{} -and \n\grestore{} must be used in pairs, properly nested with respect to \TeX{} -groups. You can have have nested \n\gsave-\n\grestore{} pairs. - -\mitem \grestore - - See above. - -Here is an example that fixes an earlier example, using \n\gsave{} and -\n\grestore: -\begin{MEx}(4,3) - \psline{<->}(0,3)(0,0)(4,0) - \pscustom[linewidth=1.5pt]{ - \psplot[plotstyle=curve]{.67}{4}{2 x div} - \gsave - \psline(4,3) - \fill[fillstyle=solid,fillcolor=gray] - \grestore} -\end{MEx} -Observe how the line added by "\psline(4,3)" is never stroked, because it is -nested in "\gsave" and "\grestore". - -Here is another example: -\begin{MEx*}(4,3) - \pscustom[linewidth=1.5pt]{ - \pscurve(0,2)(1,2.5)(2,1.5)(4,3) - \gsave - \pscurve[liftpen=1](4,1)(3,0.5)(2,1)(1,0)(0,.5) - \fill[fillstyle=solid,fillcolor=gray] - \grestore} - \pscurve[linewidth=1.5pt](4,1)(3,0.5)(2,1)(1,0)(0,.5) -\end{MEx*} -Note how I had to repeat the second \n\pscurve{} (I could have repeated it -within \n\pscustom, with \p{liftpen=2}), because I wanted to draw a line -between the two curves to enclose the region but I didn't want this line to be -stroked. -\end{description} - -The next set of commands modify the coordinate system. -\begin{description} - -\mitem \translate(coor) - - Translate coordinate system by \c{}. This shifts everything that comes later -by \c{}, but doesn't affect what has already been drawn. - -\mitem \scale{num1 `num2'} - - Scale the coordinate system in both directions by , or horizontally by - and vertically by . - -\mitem \rotate{angle} - - Rotate the coordinate system by . - -\mitem \swapaxes - - Switch the x and y coordinates. This is equivalent to -\begin{LVerb} - \rotate{-90} - \scale{-1 1 scale} -\end{LVerb} - -\mitem \msave - - Save the current coordinate system. You can then restore it with -\n\mrestore. You can have nested \n\msave-\n\mrestore{} pairs. \n\msave{} and -\n\mrestore{} do not have to be properly nested with respect to \TeX{} groups or -\n\gsave{} and \n\grestore. However, remember that \n\gsave{} and \n\grestore -also affect the coordinate system. \n\msave-\n\mrestore{} lets you change the -coordinate system while drawing part of a path, and then restore the old -coordinate system without destroying the path. \n\gsave-\n\grestore, on the -other hand, affect the path and all other componments of the graphics state. - -\mitem \mrestore - - See above. -\end{description} - -And now here are a few shadow tricks: -\begin{description} -\mitem \openshadow`[par]' - -Strokes a replica of the current path, using the various shadow parameters. - -\mitem \closedshadow`[par]' - -Makes a shadow of the region enclosed by the current path as if it were opaque -regions. - -\mitem \movepath(coor) - -Moves the path by \c{}. Use \n\gsave-\n\grestore{} if you don't want to lose -the original path. -\end{description} - -\Section{Pretty safe tricks} - -The next group of commands are safe, \emph{as long as there is a current -point}! - -\begin{description} -\mitem \lineto(coor) - - This is a quick version of "\psline()". - -\mitem \rlineto(coor) - - This is like \n\lineto, but \c{} is interpreted relative to the current -point. - -\mitem \curveto\c1\c2\c3 - - This is a quick version of "\psbezier"\c1\c2\c3. - -\mitem \rcurveto\c1\c2\c3 - - This is like \n\curveto, but \c1, \c2 and \c3 are interpreted relative to -the current point. -\end{description} - -\Section{For hackers only} - -For PostScript hackers, there are a few more commands. Be sure to read -Appendix \ref{S-raw} before using these. Needless to say: -\begin{Warning} -Misuse of the commands in this section can cause PostScript errors. -\end{Warning} - - The PostScript environment in effect with \n\pscustom{} has one unit equal to -one \TeX{} "pt". - -\begin{description} - -\mitem \code{code} - Insert the raw PostScript code. - -\mitem \dim{dim} - - Convert the PSTricks dimension to the number of "pt"'s, and inserts it in -the PostScript code. - -\mitem \coor\c1`\c2...\cn' - -Convert one or more PSTricks coordinates to a pair of numbers (using "pt" -units), and insert them in the PostScript code. - -\mitem \rcoor\c1`\c2...\cn' - -Like \n\coor, but insert the coordinates in reverse order. - -\mitem \file{file} - - This is like \n\code, but the raw PostScript is copied verbatim (except -comments delimited by "%") from . - -\mitem \arrows{arrows} - - This defines the PostScript operators "ArrowA" and "ArrowB" so that -\begin{LVerb} - x2 y2 x1 y1 ArrowA - x2 y2 x1 y1 ArrowB -\end{LVerb} -each draws an arrow(head) with the tip at \c1 and pointing from \c2. "ArrowA" -leaves the current point at end of the arrowhead, where a connect line should -start, and leaves \c2 on the stack. "ArrowB" does not change the current -point, but leaves -\begin{LVerb} - x2 y2 x1' y1' -\end{LVerb} -on the stack, where \c{1'} is the point where a connecting line should join. -To give an idea of how this work, the following is roughly how PSTricks draws -a bezier curve with arrows at the end: -\begin{MEx*}(4,3) - \pscustom{ - \arrows{|->} - \code{ - 80 140 5 5 ArrowA - 30 -30 110 75 ArrowB - curveto}} -\end{MEx*} - -\mitem \setcolor{color} - - Set the color to . - -\end{description} - -\endinput - -%% END psd-cust.tex diff --git a/Master/texmf-dist/source/generic/pstricks/psd-esse.tex b/Master/texmf-dist/source/generic/pstricks/psd-esse.tex deleted file mode 100644 index a76636d0d3b..00000000000 --- a/Master/texmf-dist/source/generic/pstricks/psd-esse.tex +++ /dev/null @@ -1,392 +0,0 @@ -%% BEGIN psd-esse.tex - -\part*{Welcome to PSTricks} - -PSTricks is a collection of PostScript-based \TeX{} macros that is compatible -with most \TeX{} macro packages, including Plain \TeX, \LaTeX{} and \ConTeXt, -PSTricks gives you color, graphics, rotation, trees and overlays. PSTricks -puts the icing (PostScript) on your cake (\TeX)! - -To install PSTricks, follow the instructions in the file "read-me.pst" that -comes with the PSTricks package. Even if PSTricks has already been installed -for you, give "read-me.pst" a look over. - -This \emph{User's Guide} verges on being a reference manual, meaning that it is -not designed to be read linearly. Here is a recommended strategy: Finish -reading this brief overview of the features in PSTricks. Then thumb through -the entire \emph{User's Guide} to get your own overview. Return to -Part~\ref{P-essentials} (Essentials) and read it carefully. Refer to the -remaining sections as the need arises. - -When you cannot figure out how to do something or when trouble arises, check -out the appendices (Help). You just might be lucky enough to find a solution. -There is also a \LaTeX{} file "samples.pst" of samples that is distributed with -PSTricks. Look to this file for further inspiration. - -This documentation is written with \LaTeX. Some examples use \LaTeX{} specific -constructs and some don't. However, there is nothing \LaTeX{} specific about -any of the macros, nor is there anything that does not work with \LaTeX. This -package has been tested with Plain \TeX, \LaTeX{} and \ConTeXt{} and -should work with other \TeX{} macro packages as well. - -\File{pstricks} -The main macro file is "pstricks.tex"/"pstricks.sty". Each of the PSTricks -macro files comes with a ".tex" extension and a ".sty" extension; these are -equivalent, but the ".sty" extension means that you can include the file name -as a \LaTeX{} package. - -There are numerous supplementary macro files. A file, like the one above and -the left, is used in this \emph{User's Guide} to remind you that you must input -a file before using the macros it contains. - -For most PSTricks macros, even if you misuse them, you will not get PostScript -errors in the output. However, it is recommended that you resolve any \TeX{} -errors before attempting to print your document. A few PSTricks macros pass on -PostScript errors without warning. Use these with care, especially if you are -using a networked printer, because PostScript errors can cause a printer to -bomb. Such macros are pointed out in strong terms, using a warning like this -one: - -\begin{Warning} -Use macros that do not check for PostScript errors with care. PostScript -errors can cause a printer to bomb! -\end{Warning} - -Keep in mind the following typographical conventions in this User's Guide. -\begin{itemize} - \item All literal input characters, i.e., those that should appear verbatim - in your input file, appear in upright "Helvetica" and {\UsageFont - Helvetica-Bold} fonts. - \item Meta arguments, for which you are supposed to substitute a value - (e.g., ) appear in slanted and - {\UsageFont\MetaFont Helvetica-BoldOblique} fonts. - \item The main entry for a macro or parameter that states its syntax appears - in a large bold font, \emph{except for the optional arguments, which are in - medium weight}. This is how you can recognize the optional arguments. - \item References to PSTricks commands and parameters within paragraphs are - set in {\UsageFont Helvetica-Bold}. - -\end{itemize} - -\part{The Essentials\label{P-essentials}} - - -\section{Arguments and delimiters} - -Here is some nitty-gritty about arguments and delimiters that is really -important to know. - -The PSTricks macros use the following delimiters: -\begin{center} -%% DG: to do -% Begin modification RN, 2002-12-29 -\iffalse -\begin{tabular}{rl} -Curly braces & "{}" \\ -Brackets (only for optional arguments) & "[]" \\ -Parentheses and commas for coordinates & \c{} \\ -"=" and "," for parameters & "=," \ldots\\ -\end{tabular} -\fi -\begin{tabular}{rl} -Curly braces & "{""}" \\ -Brackets (only for optional arguments) & "[""]" \\ -Parentheses and commas for coordinates & \c{} \\ -"=" and "," for parameters & "=""," \ldots\\ -\end{tabular} -% End modification RN -\end{center} -Spaces and commas are also used as delimiters within arguments, but in this -case the argument is expanded before looking for the delimiters. - -Always use a period rather than a comma to denote the decimal point, so that -PSTricks doesn't mistake the comma for a delimiter. - -The easiest mistake to make with the PSTricks macros is to mess up the -delimiters. This may generate complaints from \TeX{} or PSTricks about bad -arguments, or other unilluminating errors such as the following: -\begin{description}\itemsep=0pt\parsep=0pt -\item[] "! Use of \get@coor doesn't match its definition." -\item[] "! Paragraph ended before \pst@addcoor was complete." -\item[] -"! Forbidden control sequence found while scanning use of \check@arrow." -\item[] "! File ended while scanning use of \lput." -\end{description} -Delimiters are generally the first thing to check when you get errors with a -PSTricks macro. - -Since PSTricks macros can have many arguments, it is useful to know that you -can leave a space or new line between any arguments, except between arguments -enclosed in curly braces. If you need to insert a new line between arguments -enclosed in curly braces, put a comment character "%" at the end of the line. - -As a general rule, the first non-space character after a PSTricks macro should -not be a "[" or "(". Otherwise, PSTricks might think that the "[" or "(" is -actually part of the macro. You can always get around this by inserting a pair -"{}" of braces somewhere between the macro and the "[" or "(". - - -\Section{Color\label{S-color}} - -The grayscales -\begin{quote} - "black", "darkgray", "gray", "lightgray", and "white", -\end{quote} -and the colors -\begin{quote} - "red", "green", "blue", "cyan", "magenta", and "yellow" -\end{quote} -are predefined in PSTricks. - -This means that these names can be used with the graphics objects that are -described in later sections. This also means that the command \n\gray{} (or -\n\red, etc.) can be used much like "\rm" or "\tt", as in -\begin{Ex} - \gray\Large"{\gray This stuff should be gray.}" -\end{Ex} -The commands \n\gray, \n\red, etc. can be nested like the font commands as -well. There are a few important ways in which the color commands differ from -the font commands: -\begin{enumerate} - \item The color commands can be used in and out of math mode (there are no - restrictions, other than proper \TeX{} grouping). - \item The color commands affect whatever is in their scope (e.g., lines), - not simply characters. - \item The scope of the color commands does not extend across pages. - \item The color commands are not as robust as font commands when used inside - box macros. See page \pageref{colorboxproblems} for details. You can avoid - most problems by explicitly grouping color commands (e.g., enclosing the - scope in braces "{}") whenever these are in the argument of another - command.\footnote{% -However, this is not necessary with the PSTricks LR-box commands, expect when -\n\psverbboxtrue{} is in effect. See Section \ref{S-boxes}.} - -\end{enumerate} - -You can define or redefine additional colors and grayscales with the following -commands. In each case, is a number between 0 and 1. Spaces are used as -delimiters---don't add any extraneous spaces in the arguments. - -\begin{description} - -\mitem \newgray{color}{num} - - is the gray scale specification, to be set by PostScript's "setgray" -operator. 0 is black and 1 is white. For example: -\begin{LVerb} - \newgray{darkgray}{.25} -\end{LVerb} - -\mitem \newrgbcolor{color}{num1 num2 num3} - - is a \emph{red-green-blue} specification, to be set by -PostScript's "setrgbcolor" operator. For example, -\begin{LVerb} - \newrgbcolor{green}{0 1 0} -\end{LVerb} - -\mitem \newhsbcolor{color}{num1 num2 num3} - - is an \emph{hue-saturation-brightness} specification, to be -set by PostScript's "sethsbcolor" operator. For example, -\begin{LVerb} - \newhsbcolor{mycolor}{.3 .7 .9} -\end{LVerb} - -\mitem \newcmykcolor{color}{num1 num2 num3 num4} - - is a \emph{cyan-magenta-yellow-black} specification, to -be set by PostScript's "newcmykcolor" operator. For example, -\begin{LVerb} - \newcmykcolor{hercolor}{.5 1 0 .5} -\end{LVerb} - -\end{description} - -For defining new colors, the \emph{rbg} model is a sure thing. \emph{hsb} is not -recommended. \emph{cmyk} is not supported by all Level 1 implementations of -PostScript, although it is best for color printing. For more information on -color models and color specifications, consult the \emph{PostScript Language -Reference Manual}, 2nd Edition (Red Book), and a color guide. - -\begin{drivers} The command \n\pstVerb{} must be defined.\end{drivers} - - -\Section{Setting graphics parameters\label{S-par}} - -PSTricks uses a key-value system of graphics parameters to customize the -macros that generate graphics (e.g., lines and circles), or graphics combined -with text (e.g., framed boxes). You can change the default values of -parameters with the command \n\psset, as in -\begin{LVerb} - \psset{fillcolor=yellow} - \psset{linecolor=blue,framearc=.3,dash=3pt 6pt} -\end{LVerb} -The general syntax is: - \Mac \psset{par1=value1`,par2=value2,\ldots'} -As illustrated in the examples above, spaces are used as delimiters for some -of the values. Additional spaces are allowed only following the comma that -separates "=" pairs (which is thus a good place to start a new -line if there are many parameter changes). E.g., the first example is -acceptable, but the second is not: -\begin{LVerb} - \psset{fillcolor=yellow, linecolor=blue} - \psset{fillcolor= yellow,linecolor =blue } -\end{LVerb} -The parameters are described throughout this \emph{User's Guide}, as they are -needed. - -Nearly every macro that makes use of graphics parameters allows you to include -changes as an optional first argument, enclosed in square brackets. -For example, -\begin{LVerb} - \psline[linecolor=green,linestyle=dotted](8,7) -\end{LVerb} -draws a dotted, green line. It is roughly equivalent to -\begin{LVerb} - {\psset{linecolor=green,linestyle=dotted}\psline(8,7)} -\end{LVerb} - -For many parameters, PSTricks processes the value and stores it in a peculiar -form, ready for PostScript consumption. For others, PSTricks stores the value -in a form that you would expect. In the latter case, this \emph{User's Guide} -will mention the name of the command where the value is stored. This is so -that you can use the value to set other parameters. E.g., -\begin{LVerb} - \psset{linecolor=\psfillcolor,doublesep=.5\pslinewidth} -\end{LVerb} -However, even for these parameters, PSTricks may do some processing and -error-checking, and you should always set them using \n\psset{} or as optional -parameter changes, rather than redefining the command where the value is -stored. - -\Section{Dimensions, coordinates and angles\label{S-coor}} - -Whenever an argument of a PSTricks macro is a dimension, the unit is optional. -The default unit is set by the -\begin{Ex} - \Par{unit=dim} (1cm) -\end{Ex} -parameter. For example, with the default value of "1cm", the following are -equivalent: -\begin{LVerb} - \psset{linewidth=.5cm} - \psset{linewidth=.5} -\end{LVerb} -By never explicitly giving units, you can scale graphics by changing the value -of \p{unit}. - -You can use the default coordinate when setting non-PSTricks dimensions as -well, using the commands -\begin{Ex} - \object \pssetlength{cmd}{dim} - \object \psaddtolength{cmd}{dim} -\end{Ex} -where is a dimension register (in \LaTeX{} parlance, a ``length''), and - is a length with optional unit. These are analogous to \LaTeX's -"\setlength" and "\addtolength". - -Coordinate pairs have the form \c{}. The origin of the coordinate system is at -\TeX's currentpoint. The command \n\SpecialCoor{} lets you use polar -coordinates, in the form "(;)", where is the radius (a dimension) -and is the angle (see below). You can still use Cartesian coordinates. For -a complete description of \n\SpecialCoor, see Section \ref{S-SpecialCoor}. - -The \p{unit} parameter actually sets the following three parameters: -\begin{Ex} - \Par{xunit=dim} (1cm) - \Par{yunit=dim} (1cm) - \Par{runit=dim} (1cm) -\end{Ex} -These are the default units for x-coordinates, y-coordinates, and all other -coordinates, respectively. By setting these independently, you can scale the x -and y dimensions in Cartesian coordinate unevenly. After changing \p{yunit} to -"1pt", the two \n\psline's below are equivalent: -\begin{LVerb} - \psset{yunit=1pt} - \psline(0cm,20pt)(5cm,80pt) - \psline(0,20)(5,80) -\end{LVerb} - -The values of the \p{runit}, \p{xunit} and \p{yunit} parameters are stored in -the dimension registers \n\psunit{} (also \n\psrunit), \n\psxunit{} and -\n\psyunit. - -Angles, in polar coordinates and other arguments, should be a number giving -the angle in degrees, by default. You can also change the units used for -angles with the command - \Mac \degrees`[num]' - should be the number of units in a circle. For example, you might use -\begin{LVerb} - \degrees[100] -\end{LVerb} -to make a pie chart when you know the shares in percentages. \n\degrees{} -without the argument is the same as -\begin{LVerb} - \degrees[360] -\end{LVerb} -The command - \Mac \radians -is short for -\begin{Ex} - "\degrees[6.28319]" -\end{Ex} -\n\SpecialCoor{} lets you specify angles in other ways as well. - -\Section{Basic graphics parameters} - -The width and color of lines is set by the parameters: -\begin{Ex} - \Par{linewidth=dim} - \Par{linecolor=color} -\end{Ex} -The \p{linewidth} is stored in the dimension register \n\pslinewidth, and the -\p{linecolor} is stored in the command \n\pslinecolor. - -The regions delimited by open and closed curves can be filled, as determined -by the parameters: -\begin{Ex} - \p{fillstyle=