diff options
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-sigsys/Changes | 1 | ||||
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-sigsys/README | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-sigsys/pst-sigsys-doc.pdf | bin | 301563 -> 318173 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-sigsys/pst-sigsys-doc.tex | 147 | ||||
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-sigsys/pstricks.bib | 38 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/pst-sigsys/pst-sigsys.sty | 49 |
6 files changed, 187 insertions, 50 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-sigsys/Changes b/Master/texmf-dist/doc/generic/pst-sigsys/Changes new file mode 100644 index 00000000000..10f672ab9f7 --- /dev/null +++ b/Master/texmf-dist/doc/generic/pst-sigsys/Changes @@ -0,0 +1 @@ +v 1.1 2009-04-01 - add pshtick, psvtick, pshTick, and psvTick
\ No newline at end of file diff --git a/Master/texmf-dist/doc/generic/pst-sigsys/README b/Master/texmf-dist/doc/generic/pst-sigsys/README index 6c811b5f34c..237ea23b9bb 100644 --- a/Master/texmf-dist/doc/generic/pst-sigsys/README +++ b/Master/texmf-dist/doc/generic/pst-sigsys/README @@ -1,4 +1,4 @@ -pst-sigsys package 2009/01/15 v1.0 +pst-sigsys package 2009/04/01 v1.1 ---------------------------------- The pst-sigsys is a collection of useful macros for disciplines related to signal processing. It defines macros for plotting a sequence of numbers, drawing the pole-zero diagram of a system, shading the region of convergence, creating an adder or a multiplier node, placing a framed node at a given coordinate, creating an up-sampler or a down-sampler node, and connecting a list of nodes using any node-connecting macro. diff --git a/Master/texmf-dist/doc/generic/pst-sigsys/pst-sigsys-doc.pdf b/Master/texmf-dist/doc/generic/pst-sigsys/pst-sigsys-doc.pdf Binary files differindex 57954c98187..ec9f9f3278b 100644 --- a/Master/texmf-dist/doc/generic/pst-sigsys/pst-sigsys-doc.pdf +++ b/Master/texmf-dist/doc/generic/pst-sigsys/pst-sigsys-doc.pdf diff --git a/Master/texmf-dist/doc/generic/pst-sigsys/pst-sigsys-doc.tex b/Master/texmf-dist/doc/generic/pst-sigsys/pst-sigsys-doc.tex index 1bc28462771..98d547a8a13 100644 --- a/Master/texmf-dist/doc/generic/pst-sigsys/pst-sigsys-doc.tex +++ b/Master/texmf-dist/doc/generic/pst-sigsys/pst-sigsys-doc.tex @@ -1,7 +1,7 @@ %%==================================== %% This is pst-sigsys documentation. %% Farshid Delgosha -%% 01/10/2009 +%% 04/01/2009 %%==================================== \documentclass[10pt]{article} @@ -141,9 +141,9 @@ pdftitle={The pst-sigsys Package},pdfauthor={Farshid Delgosha}} -\title{The \package Package \\ {\large (version 1.0)}} +\title{The \package Package \\ {\large (version 1.1)}} \author{Farshid Delgosha \\ \texttt{fdelgosha@gmail.com}} -\date{15 January, 2009} +\date{April 1, 2009} @@ -188,6 +188,13 @@ To disable them, load the package with the \texttt{notelegant} option. +\section{What's New?} + +In version 1.1, four new macros \CMD{pshtick}, \CMD{psvtick}, \CMD{pshTick}, and \CMD{psvTick} are added. The codes of macros \CMD{psusampler} and \CMD{psdsampler} are updated. However, there is no change in their user interface. + + + + \section{Styles Defined by \package} \label{sec:styles} @@ -335,6 +342,129 @@ ylpos & {\normalfont\ttfamily l | r} & \texttt{r} & Position of the $y$-l +\subsection{pshtick} + +\begin{syntax} +\CMD{pshtick}\keys(\rmit{coor})\{\rmit{ticklength}\} +\end{syntax} + +As depicted in Figure~\ref{fig:pshtick}, the \CMD{pshtick} macro draws a horizontal line centered at \rmit{coor} with length $2\rmit{ticklength}$. This could be used for adding a tick line to coordinate axes. +%%======================================================================= +\begin{figure}[ht!] +\centering +\begin{pspicture}[showgrid=false](-2,-1)(2,.5) +% +\pnode(0,0){org} +\rput(0,-1){\rnode{coor}{\textcolor{red}{(\rmit{coor})}}} +\ncline[linecolor=red,nodesepA=.15]{->}{coor}{org} +% +\pshtick(0,0){2} +% +\psbrace[style=BraceUp,linecolor=purple,fillstyle=solid,fillcolor=purple]% +(2,0)(0,0){{\ttfamily\footnotesize\color{purple}ticklength}} +% +\psbrace[style=BraceUp,linecolor=purple,fillstyle=solid,fillcolor=purple]% +(0,0)(-2,0){{\ttfamily\footnotesize\color{purple}ticklength}} +% +\end{pspicture} +\caption{\CMD{pshtick} macro} +\label{fig:pshtick} +\end{figure} +%%======================================================================= + +\begin{LTXexample} +\begin{pspicture}[showgrid=true](-3,0)(3,2) + \psaxeslabels(0,0)(-3,0)(3,2){$x$}{$y$} + \pshtick[linecolor=red](0,.5){.1} + \pshtick[linecolor=blue](0,1.25){.25} +\end{pspicture} +\end{LTXexample} + + + + +\subsection{psvtick} + +\begin{syntax} +\CMD{psvtick}\keys(\rmit{coor})\{\rmit{ticklength}\} +\end{syntax} + +Similar to the previous macro, the \CMD{psvtick} macro draws a vertical line centered at \rmit{coor} with length $2\rmit{ticklength}$ (Figure~\ref{fig:psvtick}). This could be used for adding a tick line to coordinate axes. +%%======================================================================= +\begin{figure}[ht!] +\centering +\begin{pspicture}[showgrid=false](-1.5,-2)(.5,2) +% +\pnode(0,0){org} +\rput(-1.5,0){\rnode{coor}{\textcolor{red}{(\rmit{coor})}}} +\ncline[linecolor=red,nodesepA=.15]{->}{coor}{org} +% +\psvtick(0,0){2} +% +\psbrace[style=BraceRight,linecolor=purple,fillstyle=solid,fillcolor=purple]% +(0,0)(0,2){{\ttfamily\footnotesize\color{purple}ticklength}} +% +\psbrace[style=BraceRight,linecolor=purple,fillstyle=solid,fillcolor=purple]% +(0,-2)(0,0){{\ttfamily\footnotesize\color{purple}ticklength}} +% +\end{pspicture} +\caption{\CMD{psvtick} macro} +\label{fig:psvtick} +\end{figure} +%%======================================================================= + +\begin{LTXexample} +\begin{pspicture}[showgrid=true](-3,-1)(3,1) + \psaxeslabels(0,0)(-3,-1)(3,1){$x$}{$y$} + \psvtick[linecolor=red](1,0){.1} + \psvtick[linecolor=blue](2,0){.25} +\end{pspicture} +\end{LTXexample} + + + + +\subsection{pshTick} + +\begin{syntax} +\CMD{pshTick}\keys(\rmit{coor}) +\end{syntax} + +Similar to \CMD{pshtick}, the \CMD{pshTick} macro draws a horizontal line centered at \rmit{coor}. The only difference is that the tick length is specified by the \texttt{ticklength} key. This is useful when multiple ticks are drawn all with the same length. + +\begin{LTXexample} +\begin{pspicture}[showgrid=true](-2,0)(2,2) + \psaxeslabels(0,0)(-2,0)(2,2){$x$}{$y$} + \psset{ticklength=.1,linecolor=red} + \pshTick(0,.5) + \pshTick(0,1) + \pshTick(0,1.5) +\end{pspicture} +\end{LTXexample} + + + + +\subsection{psvTick} + +\begin{syntax} +\CMD{psvTick}\keys(\rmit{coor}) +\end{syntax} + +Similar to \CMD{psvtick}, the \CMD{psvTick} macro draws a vertical line centered at \rmit{coor}. The only difference is that the tick length is specified by the \texttt{ticklength} key. This is useful when multiple ticks are drawn all with the same length. + +\begin{LTXexample} +\begin{pspicture}[showgrid=true](-2,-1)(2,1) + \psaxeslabels(0,0)(-2,-1)(2,1){$x$}{$y$} + \psset{ticklength=.1,linecolor=red} + \psvTick(.5,0) + \psvTick(1,0) + \psvTick(1.5,0) +\end{pspicture} +\end{LTXexample} + + + \subsection{psstem} @@ -925,7 +1055,7 @@ This macro is very similar to the \CMD{psblock} macro except that the size of th \CMD{psusampler}\keys(\rmit{coor})\{\rmit{node}\}\{\rmit{stuff}\} \end{syntax} -This macro is similar to the \CMD{psfblock} except that \rmit{stuff} is placed next to an up-arrow in math mode representing an up-sampler. +This macro is similar to the \CMD{psfblock} except that \rmit{stuff} is placed next to an up-arrow in math mode representing an up-sampler. \emph{Notice that \rmit{stuff} must be in text mode, not in the math mode, i.e., do not put \$ around \rmit{stuff}.} \begin{LTXexample} \begin{pspicture}[showgrid=true](6,2) @@ -947,7 +1077,7 @@ This macro is similar to the \CMD{psfblock} except that \rmit{stuff} is placed n \CMD{psdsampler}\keys(\rmit{coor})\{\rmit{node}\}\{\rmit{stuff}\} \end{syntax} -This macro is similar to the \CMD{psfblock} except that \rmit{stuff} is placed next to a down-arrow in math mode representing a down-sampler. +This macro is similar to the \CMD{psfblock} except that \rmit{stuff} is placed next to a down-arrow in math mode representing a down-sampler. \emph{Notice that \rmit{stuff} must be in text mode, not in the math mode, i.e., do not put \$ around \rmit{stuff}.} \begin{LTXexample} \begin{pspicture}[showgrid=true](6,2) @@ -1085,6 +1215,12 @@ Draw the sampled sequence $x[n] = x_c(\pi n/4)$. %--- Labeling the origin --- \uput[-45](0,0){$\color{blue}\scriptstyle 0$} + + %--- Horizontal ticks ---- + \pshtick[linecolor=gray](0,1){.1} + \pshtick[linecolor=gray](0,-1){.1} + \uput[180](0,1){$\scriptstyle 1$} + \uput[180](0,-1){$\scriptstyle -1$} \end{pspicture} \end{LTXexample} @@ -1389,7 +1525,6 @@ H(z) = \frac{1 - z^{-1} + 2z^{-2} + 3z^{-3}}{1 + z^{-1} - 0.5 z^{-2} + 0.75 z^{- \begin{LTXexample} \begin{pspicture}[showgrid=true](-6,-4)(6,.5) - %--- Some settings --- \psset{framesize=1.2 .65} \rput(-6,0){\rnode{x}{$x[n]$}} \rput(6,0){\rnode{y}{$y[n]$}} diff --git a/Master/texmf-dist/doc/generic/pst-sigsys/pstricks.bib b/Master/texmf-dist/doc/generic/pst-sigsys/pstricks.bib deleted file mode 100644 index b5e6ff5f2bc..00000000000 --- a/Master/texmf-dist/doc/generic/pst-sigsys/pstricks.bib +++ /dev/null @@ -1,38 +0,0 @@ -@MANUAL{pstricks, - TITLE = {{PSTricks} - \texttt{PSTricks} macros for generic {\TeX}}, - author = {{Timothy Van} Zandt}, - address = {\url{http://www.tug.org/application/PSTricks}}, - year = {1993}, -} - - -@MISC{pstricks-add, - author = {Dominique Rodriguez and Herbert Vo\ss}, - title = {pstricks-add package}, - howpublished = {\url{CTAN:/graphics/pstricks/contrib/pstricks-add}}, - year = {2008}, -} - - -@MISC{pst-node, - author = {{Timothy Van} Zandt}, - title = {pst-node package}, - howpublished = {\url{CTAN:/graphics/pstricks/base/pst-node}}, - year = {1999}, -} - - -@MISC{pst-plot, - author = {{Timothy Van} Zandt}, - title = {pst-plot package}, - howpublished = {\url{CTAN:graphics/pstricks/base/pst-plot}}, - year = {1999}, -} - - -@MISC{pst-xkey, - author = {Hendri Adriaens}, - title = {xkeyval package}, - howpublished = {\url{CTAN:/macros/latex/contrib/xkeyval}}, - year = {2004}, -} diff --git a/Master/texmf-dist/tex/latex/pst-sigsys/pst-sigsys.sty b/Master/texmf-dist/tex/latex/pst-sigsys/pst-sigsys.sty index cb9a3c877cd..732b8bedd27 100644 --- a/Master/texmf-dist/tex/latex/pst-sigsys/pst-sigsys.sty +++ b/Master/texmf-dist/tex/latex/pst-sigsys/pst-sigsys.sty @@ -6,11 +6,11 @@ %% E-mail: fdelgosha@gmail.com %%========================================= -\ProvidesPackage{pst-sigsys}[2009/01/15 by Farshid Delgosha] +\ProvidesPackage{pst-sigsys}[2009/04/01 by Farshid Delgosha] \csname PSTsigsysLoaded\endcsname -\def\fileversion{1.00} -\def\filedate{2008/01/15} +\def\fileversion{1.1} +\def\filedate{2009/04/01} \message{`PST-sigsys' v\fileversion, \filedate\space (Farshid Delgosha)} \ifx\PSTricksLoaded\endinput\else\input pstricks \fi @@ -39,6 +39,7 @@ %--- internal macros ------------------------------------- +\newdimen\ss@ticklength \newdimen\ss@zerowidth \newdimen\ss@zeroradius \newdimen\ss@zeroradiusinc @@ -118,6 +119,7 @@ \def\ss@ylpos{l} \fi } +\define@key[psset]{pst-sigsys}{ticklength}{\pssetlength{\ss@ticklength}{#1}} \define@key[psset]{pst-sigsys}{stemhead}[]{\def\ss@stemhead{#1}} \define@boolkey[psset]{pst-sigsys}[ss@]{stemtag}[true]{} \define@key[psset]{pst-sigsys}{stemtagformat}[]{\def\ss@stemtagformat{#1}} @@ -146,6 +148,7 @@ %--- default key values ---------------------------------- \psset[pst-sigsys]{scale=1}% global \psset[pst-sigsys]{xlpos=b,ylpos=r}% psaxeslabels +\psset[pst-sigsys]{ticklength=.075}% pshTick and psvTick \psset[pst-sigsys]{stemhead=*,stemtag=false,stemtagformat=\scriptstyle}% psstem \psset[pst-sigsys]{zerowidth=.7pt,zeroradius=.08,zeroradiusinc=.07,order=1}% pszero \psset[pst-sigsys]{polewidth=.7pt,polelength=.12}% pspole @@ -187,6 +190,42 @@ %--- end psaxeslabels ------------------------------------ +%--- pshtick --------------------------------------------- +\def\pshtick{\def\pst@par{}\pst@object{pshtick}} +\def\pshtick@i(#1)#2{{% +\use@par% +\rput(#1){\psline(-#2,0)(#2,0)}% +}\ignorespaces} +%--- end pshtick ----------------------------------------- + + +%--- psvtick --------------------------------------------- +\def\psvtick{\def\pst@par{}\pst@object{psvtick}} +\def\psvtick@i(#1)#2{{% +\use@par% +\rput(#1){\psline(0,-#2)(0,#2)}% +}\ignorespaces} +%--- end psvtick ----------------------------------------- + + +%--- pshTick --------------------------------------------- +\def\pshTick{\def\pst@par{}\pst@object{pshTick}} +\def\pshTick@i(#1){{% +\use@par% +\rput(#1){\psline(-\ss@ticklength,0)(\ss@ticklength,0)}% +}\ignorespaces} +%--- end pshTick ----------------------------------------- + + +%--- psvTick --------------------------------------------- +\def\psvTick{\def\pst@par{}\pst@object{psvTick}} +\def\psvTick@i(#1){{% +\use@par% +\rput(#1){\psline(0,-\ss@ticklength)(0,\ss@ticklength)}% +}\ignorespaces} +%--- end psvTick ----------------------------------------- + + %--- psstem ---------------------------------------------- \def\psstem{\def\pst@par{}\pst@object{psstem}} \def\psstem@i{\@ifnextchar({\psstem@ii}{\psstem@ii(0,1)}} @@ -359,7 +398,7 @@ \def\psusampler{\def\pst@par{}\pst@object{psusampler}} \def\psusampler@i(#1)#2#3{{% \use@par% -\psfblock(#1){#2}{\ensuremath{\mathord{\uparrow} #3}}% +\psfblock(#1){#2}{$\mathord{\uparrow} #3$}% }\ignorespaces} %--- end psusampler -------------------------------------- @@ -368,7 +407,7 @@ \def\psdsampler{\def\pst@par{}\pst@object{psdsampler}} \def\psdsampler@i(#1)#2#3{{% \use@par% -\psfblock(#1){#2}{\ensuremath{\mathord{\downarrow} #3}}% +\psfblock(#1){#2}{$\mathord{\downarrow} #3$}% }\ignorespaces} %--- end psdsampler -------------------------------------- |