summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pst-fractal/pst-fractal-doc.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/generic/pst-fractal/pst-fractal-doc.tex')
-rw-r--r--Master/texmf-dist/doc/generic/pst-fractal/pst-fractal-doc.tex122
1 files changed, 78 insertions, 44 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-fractal/pst-fractal-doc.tex b/Master/texmf-dist/doc/generic/pst-fractal/pst-fractal-doc.tex
index 9103b7a2394..6c27664676d 100644
--- a/Master/texmf-dist/doc/generic/pst-fractal/pst-fractal-doc.tex
+++ b/Master/texmf-dist/doc/generic/pst-fractal/pst-fractal-doc.tex
@@ -5,7 +5,7 @@
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{geometry,lmodern}
-\usepackage{xcolor}
+\usepackage{xcolor,array}
%\usepackage{pstricks}
\usepackage{listings}
%\usepackage{pst-pdf}
@@ -48,6 +48,8 @@
captionpos=t,%
xleftmargin=1em,%
}
+\lstdefinestyle{syntax}{backgroundcolor=\color{blue!20},numbers=none,xleftmargin=0pt,xrightmargin=0pt,
+ frame=single}
\usepackage{pst-fractal}
\let\myFV\fileversion
@@ -92,19 +94,40 @@ this package together with the spcecial one \verb+pst-xkey+ for PSTricks. The \v
package is available at \href{ftp://ftp.dante.de/pub/tex/macros/latex/contrib/xkeyval/}{CTAN:/macros/latex/contrib/xkeyval/}.
It is also important that after \verb+pst-fractal+ no package is loaded, which uses the old keyval interface.
-The fractals are really big, which is the reason why this document is about 15 MByte.
+The fractals are really big, which is the reason why this document is about 15 MByte
+when you run it without using the external png-images.
\vspace*{2cm}
\end{abstract}%
\tableofcontents
+\section{Sierpinski triangle}
+
+The triangle must be given by three mandatory arguments:
+
+\begin{lstlisting}[style=syntax]
+\psSier[settings](x0,y0)(x1,y1)(x2,y2)
+\end{lstlisting}
+
+In difference to \verb|psfractal| it doesn't reserve any space, this is the
+reason why it should be part of a \verb|pspicture| environment.
+
+\img{1}
+\begin{lstlisting}
+\begin{pspicture}(5,5)
+ \psSier(0,0)(2,5)(5,0)
+\end{pspicture}
+\end{lstlisting}
+
+
+
\section{Julia and Mandelbrot sets}
The syntax of the \verb+psfractal+ macro is simple
-\begin{verbatim}
+\begin{lstlisting}[style=syntax]
\psfractal[settings](x0,y0)(x1,y1)
-\end{verbatim}
+\end{lstlisting}
All Arguments are optional, \verb+psfractal+ is the same as \verb+\psfractal(-1,-1)(1,1)+.
The Julia and Mandelbrot sets are a graphical representation of the following sequence
@@ -126,12 +149,12 @@ z_0 &= (x_0;y_0)
$(x_0;y_0)$ is the starting value.
-\img{1}
+\img{2}
\begin{lstlisting}
\psfractal
\end{lstlisting}
-\img{2}
+\img{3}
\begin{lstlisting}
\psfractal[xWidth=4cm,yWidth=4cm, baseColor=white, dIter=20](-2,-2)(2,2)
\end{lstlisting}
@@ -149,36 +172,18 @@ C(x,y) &= (x_0;y_0)
$(x_0;y_0)$ is the starting value.
-\img{3}
-\begin{lstlisting}
-\psfractal[type=Mandel]
-\end{lstlisting}
-
-
\img{4}
\begin{lstlisting}
-\psfractal[type=Mandel, xWidth=6cm, yWidth=4.8cm, baseColor=white, dIter=10](-2,-1.2)(1,1.2)
+\psfractal[type=Mandel]
\end{lstlisting}
-\subsection{Sierpinski triangle}
-
-The triangle must be given by three mandatory arguments:
-
-\begin{verbatim}
-\psSier[settings](x0,y0)(x1,y1)(x2,y2)
-\end{verbatim}
-
-In difference to \verb|psfractal| it doesn't reserve any space, this is the
-reason why it should be part of a \verb|pspicture| environment.
\img{5}
\begin{lstlisting}
-\begin{pspicture}(5,5)
- \psSier(0,0)(2,5)(5,0)
-\end{pspicture}
+\psfractal[type=Mandel, xWidth=6cm, yWidth=4.8cm, baseColor=white, dIter=10](-2,-1.2)(1,1.2)
\end{lstlisting}
-\section{The options}
+\subsection{The options}
\subsection{\texttt{type}}
@@ -268,6 +273,7 @@ This option is only valid for the Sierpinski triangle and preset by 2000.
\end{lstlisting}
+
\section{Phyllotaxis}
The beautiful arrangement of leaves in some plants, called phyllotaxis,
obeys a number of subtle mathematical relationships. For instance, the florets
@@ -275,9 +281,9 @@ in the head of a sunflower form two oppositely directed spirals: 55 of them cloc
and 34 counterclockwise. Surprisingly, these numbers are consecutive Fibonacci numbers.
The Phyllotaxis is like a Lindenmayer system.
-\begin{verbatim}
+\begin{lstlisting}[style=syntax]
\psPhyllotaxis[settings](x,y)
-\end{verbatim}
+\end{lstlisting}
The coordinates of the center are optional, if they are missing, then $(0,0)$
is assumed.
@@ -338,9 +344,9 @@ This is the number for the iterations.
\section{Fern}
-\begin{verbatim}
+\begin{lstlisting}[style=syntax]
\psFern[settings](x,y)
-\end{verbatim}
+\end{lstlisting}
The coordinates of the starting point are optional, if they are missing, then $(0,0)$
is assumed.
@@ -369,9 +375,9 @@ is assumed.
\section{Koch flake}
-\begin{verbatim}
+\begin{lstlisting}[style=syntax]
\psKochflake[settings](x,y)
-\end{verbatim}
+\end{lstlisting}
The coordinates of the starting point are optional, if they are missing, then $(0,0)$
is assumed. The origin is the lower left point of the flake, marked as red
@@ -403,9 +409,9 @@ for the first rotation angle.
\section{Apollonius circles}
-\begin{verbatim}
+\begin{lstlisting}[style=syntax]
\psAppolonius[settings](x,y)
-\end{verbatim}
+\end{lstlisting}
The coordinates of the starting point are optional, if they are missing, then $(0,0)$
is assumed. The origin is the center of the circle:
@@ -428,17 +434,29 @@ is assumed. The origin is the center of the circle:
\section{Trees}
-\begin{verbatim}
+\begin{lstlisting}[style=syntax]
\psPTree[settings](x,y)
\psFArrow[settings](x,y){fraction}
-\end{verbatim}
+\end{lstlisting}
The coordinates of the starting point are optional, if they are missing, then $(0,0)$
is assumed. The origin is the center of the lower line, shown in the following examples
by the dot. Special parameters are the width of the lower basic line for the tree and the
height and angle for the arrow and for both the color option. The color step is given by \verb+dIter+
-and the depth by \verb+maxIter+.
-
+and the depth by \verb+maxIter+. Valid optional arguments are
+
+\medskip
+\begin{center}
+\begin{tabular}{@{}>{\ttfamily}lll@{}}
+\emph{Name} & \emph{Meaning} & \emph{default}\\\hline
+xWidth & first base width & 1cm\\
+minWidth & last base width & 1pt\\
+c & factor for unbalanced trees (0<c<1) & 0.5\\
+Color & colored tree & fasle
+\end{tabular}
+\end{center}
+
+\bigskip
\img{34}
\begin{lstlisting}
\begin{pspicture}[showgrid=true](-3,0)(3,4)
@@ -457,7 +475,23 @@ and the depth by \verb+maxIter+.
\end{lstlisting}
-\img[36][37]{38}
+\img{36}
+\begin{lstlisting}
+\begin{pspicture}(-7,-1)(6,8)
+ \psPTree[xWidth=1.75cm,c=0.35]
+\end{pspicture}
+\end{lstlisting}
+
+\img{37}
+\begin{lstlisting}
+\begin{pspicture}(-5,-1)(7,8)
+ \psPTree[xWidth=1.75cm,Color=true,c=0.65]
+\end{pspicture}
+\end{lstlisting}
+
+
+
+\img[38][39]{40}
\begin{lstlisting}
\begin{pspicture}[showgrid=true](-1,0)(1,3)
\psFArrow{0.5}
@@ -473,7 +507,7 @@ and the depth by \verb+maxIter+.
\end{lstlisting}
-\img[39][40]{41}
+\img[41][42]{43}
\begin{lstlisting}
\begin{pspicture}(-1,0)(1,3)
\psFArrow[Color]{0.5}
@@ -489,7 +523,7 @@ and the depth by \verb+maxIter+.
\end{lstlisting}
-\img[0][42]{43}
+\img[0][44]{45}
\begin{lstlisting}
\begin{pspicture}(-3,-3)(2,3)
\psFArrow[Color]{0.6}
@@ -526,10 +560,10 @@ kdvi but not xdvi. It is better to run \verb|dvips| and then view the ps-file wi
\item Unknown PostScript command:
Be sure that you have the ''newest`` \verb|pstricks-add.tex| file
-\begin{verbatim}
+\begin{lstlisting}[style=syntax]
\def\fileversion{2.85}
\def\filedate{2007/04/01}
-\end{verbatim}
+\end{lstlisting}
\end{itemize}