diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/pstricks/examples')
18 files changed, 1566 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/generic/pstricks/examples/changes.pdf b/Master/texmf-dist/doc/generic/pstricks/examples/changes.pdf Binary files differnew file mode 100644 index 00000000000..7d921997282 --- /dev/null +++ b/Master/texmf-dist/doc/generic/pstricks/examples/changes.pdf diff --git a/Master/texmf-dist/doc/generic/pstricks/examples/changes.tex b/Master/texmf-dist/doc/generic/pstricks/examples/changes.tex new file mode 100644 index 00000000000..d431a41be2c --- /dev/null +++ b/Master/texmf-dist/doc/generic/pstricks/examples/changes.tex @@ -0,0 +1,662 @@ +%% 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\/}} % <meta> (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<x>,<y>)" & "(<x>,<y>)" & Cartesian.\\ + "(p<r>,<a>)" & "(<r>;<a>)" & Polar.\\ + "(n{<node>})" & "(<node>)" & Center of <node>.\\ + "(N[<par>]{<node>})" & "([<par>]<node>)" & Relative to <node>.\\ + "(m{<coor1>}{<coor2>})" & "(<coor1>|<coor2>)" & Mixed. + \end{tabular} + \end{center} +In addition, if you used the syntax "(:<ps>)" from "pst-beta.tex" for raw +postscript code, search for "(:" and replace by "(!". + +\item + Angles can no longer be specified by "{<x>,<y>}". "\SpecialCoor" lets you +use coordinates as angles, but they must be enclosed in "()". E.g., +"{(<x>,<y>)}". See User's Guide for details. + + {\bfseries How to fix files:} Add the parentheses "()" to angles given by +"{<x>,<y>}" and and precede this usage by "\SpecialCoor". However, there is no +easy way to search for "{<x>,<y>}" (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=<dim num1 num2 num3> +\end{LVerbatim} +parameter has been replaced by +\begin{LVerbatim} + arrowsize=<dim num1> + arrowlength=<num2> + arrowinset=<num3> +\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", <num2> and +<num3> will simply be ignored. + +\item + The +\begin{LVerbatim} + tbarsize=<dim num1 num2> +\end{LVerbatim} +parameter has been replaced by +\begin{LVerbatim} + tbarsize=<dim num1> + bracketlength=<num2> % For square brackets. + rbracketlength=<num2> % 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", <num2> 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 "(<x>,<y>)" argument by "\moveto(<x>,<y>)" +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{<stuff>}" & "\gsave" <stuff> "\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 "(<x>,<y>)" +argument. Use the "origin" parameter instead. + + {\bfseries How to fix files:} + Search for "\listplot", "\psplot" and "\parametricplot". Replace any +"(<x>,<y>)" argument by the parameter change "[origin={<x>,<y>}]". + +\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{<num1>,<num2>}" by "\scalebox{<num1> <num2>}". + +\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 "[<dim>]" that sets the clippath distance +<dim> 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 <refpoint> 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]<ref point>(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 Binary files differnew file mode 100644 index 00000000000..d42fc926130 --- /dev/null +++ b/Master/texmf-dist/doc/generic/pstricks/examples/chartest.pdf diff --git a/Master/texmf-dist/doc/generic/pstricks/examples/chartest.tex b/Master/texmf-dist/doc/generic/pstricks/examples/chartest.tex new file mode 100644 index 00000000000..cf9a608161a --- /dev/null +++ b/Master/texmf-dist/doc/generic/pstricks/examples/chartest.tex @@ -0,0 +1,25 @@ +%% 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 Binary files differnew file mode 100644 index 00000000000..c356d7af123 --- /dev/null +++ b/Master/texmf-dist/doc/generic/pstricks/examples/denis1.pdf diff --git a/Master/texmf-dist/doc/generic/pstricks/examples/denis1.tex b/Master/texmf-dist/doc/generic/pstricks/examples/denis1.tex new file mode 100644 index 00000000000..2818fcb74f0 --- /dev/null +++ b/Master/texmf-dist/doc/generic/pstricks/examples/denis1.tex @@ -0,0 +1,41 @@ +%% 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 Binary files differnew file mode 100644 index 00000000000..b24a0dcde42 --- /dev/null +++ b/Master/texmf-dist/doc/generic/pstricks/examples/denis2.pdf diff --git a/Master/texmf-dist/doc/generic/pstricks/examples/denis2.tex b/Master/texmf-dist/doc/generic/pstricks/examples/denis2.tex new file mode 100644 index 00000000000..0c5a4f3a4ba --- /dev/null +++ b/Master/texmf-dist/doc/generic/pstricks/examples/denis2.tex @@ -0,0 +1,36 @@ +%% 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 new file mode 100644 index 00000000000..68945e6e95e --- /dev/null +++ b/Master/texmf-dist/doc/generic/pstricks/examples/filetest.dat @@ -0,0 +1,71 @@ +%% 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 Binary files differnew file mode 100644 index 00000000000..dac3755ff38 --- /dev/null +++ b/Master/texmf-dist/doc/generic/pstricks/examples/filetest.pdf diff --git a/Master/texmf-dist/doc/generic/pstricks/examples/filetest.raw b/Master/texmf-dist/doc/generic/pstricks/examples/filetest.raw new file mode 100644 index 00000000000..69a459f7e7d --- /dev/null +++ b/Master/texmf-dist/doc/generic/pstricks/examples/filetest.raw @@ -0,0 +1,6 @@ +%% 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 new file mode 100644 index 00000000000..52ac7732d2b --- /dev/null +++ b/Master/texmf-dist/doc/generic/pstricks/examples/filetest.tex @@ -0,0 +1,84 @@ +%% 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 Binary files differnew file mode 100644 index 00000000000..947988f698c --- /dev/null +++ b/Master/texmf-dist/doc/generic/pstricks/examples/pst-test.pdf diff --git a/Master/texmf-dist/doc/generic/pstricks/examples/pst-test.tex b/Master/texmf-dist/doc/generic/pstricks/examples/pst-test.tex new file mode 100644 index 00000000000..890af15b8fc --- /dev/null +++ b/Master/texmf-dist/doc/generic/pstricks/examples/pst-test.tex @@ -0,0 +1,126 @@ +%%%%%%%%%%%%%%%%%%% 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 Binary files differnew file mode 100644 index 00000000000..18cf8a44824 --- /dev/null +++ b/Master/texmf-dist/doc/generic/pstricks/examples/samples.pdf diff --git a/Master/texmf-dist/doc/generic/pstricks/examples/samples.tex b/Master/texmf-dist/doc/generic/pstricks/examples/samples.tex new file mode 100644 index 00000000000..57b8ad0d8ac --- /dev/null +++ b/Master/texmf-dist/doc/generic/pstricks/examples/samples.tex @@ -0,0 +1,443 @@ +%% 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 <gisli@liapunov.eecs.umich.edu>} + \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 <pierre@diku.dk>}} + \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 <gisli@liapunov.eecs.umich.edu>} + + \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 Binary files differnew file mode 100644 index 00000000000..2e2db9df0e5 --- /dev/null +++ b/Master/texmf-dist/doc/generic/pstricks/examples/tp-test.pdf diff --git a/Master/texmf-dist/doc/generic/pstricks/examples/tp-test.tex b/Master/texmf-dist/doc/generic/pstricks/examples/tp-test.tex new file mode 100644 index 00000000000..355851eee33 --- /dev/null +++ b/Master/texmf-dist/doc/generic/pstricks/examples/tp-test.tex @@ -0,0 +1,72 @@ +%% 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 |