summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pstricks/pst-news10.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-09-10 22:52:00 +0000
committerKarl Berry <karl@freefriends.org>2010-09-10 22:52:00 +0000
commit243b2ad3109380c958cb4869ef9da316d4b1b363 (patch)
treef50f7fca8b1e20d47777801c82475b78f52dba6f /Master/texmf-dist/doc/generic/pstricks/pst-news10.tex
parent43a4208ce0d47c2489ce43fc3ae350b06d4c8a8c (diff)
pstricks 2.11 (10sep10)
git-svn-id: svn://tug.org/texlive/trunk@19644 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/pstricks/pst-news10.tex')
-rw-r--r--Master/texmf-dist/doc/generic/pstricks/pst-news10.tex113
1 files changed, 107 insertions, 6 deletions
diff --git a/Master/texmf-dist/doc/generic/pstricks/pst-news10.tex b/Master/texmf-dist/doc/generic/pstricks/pst-news10.tex
index 0b03716b562..23804d0f6c2 100644
--- a/Master/texmf-dist/doc/generic/pstricks/pst-news10.tex
+++ b/Master/texmf-dist/doc/generic/pstricks/pst-news10.tex
@@ -16,7 +16,7 @@
%\psset{PstDebug=1}
\title{\texttt{News -- 2010}\\ \Large new macros and bugfixes for the
-basic packages \nxLFile{pstricks}, \nxLFile{pst-plot}, and \nxLFile{pst-node}}
+basic package \nxLFile{pstricks}}
\author{Herbert Voß}
\date{\today}
@@ -48,13 +48,114 @@ supports \PS\ code in the document.
%--------------------------------------------------------------------------------------
\section{\texttt{pstricks.sty}}
%--------------------------------------------------------------------------------------
-%\subsection{New optional argument}
-No changes
+\subsection{New optional argument}
+
+With the setting of the optional argument \Loption{pdf} the package \LPack{auto-pst-pdf} will be loaded
+by PSTricks. This requires that you run \Lprog{pdflatex} as
+
+\begin{BDef}
+\Lprog{pdflatex} \texttt{-{}-}\Loption{shell-escape} \texttt{<file>} & \% \TeX\,Live users\\
+\Lprog{pdflatex} \texttt{-{}-}\Loption{enable-write18} \texttt{<file>} & \% MiK\TeX\ users
+\end{BDef}
+
+The package exports the \Lenv{pspicture} environments into single images which are collected in
+a created file \texttt{<file>-pics.pdf} and inserted automatically in the last \Lprog{pdflatex}
+run.
+
+
%--------------------------------------------------------------------------------------
\section{\texttt{pstricks.tex} (\pstricksFV -- \pstricksFD)}
%--------------------------------------------------------------------------------------
+\subsection{New optional arguments}
+The new arguments are only valid for the macros \Lcs{psellipse}, \Lcs{pscircle}, \Lcs{psarc}.
+\Lcs{psellipticarc}, \Lcs{pscurve}, \Lcs{psplot}, and \Lcs{psparametricplot}.
+
+\medskip
+\begin{tabular}{@{} l >{\em}l l l @{}}\toprule
+\emph{name} & type & \emph{default} & \emph{description}\\\midrule
+\Lkeyword{startLW} & length & \Lcs{pslinewidth} & starting linewidth \\
+\Lkeyword{endLW} & length & \Lcs{pslinewidth} & ending linewidth \\
+\Lkeyword{startWL} & integer& 380 & starting wave length\\
+\Lkeyword{endWL} & integer& 780 & ending wave length \\
+\Lkeyword{variableLW} & boolean & \false & use variable linewidth\\
+\Lkeyword{variableColor} & boolean & \false & use variable color\\\bottomrule
+\end{tabular}
+
+\begin{LTXexample}[width=7cm,wide=true]
+\psset{endLW=15pt}
+\begin{pspicture}(-3.5,-2.5)(3.5,2.5)
+\psellipse[linejoin=2,variableLW,startLW=1pt,
+ linecolor=green!40](0,0)(3,1)
+\end{pspicture}
+\end{LTXexample}
+
+
+\begin{LTXexample}[width=7cm,wide=true]
+\psset{endLW=15pt}
+\begin{pspicture}(-2.5,-2.5)(2.5,2.5)
+\pscircle[variableLW,startLW=1pt,
+ linecolor=blue!40]{2}
+\end{pspicture}
+\end{LTXexample}
+
+%
+\begin{LTXexample}[width=7cm,wide=true]
+\psset{endLW=15pt}
+\begin{pspicture}(-2.5,-2.5)(2.5,2.5)
+\psarc[variableLW,startLW=1pt,
+ linecolor=red!40](0,0){2}{10}{300}
+\end{pspicture}
+\end{LTXexample}
+
+%
+\begin{LTXexample}[width=7cm,wide=true]
+\psset{endLW=15pt}
+\begin{pspicture}(-3.5,-2.5)(3.5,2.5)
+\psellipticarc[variableLW,startLW=1pt,
+ linecolor=black!40](0,0)(3,1){90}{30}
+\end{pspicture}
+\end{LTXexample}
+
+\begin{LTXexample}[width=7cm,wide=true]
+\begin{pspicture}(-2.5,-2.5)(2.5,2.5)
+\pscurve[variableLW,startLW=1pt,endLW=20pt,
+ variableColor](-1,0.5)(-2,1)(2,2)(-1,-2)(2,-2)
+\end{pspicture}
+\end{LTXexample}
+
+\begin{LTXexample}[width=7cm,wide=true]
+\begin{pspicture}(-2.5,-2.5)(2.5,2.5)
+\pscurve[variableLW,startLW=1pt,endLW=20pt]%
+ (-1,0.5)(-2,1)(2,2)(-1,-2)(2,-2)
+\end{pspicture}
+\end{LTXexample}
+
+\begin{LTXexample}[pos=t]
+\begin{pspicture}(-5,-3)(5,3)
+\psplot[variableLW,startLW=1pt,endLW=20pt,
+ linecolor=magenta!60,variableColor,
+ algebraic,plotpoints=3000,startWL=500,
+ endWL=700]{-5}{5}{2*sin(2*x)+cos(x)}
+\end{pspicture}
+\end{LTXexample}
+
+\begin{LTXexample}[pos=t]
+\psset{endLW=24pt}
+\begin{pspicture}(-5,-5)(5,5)
+\psparametricplot[variableLW,startLW=1pt,
+ endLW=60pt,linecolor=red,variableColor,
+ algebraic,plotpoints=3000,plotstyle=curve,
+ opacity=0.4,strokeopacity=0.4,
+ endWL=600]{-5}{5}{t*sin(t) | t*cos(t)}
+\end{pspicture}
+\end{LTXexample}
+
+
+\clearpage
+
+
\subsection{Macro \nxLcs{psellipse}}
To rotate an ellipse the already existing keyword \Lkeyword{rot} can be
@@ -90,7 +191,7 @@ elliptic arc this is no more the case, which is the reason why angles are
internally corrected by PSTricks, to get the same arc lengthts for
different radii:
-\xLcs{psellipticarc}\xLkeyword{
+\xLcs{psellipticarc}
\begin{LTXexample}[width=6cm]
\psset{unit=0.5cm}
\begin{pspicture}(-5.5,-5.5)(5.5,5.5)%
@@ -158,7 +259,7 @@ If you do not want the angle correction, then use the keyword setting \Lkeyword{
-\subsection{Option \nxLkeyword{algebraic}}
+\subsection{Option \texttt{algebraic}}
The option \Lkeyword{algebraic} moved from the other packages into
the main package \LPack{pstricks} to get rid of the dependencies.
@@ -468,7 +569,7 @@ for plotting lines/curves with symbols.
%--------------------------------------------------------------------------------------
\subsection{\nxLFile{pst-algparser.pro}}
-\subsubsection{Using the \nxLkeyword{Sum} function}
+\subsubsection{Using the \texttt{Sum} function}
%--------------------------------------------------------------------------------------
\begin{BDef}