summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pstricks/pst-news13.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/generic/pstricks/pst-news13.tex')
-rw-r--r--Master/texmf-dist/doc/generic/pstricks/pst-news13.tex68
1 files changed, 59 insertions, 9 deletions
diff --git a/Master/texmf-dist/doc/generic/pstricks/pst-news13.tex b/Master/texmf-dist/doc/generic/pstricks/pst-news13.tex
index 5eafc5e809e..01f353532b4 100644
--- a/Master/texmf-dist/doc/generic/pstricks/pst-news13.tex
+++ b/Master/texmf-dist/doc/generic/pstricks/pst-news13.tex
@@ -1,4 +1,4 @@
-%% $Id: pst-news13.tex 781 2013-05-21 08:25:07Z herbert $
+%% $Id: pst-news13.tex 799 2013-06-25 07:42:17Z herbert $
\documentclass[11pt,english,BCOR10mm,DIV12,bibliography=totoc,parskip=false,smallheadings
headexclude,footexclude,oneside]{pst-doc}
\listfiles
@@ -32,8 +32,8 @@ basic package \nxLFile{pstricks}}
\section{\texttt{pstricks.sty}}
%--------------------------------------------------------------------------------------
-There is a new optional argument \Lkeyword{monochrome} to convert all RGB and CMYK colors
-into grayscale. The equations are:
+There are new optional arguments \Lkeyword{monochrome} and \Lkeyword{grayscale} to convert \emph{all} RGB and CMYK colors
+into black and white or grayscale. The equations are:
\subsection{RGB to gray}
\[ \text{gray} = 0.07 \text{red} + 0.71 \text{green} + 0.21 \text{blue} \]
@@ -47,6 +47,8 @@ into grayscale. The equations are:
\text{gray} &= 0.299 r + 0.587 g + 0.114 b
\end{align*}
+This change will be global and effects also all other color setting!
+See section~\vref{subsec:monochrome} for a local change of the color output.
%--------------------------------------------------------------------------------------
\section{\texttt{pstricks.tex} (\pstricksFV -- \pstricksFD)}
@@ -68,19 +70,35 @@ ist not allowed and leads to an error!
\subsection{Coordinates}
Additionally to the special pair of coordinates \verb|(*x f(x))| where $x$ must be a value in
-PostScript notation and $f(x)$ in algebaric noatation, there is now a \verb|(+{x}, {f(x)})|.
-Both expressions must be in algebraic notation and \verb|{x}| must expand to a value
+PostScript notation and $f(x)$ in algebraic noatation, there is now a \verb|(**{f(y), y})|
+which is vice versa, $f(y)$ in algebraic and $y$ in PostScript notation. And there is also
+a \verb|(+{x}, {f(x)})|, where both expressions must be in algebraic notation and \verb|{x}| must expand to a value
or an expression which uses known system or user defined PostScript functions.
+
+
+
+
\begin{LTXexample}[width=5cm]
-\begin{pspicture}[showgrid](3,2)
-\pnode(+{sqrt(Pi)},{1.5*(sin(x)^2+cos(x)^2)}){A}
-\psdot(A)
-\psline[arrowscale=1.5]{->}(A)
+\def\f(#1){#1^2} \def\y{2}
+\begin{pspicture}[showgrid](5,5)
+\pnode(+{sqrt(Pi),1.5*(sin(x)^2+cos(x)^2)}){A}
+\psdot(A) \psline[arrowscale=1.5]{->}(A)
+\psline{->}(*2 {x^2}) \psline{->}(**{y^2} 2)
+\psline(1,1)(**{\f(y)} 2.2)(2;45)(*2 {\f(x)})
+\psline[linecolor=blue]{->}(+{sqrt(2),\f(x)})
+\psline[linecolor=blue]{->}(+{sqrt(3)},{\f(x)})
+\psline(+1,x+0.5)
\end{pspicture}
\end{LTXexample}
+Important: If the expression contains itself a parenthesis like \verb|)| then the argument must
+be inside braces; otherwise \TeX\ will take the first closing parenthesis as clsong delimiter
+for the complete coordinate argument \verb|(...)| which then gives an error.
+
+
+
\subsection{Fillstyle \texttt{dots}}
A fix for the fill style \Lkeyval{dots} to make it work again:
@@ -105,6 +123,38 @@ A fix for the fill style \Lkeyval{dots} to make it work again:
\end{pspicture}
\end{LTXexample}
+\subsection{New macros \nxLcs{pssetMonochrome}, \nxLcs{pssetGrayscale}, and \nxLcs{psresetColor}}\label{subsec:monochrome}
+
+\begin{BDef}
+\Lcs{pssetMonochrome}\\
+\Lcs{pssetGrayscale}\\
+\Lcs{psresetColor}
+\end{BDef}
+
+
+
+\begin{LTXexample}[width=5cm]
+\begin{pspicture}[showgrid](4,4)
+ \pssetMonochrome%
+ \psRing[linecolor=red](2,2){0.3}{0.8}
+ \psRing*[linecolor=red!30](2,2){1}{2}
+\psresetColor%
+\psdot[linecolor=red,dotscale=3](2,2)
+\end{pspicture}
+\end{LTXexample}
+
+\begin{LTXexample}[width=5cm]
+\begin{pspicture}[showgrid](4,4)
+ \pssetGrayscale%
+ \psRing[linecolor=red](2,2){0.3}{0.8}
+ \psRing*[linecolor=red!30](2,2){1}{2}
+\psresetColor%
+\psdot[linecolor=red,dotscale=3](2,2)
+\end{pspicture}
+\end{LTXexample}
+
+
+
\section{The PostScript header files}
\subsection{\nxLFile{pstricks.pro}}
%--------------------------------------------------------------------------------------