summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pst-sigsys
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-04-03 16:23:12 +0000
committerKarl Berry <karl@freefriends.org>2009-04-03 16:23:12 +0000
commita14cfc3b6e487853838ffee086d9c3cff2d95286 (patch)
tree8939edce0f0c12653891d811929996991b4d51d2 /Master/texmf-dist/doc/generic/pst-sigsys
parentccc263246e17338f9e7f84ae53f7b4152623c697 (diff)
pst-sigsys update (1apr09)
git-svn-id: svn://tug.org/texlive/trunk@12615 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/pst-sigsys')
-rw-r--r--Master/texmf-dist/doc/generic/pst-sigsys/Changes1
-rw-r--r--Master/texmf-dist/doc/generic/pst-sigsys/README2
-rw-r--r--Master/texmf-dist/doc/generic/pst-sigsys/pst-sigsys-doc.pdfbin301563 -> 318173 bytes
-rw-r--r--Master/texmf-dist/doc/generic/pst-sigsys/pst-sigsys-doc.tex147
-rw-r--r--Master/texmf-dist/doc/generic/pst-sigsys/pstricks.bib38
5 files changed, 143 insertions, 45 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
index 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
Binary files differ
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},
-}