diff options
author | Karl Berry <karl@freefriends.org> | 2006-11-30 03:23:45 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-11-30 03:23:45 +0000 |
commit | 0e16c58d10670a29d73183de0640f72f0857c829 (patch) | |
tree | 76b2ab21af87bb2a0f88c3a730903a58902a30ac /Master/texmf-dist | |
parent | b2f5c5e4cf5d2c87a82dd927644fa213a0e02429 (diff) |
new pstricks pst-grad and pst-coil
git-svn-id: svn://tug.org/texlive/trunk@2559 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-coil/Changes | 12 | ||||
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-coil/README | 12 | ||||
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-coil/pst-coil-doc.bib | 78 | ||||
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-coil/pst-coil-doc.pdf | bin | 0 -> 175383 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-coil/pst-coil-doc.tex | 452 | ||||
-rw-r--r-- | Master/texmf-dist/dvips/pst-coil/pst-coil.pro | 59 | ||||
-rw-r--r-- | Master/texmf-dist/source/generic/pst-coil/Makefile | 49 | ||||
-rw-r--r-- | Master/texmf-dist/tex/generic/pst-coil/pst-coil.tex | 143 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/pst-coil/pst-coil.sty | 7 | ||||
-rw-r--r-- | Master/texmf-dist/tpm/pst-coil.tpm | 31 | ||||
-rw-r--r-- | Master/texmf-dist/tpm/pst-grad.tpm | 31 |
11 files changed, 874 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-coil/Changes b/Master/texmf-dist/doc/generic/pst-coil/Changes new file mode 100644 index 00000000000..bc8065868fa --- /dev/null +++ b/Master/texmf-dist/doc/generic/pst-coil/Changes @@ -0,0 +1,12 @@ +pst-coil.sty -------- + 2006-08-11 message for loading the pro file + +pst-coil.tex -------- +v. 1.00 2006-08-11 using pst-xkey for the key handling + +pst-coil.pro -------- +v. 1.00 2006-11-05 small tweaks to the code + + +pst-coil-doc.tex -------- +v. 1.00 2006-08-11 new documentation diff --git a/Master/texmf-dist/doc/generic/pst-coil/README b/Master/texmf-dist/doc/generic/pst-coil/README new file mode 100644 index 00000000000..8f8b07cfa0e --- /dev/null +++ b/Master/texmf-dist/doc/generic/pst-coil/README @@ -0,0 +1,12 @@ +pst-coil: coils zigzags and coils connections + +pst-coil.sty - The LaTeX file +pst-coil.tex - The TeX file +pst-coil.pro - The dvips header file +pst-coil-doc.pdf - The documentation +pst-coil-doc.tex - The documentation, source +pst-coil-doc.bib - The documentation, bibfile + + +-- +Herbert Voss 2006-11-05 diff --git a/Master/texmf-dist/doc/generic/pst-coil/pst-coil-doc.bib b/Master/texmf-dist/doc/generic/pst-coil/pst-coil-doc.bib new file mode 100644 index 00000000000..04745cd2ae2 --- /dev/null +++ b/Master/texmf-dist/doc/generic/pst-coil/pst-coil-doc.bib @@ -0,0 +1,78 @@ +%% -*-bibtex-*- +@STRING{tugboat = {TUGboat} } +@STRING{dtk = {{D}ie {\TeX}nische {K}om{\"o}die} } + +@Book{companion, + author = {Michel Goosens and Frank Mittelbach and Alexander + Samarin}, + title = {The {\LaTeX} {G}raphics {C}ompanion}, + publisher = {{Addison-Wesley Publishing Company}}, + year = {1997}, + address = {Reading, Mass.} +} + +@Article{girou:01:, + author = {Denis Girou}, + title = {Pr\'esentation de {PST}ricks}, + journal = {Cahier {GUT}enberg}, + year = 1994, + volume = {16}, + month = apr, + pages = {21-70} +} + +@Article{girou:02:, + author = {{Timothy Van} Zandt and Denis Girou}, + title = {Inside {PST}ricks}, + journal = TUGboat, + year = 1994, + volume = {15}, + month = sep, + pages = {239-246} +} + +@Book{PostScript, + Author = {Kollock, Nikolai G.}, + Title = {Post{S}cript richtig eingesetzt: vom {K}onzept zum + praktischen {E}insatz}, + Publisher = {IWT}, + Address = {Vaterstetten}, + year = 1989, +} + +@Manual{pstricks, + Title = {PSTricks - {\PS} macros for generic {\TeX}}, + Author = {{Timothy Van} Zandt}, + Organization = {}, + Address = {\url{http://www.tug.org/application/PSTricks}}, + Note = {}, + year = 1993 +} + +@Manual{pst-coil, + Title = {\texttt{pst-coil}: Coils and zigzags}, + Author = {{Timothy Van} Zandt}, + Organization = {}, + Address = {\url{CTAN:graphics/pstricks/generic/}}, + Note = {}, + year = 1999 +} + +@Manual{multido, + Title = {\texttt{multido.tex} - a loop macro, that supports fixed-point addition}, + Author = {{Timothy Van} Zandt}, + Organization = {}, + Address = {\url{CTAN:/graphics/pstricks/generic/multido.tex}}, + Note = {}, + year = 1997 +} + +@Book{PSTricks2, + author = {Herbert Vo\ss{}}, + title = {\texttt{PSTricks} -- {G}rafik f\"ur \TeX{} und \LaTeX}, + edition = {third}, + publisher = {DANTE -- Lehmanns}, + year = {2006}, + address = {Heidelberg/Hamburg} +} + diff --git a/Master/texmf-dist/doc/generic/pst-coil/pst-coil-doc.pdf b/Master/texmf-dist/doc/generic/pst-coil/pst-coil-doc.pdf Binary files differnew file mode 100644 index 00000000000..93f835c76b1 --- /dev/null +++ b/Master/texmf-dist/doc/generic/pst-coil/pst-coil-doc.pdf diff --git a/Master/texmf-dist/doc/generic/pst-coil/pst-coil-doc.tex b/Master/texmf-dist/doc/generic/pst-coil/pst-coil-doc.tex new file mode 100644 index 00000000000..d32006bf87e --- /dev/null +++ b/Master/texmf-dist/doc/generic/pst-coil/pst-coil-doc.tex @@ -0,0 +1,452 @@ +\documentclass[english]{article} +% +\usepackage[T1]{fontenc} +\usepackage[latin9]{inputenc} +\listfiles +\usepackage[scaled]{luximono} +\usepackage{lmodern} +\usepackage{xspace} +\usepackage[bottom]{footmisc} +\usepackage{tabularx} +\usepackage{longtable} +\usepackage[NewCommands,NewParameters]{ragged2e} +\usepackage[dvipsnames]{pstricks} +\usepackage{pst-node}% muss _nach_ pst-grad geladen werden +\usepackage{pst-coil} +\definecolor{hellgelb}{rgb}{1,1,0.8} +% +\def\PST{{\texttt{PSTricks}}\xspace} +\def\PDF{{\texttt{PDF}}\xspace} +\def\pst{{\texttt{pstricks}}\xspace} +\def\PS{PostScript\xspace} +\newcommand*\CMD[1]{{\UrlFont\texttt{\textbackslash #1}}} +% +\def\tIndex#1{\index{#1@{\UrlFont\texttt{#1}}}} +\def\cIndex#1{\index{#1@\CMD{#1}}} +\def\pIndex#1{\index{Parameter@\textbf{Parameter}!{\UrlFont\texttt{#1}}}} +\def\ppIndex#1{\index{Parameter@\textbf{Parameter}!{#1}}} +\def\sIndex#1{\index{Syntax@\textbf{Syntax}!\CMD{#1}}} +\def\csIndex#1{\sIndex{#1}\cIndex{#1}} +\def\PIndex#1{\index{Paket@\textbf{Paket}!\texttt{#1}}} +\def\mIndex#1{\texttt{#1}\tIndex{#1}\pIndex{#1}} +% +\pretolerance=500 +\tolerance=1000 +\hbadness=3000 +\vbadness=3000 +\hyphenpenalty=400 + +\usepackage{showexpl}% not a real PSTricks package +\usepackage{babel} +\usepackage{makeidx} +\makeindex +\usepackage[dvips,colorlinks,linktocpage]{hyperref} % PDF-support +% +\renewcommand{\ttdefault}{ul9}% Luxi Mono +\lstset{keywordstyle=\small\fontfamily{ul9}\bfseries} +\lstset{language=PSTricks,moredelim=**[is][\bf\color{blue}]{§}{§}}% oder andere Begrenzer +% + +\begin{document} +% +\title{\texttt{pst-coil}:\newline Coils, springs and zigzag lines} +\author{Herbert Voß\thanks{Thanks to Eugene Ressler for translating this documentation!}} +\maketitle + +\begin{abstract} +\index{Paket@\textbf{Paket}!\texttt{pst-coil}}Coils, springs and zigzag curves +do not really count to the ordinary when creating graphics. They are of some +importance though when dealing with the creation of coilish connections. They +can also be used for node connections which will be shown +at the end of this chapter. + +The parameters especially for the \verb+coil+ variants are only easy to +understand when keeping in mind that three dimensional helixes are dealt with, +which are only projected onto the two dimensional paper plane. This will be +elaborated on at the corresponding places. +\end{abstract} + +\tableofcontents + +\clearpage +% --------------------------------------------------------------------------------------- +\section{Parameters}\label{sec:pstcoil:parameter} +% --------------------------------------------------------------------------------------- +Table~\ref{tab:pst-coil:parameter} shows a compilation of the special parameters +valid for \verb+pst-coil+. + +\begin{longtable}{@{}>{\ttfamily}l>{\ttfamily}l>{\ttfamily}l@{}} +\caption{Compilation of all parameters for \texttt{pst-coil}}\label{tab:pst-coil:parameter}\\[-5pt] +\textrm{name} & \textrm{value} & \textrm{default}\\\hline +\endfirsthead +\textrm{name} & \textrm{value} & \textrm{default}\\\hline +\endhead +coilwidth & <value[unit]> & 1cm\\ +coilheight & <value> & 1\\ +coilarm & <value[unit]> & 0.5cm\\ +coilarmA & <value[unit]> & 0.5cm\\ +coilarmB & <value[unit]> & 0.5cm\\ +coilaspect & <angle> & 45\\ +coilinc & <angle> & 45\\ +\end{longtable} +\tIndex{coilwidth}\tIndex{coilheight}\tIndex{coilarm}\tIndex{coilaspect}\tIndex{coilinc}% +\pIndex{coilwidth}\pIndex{coilheight}\pIndex{coilarm}\pIndex{coilaspect}\pIndex{coilinc}% + +% --------------------------------------------------------------------------------------- +\subsection{\texttt{coilwidth}}\label{subsec:pstcoil:coilwidth} +% --------------------------------------------------------------------------------------- +\tIndex{coilwidth}\verb+coilwidth+ denotes the diameter\index{diameter} of the +coil resp. the height of a zigzag line\index{zigzag line}\index{coil}. The +diameter corresponds to the height with a perpendicular parallel projection +transverse to the length. + +\medskip\noindent +\begin{minipage}{5cm} +\begin{pspicture}(0,-5)(5,5) +\pscoil(0,4)(3.5,4) +{ +\psset{linewidth=0.2pt} +\psline[arrowscale=2,tbarsize=3mm]{|<->|}(4.5,3.5)(4.5,4.5) +\psline[linestyle=dashed](3.25,4.5)(4.5,4.5) +\psline[linestyle=dashed](2.75,3.5)(4.5,3.5) +} +\uput*[0](3.5,4){coilwidth} +\pscoil[coilwidth=0.75cm](0,2.6)(3.6,2.6) +\uput*[0](3.5,2.6){0.75cm} +\pscoil[coilwidth=0.5cm](0,1.8)(3.5,1.8) +\uput*[0](3.5,1.8){0.50cm} +\pscoil[coilwidth=0.25cm](0,1.2)(3.5,1.2) +\uput*[0](3.5,1.2){0.25cm} +\pscoil*[coilwidth=0.5cm](0,0.5)(3.5,0.5) +\uput*[0](3.5,0.5){0.50cm} +% zigzag +\pszigzag(0,-4)(3.5,-4) +{ +\psset{linewidth=0.2pt} +\psline[arrowscale=2,tbarsize=3mm]{|<->|}(4.5,-3.5)(4.5,-4.5) +\psline[linestyle=dashed](3.25,-4.5)(4.5,-4.5) +\psline[linestyle=dashed](2.75,-3.5)(4.5,-3.5) +} +\uput*[0](3.5,-4){coilwidth} +\pszigzag[coilwidth=0.75cm](0,-2.6)(3.6,-2.6) +\uput*[0](3.5,-2.6){0.75cm} +\pszigzag[coilwidth=0.5cm](0,-1.8)(3.5,-1.8) +\uput*[0](3.5,-1.8){0.50cm} +\pszigzag[coilwidth=0.25cm](0,-1.2)(3.5,-1.2) +\uput*[0](3.5,-1.2){0.25cm} +\pszigzag*[coilwidth=0.5cm](0,-0.5)(3.5,-0.5) +\uput*[0](3.5,-0.5){0.50cm} +\end{pspicture} +\end{minipage}\hfill% +\begin{minipage}{\linewidth-5cm-1em} +\begin{lstlisting} +\begin{pspicture}(0,-5)(5,5) +\pscoil(0,4)(3.5,4) +{\psset{linewidth=0.2pt} +\psline[arrowscale=2,tbarsize=3mm]{|<->|}(4.5,3.5)(4.5,4.5) +\psline[linestyle=dashed](3.25,4.5)(4.5,4.5) +\psline[linestyle=dashed](2.75,3.5)(4.5,3.5)} +\uput*[0](3.5,4){coilwidth} +\pscoil[coilwidth=0.75cm](0,2.6)(3.6,2.6) +\uput*[0](3.5,2.6){0.75cm} +\pscoil[coilwidth=0.5cm](0,1.8)(3.5,1.8) +\uput*[0](3.5,1.8){0.50cm} +\pscoil[coilwidth=0.25cm](0,1.2)(3.5,1.2) +\uput*[0](3.5,1.2){0.25cm} +\pscoil*[coilwidth=0.5cm](0,0.5)(3.5,0.5) +\uput*[0](3.5,0.5){0.50cm} +% zigzag +\pszigzag(0,-4)(3.5,-4) + +[ ... ] +\end{lstlisting} +\end{minipage} + + + +% --------------------------------------------------------------------------------------- +\subsection{\texttt{coilheight}}\label{subsec:pstcoil:coilheight} +% --------------------------------------------------------------------------------------- +\tIndex{coilheight}\verb+coilheight+ is in contrast to \verb+coilwidth+ no +length but only a factor, whereat the distance between two +windings\index{winding} resp. jags is composed as follows: +\begin{equation}dx = coilheight\cdot coilwidth \end{equation} + +As can be seen in the following example, not the same physical distance is +yielded. This is caused by the internal three dimensional +representation\index{three dimensional representation} of the coil; it is not +seen under an angle of $90$° but $45$°. (section~\ref{subsec:pstcoil:coilaspect}) + +\medskip\noindent +\begin{LTXexample}[width=5cm] +\begin{pspicture}(0,-4)(5,5) +\pscoil(0,4)(3.5,4) +{\psset{linewidth=0.2pt} +\psline[arrowscale=2,tbarsize=3mm]{|<->|}(4.5,3.5)(4.5,4.5) +\psline[linestyle=dashed](3.25,4.5)(4.5,4.5) +\psline[linestyle=dashed](2.75,3.5)(4.5,3.5) +\psline[arrowscale=2,tbarsize=3mm]{|<->|}(1.75,3.2)(2.5,3.2) +\uput[-90](2.15,3){\footnotesize\texttt{coilheight$\times$coilwidth}}} +\uput*[0](3.5,4){coilwidth} +\pscoil[coilheight=0.75](0,1.5)(3.6,1.5) +\uput*[0](3.5,1.5){0.75} +\pscoil[coilheight=0.5](0,0)(3.5,0) +\uput*[0](3.5,0){0.50} +\pscoil[coilheight=1.25](0,-1.5)(3.5,-1.5) +\uput*[0](3.5,-1.5){1.25} +\pscoil*[coilheight=0.5](0,-3)(3.5,-3) +\uput*[0](3.5,-3){0.50} +\end{pspicture} +\end{LTXexample} + + +\medskip\noindent +\begin{LTXexample}[width=5cm] +\begin{pspicture}(0,-4)(5,5) +\pszigzag(0,4)(3.5,4) +{ \psset{linewidth=0.2pt} +\psline[arrowscale=2,tbarsize=3mm]{|<->|}(4.5,3.5)(4.5,4.5) +\psline[linestyle=dashed](2.5,4.5)(4.5,4.5) +\psline[linestyle=dashed](2.75,3.5)(4.5,3.5) +\psline[arrowscale=2,tbarsize=3mm]{|<->|}(1.75,3.2)(2.75,3.2) +\uput[-90](2.15,3){\footnotesize\texttt{coilheight$\times$coilwidth}} } +\uput*[0](3.5,4){coilwidth} +\pszigzag[coilheight=0.75](0,1.5)(3.6,1.5) +\uput*[0](3.5,1.5){0.75} +\pszigzag[coilheight=0.5](0,0)(3.5,0) +\uput*[0](3.5,0){0.50} +\pszigzag[coilheight=1.25](0,-1.5)(3.5,-1.5) +\uput*[0](3.5,-1.5){1.25} +\pszigzag*[coilheight=0.5](0,-3)(3.5,-3) +\uput*[0](3.5,-3){0.50} +\end{pspicture} +\end{LTXexample} + + + +% --------------------------------------------------------------------------------------- +\subsection{\texttt{coilarm}, \texttt{coilarmA} and \texttt{coilarmB}}\label{subsec:pstcoil:coilarm} +% --------------------------------------------------------------------------------------- +\tIndex{coilarm}\tIndex{coilarmA}\tIndex{coilarmB}\verb+coilarm+ denotes the +part of a straight line made left and right. Negative values are possible, but +do not make a lot of sense as a rule. As can be gathered from the example, the +coil is lenghtened by a negative value in this case, so that the part of a +straight line is led back to the specified starting point resp. endpoint and +consequently has a negative ``direction''{}. This parameter is not available for +\CMD{psCoil}. + +\medskip\noindent +\begin{LTXexample}[width=4cm] +\begin{pspicture}(4,4.5) +\pscoil(0,4)(4,4) +\psset{coilwidth=0.5} +\pscoil[coilarm=0](0,3)(4,3) +\pscoil[coilarmA=1cm,coilarmB=0.2cm](0,2)(4,2) +\pscoil[coilarm=-10pt](0,1)(4,1) +\end{pspicture} +\end{LTXexample} + +\medskip\noindent +\begin{LTXexample}[width=4cm] +\begin{pspicture}(4,4.5) +\pszigzag(0,4)(4,4) +\psset{coilwidth=0.5} +\pszigzag[coilarm=0](0,3)(4,3) +\pszigzag[coilarmA=1cm,coilarmB=0.2cm](0,2)(4,2) +\pszigzag[coilarm=-10pt](0,1)(4,1) +\end{pspicture} +\end{LTXexample} + + + +% --------------------------------------------------------------------------------------- +\subsection{\texttt{coilaspect}}\label{subsec:pstcoil:coilaspect} +% --------------------------------------------------------------------------------------- +\tIndex{coilaspect}In section~\ref{subsec:pstcoil:coilheight} the three +dimensional representation of the coil has been pointed out already. If it was +regarded right-angled to its axis, the windings would not be recognizable. With +\verb+coilaspect+ this ``perspective''{} can be influenced, which is only +possible for the ``coil''{} variants of course. \verb+coilaspect=0+ yields a +sine curve. + +\medskip\noindent +\begin{LTXexample}[width=4cm] +\begin{pspicture}(4,4.5) +\pscoil(0,4)(4,4) +\psset{coilwidth=0.75} +\pscoil[coilaspect=0](0,3)(4,3) +\pscoil[coilaspect=30,coilheight=0.3](0,2)(4,2) +\pscoil[coilaspect=-30,coilheight=0.3](0,1)(4,1) +\end{pspicture} +\end{LTXexample} + + +% --------------------------------------------------------------------------------------- +\subsection{\texttt{coilinc}}\label{subsec:pstcoil:coilinc} +% --------------------------------------------------------------------------------------- +\tIndex{coilinc}The curve is drawn with the \verb+lineto+ procedure of \PS, +whereat \verb+coilinc+ specifies the rotation angle in the angular measure at +which the next point is calculated. It has already been mentioned that the +calculation is done as a three dimensional coil and is projected onto the two +dimensional plane only in the end. + +\verb+coilinc+ does also not make sense for zigzag lines, so that this parameter +again only is available for the \verb+coil+ variant. Large angles result in a +polygon line, small angles in harmonic progressions with increased calculation +effort. + +\medskip\noindent +\begin{LTXexample}[width=4cm] +\begin{pspicture}(4,4.5) +\psset{coilwidth=0.8} +\pscoil(0,4)(4,4) +\psset{coilinc=0} +\pscoil[coilinc=5](0,3)(4,3) +\pscoil[coilinc=30](0,2)(4,2) +\pscoil[coilinc=60](0,1)(4,1) +\end{pspicture} +\end{LTXexample} + + +% --------------------------------------------------------------------------------------- +\section{Makros}\label{sec:pstcoil:makros} +% --------------------------------------------------------------------------------------- +\verb+pst-coil+ defines three macros, which make the creation of coil or zigzag +shaped lines possible.\index{zigzag line} +\begin{verbatim} +\pscoil[<parameters>](<x1,y1>) +\pscoil[<parameters>](<x0,y0>)(<x1,y1>) +\pscoil[<parameters>]{<arrows>}(<x0,y0>)(<x1,y1>) +\pscoil*[<parameters>](<x1,y1>) +\pscoil*[<parameters>](<x0,y0>)(<x1,y1>) +\pscoil*[<parameters>]{<arrows>}(<x0,y0>)(<x1,y1>) +\psCoil[<parameters>]{<angle1>}{<angle2>} +\psCoil*[<parameters>]{<angle1>}{<angle2>} +\pszigzag[<parameters>](<x1,y1>) +\pszigzag[<parameters>](<x0,y0>)(<x1,y1>) +\pszigzag[<parameters>]{<arrows>}(<x0,y0>)(<x1,y1>) +\pszigzag*[<parameters>](<x1,y1>) +\pszigzag*[<parameters>](<x0,y0>)(<x1,y1>) +\pszigzag*[<parameters>]{<arrows>}(<x0,y0>)(<x1,y1>) +\end{verbatim} +\csIndex{pscoil}\csIndex{psCoil}\csIndex{pszigzag} + +\begin{itemize} +\item If only one coordinate pair is specified, the first point is automatically + set to the origin of ordinates $(0,0)$. +\item Arrows may be set with the own parameter or with the optional parameter + with \verb+arrows=<arrows>+. +\item For \verb+psCoil+ the coils are principally drawn without ``arms''{}. +\end{itemize} + + +The asterisk version are in principle pointless, since they do not allow a +meaningful representation. Some could be seen with the description of +parameters, but will not be described further in the following. + + +% --------------------------------------------------------------------------------------- +\subsection{\CMD{pscoil}}\label{subsec:pstcoil:pscoil} +% --------------------------------------------------------------------------------------- +Since \verb+pscoil+ is nothing but a polygon line, also all parameters are +available which aplly for lines. + +\medskip\noindent +\begin{LTXexample}[width=4cm] +\begin{pspicture}(4,4) +\pscoil[coilarm=.5cm,linewidth=1.5pt,coilwidth=.5cm]{|->}(4,3) +\pscoil[linecolor=red,coilheight=0.25](3,4)(3,1) +\pscoil[doubleline=true,linecolor=cyan,coilheight=0.75](0,4)(3,0) +\end{pspicture} +\end{LTXexample} + +% --------------------------------------------------------------------------------------- +\subsection{\CMD{psCoil}}\label{subsec:pstcoil:psCoil} +% --------------------------------------------------------------------------------------- +\verb+\psCoil+ draws starting at the current point to the angle $\alpha$ an +invisible line and then from $\alpha$ to $\beta$ a helix. +\verb+\rput+\cIndex{rput} has to be used if they are to be placed at a +particular position. The advantage is that with \verb+psCoil+ the number of +helixes to draw can be specified exactly. + +\medskip\noindent +\begin{LTXexample}[width=4cm] +\begin{pspicture}(4,4) +\psCoil[linewidth=1.5pt,coilwidth=.5cm]{1800}{3600} +\rput{-90}(3,4){\psCoil[linecolor=red,coilheight=0.25]{0}{3600}} +\rput{-45}(0,3.5){\psCoil[doubleline=true,linecolor=cyan,coilheight=0.75]{100}{2700}} +\end{pspicture} +\end{LTXexample} + + + +% --------------------------------------------------------------------------------------- +\subsection{\CMD{pszigzag}}\label{subsec:pstcoil:zigzag} +% --------------------------------------------------------------------------------------- +\cIndex{pszigzag}This macro represents the two dimensional variant and is +correspondly easy to use. Especially the \verb+linearc+ option can bring good +results for \verb+\pszigzag+. The specification of the ``arm length''{} is not +absolute here, since the line is principally ended in the geometrical middle and +then led to the specified arm length. + +\medskip\noindent +\begin{LTXexample}[width=4cm] +\begin{pspicture}(4,4) +\pszigzag[coilarm=.5cm,linewidth=1.5pt,coilwidth=.5cm]{|->}(4,3) +\pszigzag[linecolor=red,coilheight=0.2](3,4)(3,1) +\pszigzag[doubleline=true,linecolor=cyan,coilheight=0.75](0,4)(3,0) +\end{pspicture} +\end{LTXexample} + + +% --------------------------------------------------------------------------------------- +\section{Node connections}\label{sec:pstcoil:knotenverbindungen} +% --------------------------------------------------------------------------------------- +Prerequisite for this macro is that \verb+pst-node+\tIndex{pst-node} +is loaded, then the following node connections are +available: +% +\begin{verbatim} +\nccoil[<parameters>]{<nodeA>}{<nodeB>} +\nccoil[<parameters>]{<arrows>}{<nodeA>}{<nodeB>} +\nccoil*[<parameters>]{<nodeA>}{<nodeB>} +\nccoil*[<parameters>]{<arrows>}{<nodeA>}{<nodeB>} +\nczigzag[<parameters>]{<nodeA>}{<nodeB>} +\nczigzag[<parameters>]{<arrows>}{<nodeA>}{<nodeB>} +\nczigzag*[<parameters>]{<nodeA>}{<nodeB>} +\nczigzag*[<parameters>]{<arrows>}{<nodeA>}{<nodeB>} +\pccoil[<parameters>](<nodeA>)(<nodeB>) +\pccoil[<parameters>]{<arrows>}(<nodeA>)(<nodeB>) +\pccoil*[<parameters>](<nodeA>)(<nodeB>) +\pccoil*[<parameters>]{<arrows>}(<nodeA>)(<nodeB>) +\pczigzag[<parameters>](<nodeA>)(<nodeB>) +\pczigzag[<parameters>]{<arrows>}(<nodeA>)(<nodeB>) +\pczigzag*[<parameters>](<nodeA>)(<nodeB>) +\pczigzag*[<parameters>]{<arrows>}(<nodeA>)(<nodeB>) +\end{verbatim} + +These connections behave completely analogue to those dealt with the +package \verb+pst-node+ so that +no further explanations are needed here. + +\medskip\noindent +\begin{LTXexample}[width=4cm] +\begin{pspicture}(4,3) +\cnode(0.5,0.5){0.5}{A} +\cnode[fillstyle=solid,fillcolor=lightgray](3.5,2.5){0.5}{B} +\nccoil[coilwidth=0.4,coilaspect=35,coilheight=0.5]{<->}{A}{B} +\end{pspicture} +\end{LTXexample} + + +\nocite{*} +\bgroup +\raggedright +\bibliographystyle{plain} +\bibliography{\jobname} +\egroup + +\printindex + + +\end{document} diff --git a/Master/texmf-dist/dvips/pst-coil/pst-coil.pro b/Master/texmf-dist/dvips/pst-coil/pst-coil.pro new file mode 100644 index 00000000000..2e58074b963 --- /dev/null +++ b/Master/texmf-dist/dvips/pst-coil/pst-coil.pro @@ -0,0 +1,59 @@ +%! +% PostScript prologue for pst-coil.tex. +% Version 1.00, 2006/11/05 +% For distribution, see pstricks.tex. +% +/tx@CoilDict 40 dict def tx@CoilDict begin +/CoilLoop { + /t ED + t sin AspectSin mul t 180 div AspectCos mul add t cos lineto } def +/Coil { + /Inc ED + dup sin /AspectSin ED + cos /AspectCos ED + /ArmB ED + /ArmA ED + /h ED /w ED /y1 ED /x1 ED /y0 ED /x0 ED + x0 y0 translate y1 y0 sub x1 x0 sub 2 copy Pyth + /TotalLength ED + Atan rotate + /BeginAngle ArmA AspectCos Div w h mul Div 360 mul def + /EndAngle TotalLength ArmB sub AspectCos Div + w h mul Div 360 mul def + 1 0 0 0 ArrowA ArmA 0 lineto + /mtrx CM def + w h mul 2 Div w 2 Div scale BeginAngle Inc + EndAngle { CoilLoop } for + EndAngle CoilLoop mtrx setmatrix TotalLength ArmB sub 0 lineto CP +% DG/SR modification begin - Jun. 2, 1998 - Patch 1 (from Michael Vulis) +% TotalLength 0 ArrowB lineto } def + TotalLength 0 ArrowB lineto + pop pop pop pop } def +% DG/SR modification end +/AltCoil { + /Inc ED + dup sin /AspectSin ED + cos /AspectCos ED /h ED /w ED /EndAngle ED /BeginAngle ED + /mtrx CM def + w h mul 2 Div w 2 Div scale BeginAngle sin AspectSin mul + BeginAngle 180 div AspectCos mul add BeginAngle cos + /lineto load stopped { moveto } if + BeginAngle Inc EndAngle { CoilLoop } for + EndAngle CoilLoop mtrx setmatrix } def +/ZigZag { + /ArmB ED /ArmA ED + 2 div /w ED + w mul /h ED /y1 ED /x1 ED /y0 ED /x0 ED + x1 y1 translate y0 y1 sub x0 x1 sub 2 copy Pyth + /TotalLength ED + Atan rotate TotalLength ArmA sub ArmB sub dup h div cvi /n ED n h mul + sub 2 div dup ArmA add + /ArmA ED ArmB add + /ArmB ED + /x ArmB h 2 div add def + mark 0 0 ArmB 0 + n { x w /w w neg def /x x h add def } repeat + TotalLength ArmA sub 0 TotalLength 0 } def +% +end +% END pst-coil.pro diff --git a/Master/texmf-dist/source/generic/pst-coil/Makefile b/Master/texmf-dist/source/generic/pst-coil/Makefile new file mode 100644 index 00000000000..a8e81e714a5 --- /dev/null +++ b/Master/texmf-dist/source/generic/pst-coil/Makefile @@ -0,0 +1,49 @@ + +# `Makefile' for `pst-coil.pdf', hv, 2006/08/11 + +.SUFFIXES : .tex .ltx .dvi .ps .pdf .eps + +PACKAGE = pst-coil + +MAIN = pst-coil-doc + +LATEX = latex + +ARCHNAME = $(MAIN)-$(shell date +%y%m%d) + +ARCHFILES = $(PACKAGE).sty $(PACKAGE).tex $(PACKAGE).pro $(MAIN).tex README Changes Makefile + +all : doc +# clean +doc: $(MAIN).pdf + +$(MAIN).pdf : $(MAIN).ps + GS_OPTIONS=-dAutoRotatePages=/None ps2pdf $< + +$(MAIN).ps : $(MAIN).dvi + dvips $< + +$(MAIN).dvi : $(MAIN).tex + $(LATEX) $< + $(LATEX) $< + if ! test -f $(basename $<).glo ; then touch $(basename $<).glo; fi + if ! test -f $(basename $<).idx ; then touch $(basename $<).idx; fi + makeindex -s gglo.ist -t $(basename $<).glg -o $(basename $<).gls \ + $(basename $<).glo + makeindex -t $(basename $<).ilg -o $(basename $<).ind \ + $(basename $<).idx + bibtex $(basename $<) + $(LATEX) $< + $(LATEX) $< + +clean : + $(RM) $(addprefix $(MAIN), .log .aux .glg .glo .gls .ilg .idx .ind .tmp .toc .out ) + $(RM) $(addprefix $(MAIN), .dvi .ps) + +veryclean : clean + $(RM) $(addprefix $(MAIN), .pdf .bbl .blg) + +arch : + zip $(ARCHNAME).zip $(ARCHFILES) + +# EOF diff --git a/Master/texmf-dist/tex/generic/pst-coil/pst-coil.tex b/Master/texmf-dist/tex/generic/pst-coil/pst-coil.tex new file mode 100644 index 00000000000..51af29883ef --- /dev/null +++ b/Master/texmf-dist/tex/generic/pst-coil/pst-coil.tex @@ -0,0 +1,143 @@ +%% BEGIN pst-coil.tex +%% +%% Coils and zigzags with PSTricks +%% See the PSTricks User's Guide for documentation. +%% For use with the PostScript header file `pst-coil.pro'. +%% +%% +%% COPYRIGHT 1993, 1994, 1999 by Timothy Van Zandt, tvz@nwu.edu. +%% 2006 Herbert Voss, hvoss@tug.org +%% +%% 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. +%% +\message{ v\fileversion, \filedate} +\csname PSTcoilsLoaded\endcsname +\let\PSTcoilsLoaded\endinput +\ifx\PSTricksLoaded\endinput\else +\def\next{\input pstricks.tex}\expandafter\next +\fi +\ifx\PSTXKeyLoaded\endinput\else\input pst-xkey \fi +% +\def\fileversion{1.00} +\def\filedate{2006/11/05} +% +\edef\TheAtCode{\the\catcode`\@} +\catcode`\@=11 +% +\pst@addfams{pst-coil} +\pstheader{pst-coil.pro} +\edef\pst@theheaders{\pst@theheaders,pst-coil.pro} +\def\pst@coildict{tx@CoilDict begin } +% +\define@key[psset]{pst-coil}{coilwidth}{\pst@getlength{#1}\psk@coilwidth} +\define@key[psset]{pst-coil}{coilheight}{\pst@checknum{#1}\pscoilheight} +\define@key[psset]{pst-coil}{coilarmA}{\pst@getlength{#1}\psk@coilarmA} +\define@key[psset]{pst-coil}{coilarmB}{\pst@getlength{#1}\psk@coilarmB} +\define@key[psset]{pst-coil}{coilarm}{% + \pst@getlength{#1}\psk@coilarmA% + \let\psk@coilarmB\psk@coilarmA} +\define@key[psset]{pst-coil}{coilaspect}{\pst@getangle{#1}\psk@coilaspect} +\define@key[psset]{pst-coil}{coilinc}{\pst@getangle{#1}\psk@coilinc} +% +\psset[pst-coil]{coilaspect=45,coilarm=.5cm,coilheight=1,coilwidth=1cm,coilinc=10} +% +\def\pscoil{\def\pst@par{}\pst@object{pscoil}} +\def\pscoil@i{\pst@getarrows\pscoil@ii} +\def\pscoil@ii(#1){\@ifnextchar({\pscoil@iii{1}(#1)}{\pscoil@iii{\z@}(0,0)(#1)}} +\def\pscoil@iii#1(#2)(#3){% + \begin@OpenObj + \pst@getcoor{#2}\pst@tempa + \pst@getcoor{#3}\pst@tempb + \pst@optcp{#1}\pst@tempa + \addto@pscode{% + \pst@tempa \pst@tempb + \psk@coilwidth \pscoilheight + \psk@coilarmA \psk@coilarmB + \psk@coilaspect \psk@coilinc + \pst@coildict \tx@Coil end }% + \showpointsfalse + \end@OpenObj} +\def\tx@CoilLoop{CoilLoop } +\def\tx@Coil{Coil } +\def\psCoil{\def\pst@par{}\pst@object{psCoil}} +\def\psCoil@i#1#2{% + \begin@AltOpenObj + \showpointsfalse + \pst@getangle{#1}\pst@tempa + \pst@getangle{#2}\pst@tempb + \addto@pscode{% + \pst@tempa + \pst@tempb + \psk@coilwidth + \pscoilheight + \psk@coilaspect + \psk@coilinc + \pst@coildict \tx@AltCoil end + \@nameuse{psls@\pslinestyle} }% + \end@OpenObj} +\def\tx@AltCoil{AltCoil } +% +\def\pszigzag{\def\pst@par{}\pst@object{pszigzag}} +\def\pszigzag@i{\pst@getarrows\pszigzag@ii} +\def\pszigzag@ii(#1){\@ifnextchar({\pszigzag@iii{1}(#1)}{\pszigzag@iii{\z@}(0,0)(#1)}} +\def\pszigzag@iii#1(#2)(#3){% + \begin@OpenObj + \pst@getcoor{#2}\pst@tempa + \pst@getcoor{#3}\pst@tempb + \pst@optcp{#1}\pst@tempa + \addto@pscode{% + \pst@tempa + \pst@tempb + \pscoilheight + \psk@coilwidth + \psk@coilarmA + \psk@coilarmB + \pst@coildict \tx@ZigZag end + \psline@iii + \tx@Line }% + \end@OpenObj} +% +\def\tx@ZigZag{ZigZag } +% +\def\nccoil{\pst@object{nccoil}} +\def\nccoil@i{\check@arrow{\nccoil@ii}} +\def\nccoil@ii#1#2{\nc@object{Open}{#1}{#2}{.5}{% + \tx@NCCoor + tx@Dict begin +% DG/SR modification begin - Mar. 19, 1998 - Patch 2 + 4 2 roll +% DG/SR modification end + \psk@coilwidth \pscoilheight + \psk@coilarmA \psk@coilarmB + \psk@coilaspect \psk@coilinc + \pst@coildict \tx@Coil end + end }} +% +\def\pccoil{\def\pst@par{}\pst@object{pccoil}} +\def\pccoil@i{\pc@object\nccoil@ii} +\def\nczigzag{\pst@object{nczigzag}} +\def\nczigzag@i{\check@arrow{\nczigzag@ii}} +\def\nczigzag@ii#1#2{\nc@object{Open}{#1}{#2}{.5}{% + \tx@NCCoor + tx@Dict begin +% DG/SR modification begin - Mar. 19, 1998 - Patch 2 + 4 2 roll +% DG/SR modification end + \pscoilheight + \psk@coilwidth + \psk@coilarmA + \psk@coilarmB + \pst@coildict \tx@ZigZag end + \psline@iii + \tx@Line + end }} +% +\def\pczigzag{\def\pst@par{}\pst@object{pczigzag}} +\def\pczigzag@i{\pc@object\nczigzag@ii} +% +\catcode`\@=\TheAtCode\relax +\endinput +%% +%% END pst-coil.tex diff --git a/Master/texmf-dist/tex/latex/pst-coil/pst-coil.sty b/Master/texmf-dist/tex/latex/pst-coil/pst-coil.sty new file mode 100644 index 00000000000..2e3a98d15ef --- /dev/null +++ b/Master/texmf-dist/tex/latex/pst-coil/pst-coil.sty @@ -0,0 +1,7 @@ +\RequirePackage{pstricks} +\ProvidesPackage{pst-coil}[2006/08/11 package wrapper for pst-coil.tex (hv)] +\input{pst-coil.tex} +\ProvidesFile{pst-coil.tex} + [\filedate\space v\fileversion\space `pst-coil' (tvz)] +\IfFileExists{pst-coil.pro}{\@addtofilelist{pst-coil.pro}}{}% +\endinput diff --git a/Master/texmf-dist/tpm/pst-coil.tpm b/Master/texmf-dist/tpm/pst-coil.tpm new file mode 100644 index 00000000000..5643005c77d --- /dev/null +++ b/Master/texmf-dist/tpm/pst-coil.tpm @@ -0,0 +1,31 @@ +<!DOCTYPE rdf:RDF SYSTEM "../../support/tpm.dtd"> +<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:TPM="http://texlive.dante.de/"> + <rdf:Description about="http://texlive.dante.de/texlive/Package/pst-coil.zip"> + <TPM:Name>pst-coil</TPM:Name> + <TPM:Type>Package</TPM:Type> + <TPM:Date>2006/11/05 18:15:06</TPM:Date> + <TPM:Version></TPM:Version> + <TPM:Creator>karl</TPM:Creator> + <TPM:Title>The pst-coil package.</TPM:Title> + <TPM:Description></TPM:Description> + <TPM:Author></TPM:Author> + <TPM:Size>202144</TPM:Size> + <TPM:Build/> + <TPM:RunFiles size="7371"> +texmf-dist/dvips/pst-coil/pst-coil.pro +texmf-dist/tex/generic/pst-coil/pst-coil.tex +texmf-dist/tex/latex/pst-coil/pst-coil.sty +texmf-dist/tpm/pst-coil.tpm + </TPM:RunFiles> + <TPM:DocFiles size="194904"> +texmf-dist/doc/generic/pst-coil/Changes +texmf-dist/doc/generic/pst-coil/README +texmf-dist/doc/generic/pst-coil/pst-coil-doc.bib +texmf-dist/doc/generic/pst-coil/pst-coil-doc.pdf +texmf-dist/doc/generic/pst-coil/pst-coil-doc.tex + </TPM:DocFiles> + <TPM:SourceFiles size="1083">texmf-dist/source/generic/pst-coil/Makefile</TPM:SourceFiles> + <TPM:Provides>Package/pst-coil</TPM:Provides> + </rdf:Description> +</rdf:RDF> + diff --git a/Master/texmf-dist/tpm/pst-grad.tpm b/Master/texmf-dist/tpm/pst-grad.tpm new file mode 100644 index 00000000000..9f5387bd816 --- /dev/null +++ b/Master/texmf-dist/tpm/pst-grad.tpm @@ -0,0 +1,31 @@ +<!DOCTYPE rdf:RDF SYSTEM "../../support/tpm.dtd"> +<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:TPM="http://texlive.dante.de/"> + <rdf:Description about="http://texlive.dante.de/texlive/Package/pst-grad.zip"> + <TPM:Name>pst-grad</TPM:Name> + <TPM:Type>Package</TPM:Type> + <TPM:Date>2006/11/18 18:56:17</TPM:Date> + <TPM:Version></TPM:Version> + <TPM:Creator>karl</TPM:Creator> + <TPM:Title>The pst-grad package.</TPM:Title> + <TPM:Description></TPM:Description> + <TPM:Author></TPM:Author> + <TPM:Size>281936</TPM:Size> + <TPM:Build/> + <TPM:RunFiles size="11480"> +texmf-dist/dvips/pst-grad/pst-grad.pro +texmf-dist/tex/generic/pst-grad/pst-grad.tex +texmf-dist/tex/latex/pst-grad/pst-grad.sty +texmf-dist/tpm/pst-grad.tpm + </TPM:RunFiles> + <TPM:DocFiles size="270588"> +texmf-dist/doc/generic/pst-grad/Changes +texmf-dist/doc/generic/pst-grad/README +texmf-dist/doc/generic/pst-grad/pst-grad-doc.bib +texmf-dist/doc/generic/pst-grad/pst-grad-doc.pdf +texmf-dist/doc/generic/pst-grad/pst-grad-doc.tex + </TPM:DocFiles> + <TPM:SourceFiles size="1083">texmf-dist/source/generic/pst-grad/Makefile</TPM:SourceFiles> + <TPM:Provides>Package/pst-grad</TPM:Provides> + </rdf:Description> +</rdf:RDF> + |