diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/pst-sigsys/pst-sigsys-doc.tex')
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-sigsys/pst-sigsys-doc.tex | 147 |
1 files changed, 141 insertions, 6 deletions
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]$}} |