diff options
author | Karl Berry <karl@freefriends.org> | 2010-02-10 23:56:55 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-02-10 23:56:55 +0000 |
commit | 594a436be62788c2cef9861dd7a9944ae15a383b (patch) | |
tree | a6b5d4897901ff3528c3235f45d024406bc7007f /Master | |
parent | d8d1a3e22085125266fc10d9686b7dc96263736c (diff) |
pst-fractal 0.06 (10feb10)
git-svn-id: svn://tug.org/texlive/trunk@16958 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
52 files changed, 287 insertions, 402 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-fractal/Changes b/Master/texmf-dist/doc/generic/pst-fractal/Changes index 262966e76c1..503e8ee798f 100644 --- a/Master/texmf-dist/doc/generic/pst-fractal/Changes +++ b/Master/texmf-dist/doc/generic/pst-fractal/Changes @@ -1,8 +1,10 @@ -pst-fractal.sty -------- +pst-fractal.pro -------- +0.02 2010-02-10 fix bug in tx@fern 0.01 2007-04-05 first CTAN version pst-fractal.tex -------- +0.06 2010-02-10 - add another type of a Sierpinski triangle 0.05 2007-09-25 - allow unbalanced trees with option 0<c<1 - use option c for unballanced trees - new option minWidth diff --git a/Master/texmf-dist/doc/generic/pst-fractal/README b/Master/texmf-dist/doc/generic/pst-fractal/README index 32ccef0e471..60512ee4996 100644 --- a/Master/texmf-dist/doc/generic/pst-fractal/README +++ b/Master/texmf-dist/doc/generic/pst-fractal/README @@ -1,38 +1,16 @@ -%% Package `pst-fractal.tex' -%% -%% Herbert Voss <voss _at_ pstricks.de> (Germany) -%% -%% 2007-04-05 -%% +pst-fractal: plotting fractals -Save the files +Save the files pst-fractal.sty|tex in a directory, which is part of your +local TeX tree. The pro file should go into $TEXMF/dvips/pstricks/ +Then do not forget to run texhash to update this tree. +For more information see the documentation of your LATEX distribution +on installing packages into your local TeX system or read the +TeX Frequently Asked Questions: +(http://www.tex.ac.uk/cgi-bin/texfaq2html?label=instpackages). -pst-fractal.sty -pst-fractal.tex +PSTricks is PostScript Tricks, the documentation cannot be run +with pdftex, use the sequence latex->dvips->ps2pdf. -in any place, where latex or any other TeX program will find it. +To gett he documentation of this document you have to run +pst2pdf pst-fractal-doc --Iext=.jpg -pst-fractal uses the extended version of the keyval package. So -be sure that you -- have installed xkeyval with the special pst-xkey - (CTAN: tex-archive/macros/latex/contrib/xkeyval/) -- do not load another package after pst-fractal, which loads - the old keyval.sty or pst-key.tex, eg. pst-node or pst-plot. - - -If you like to get the documentation file in another format run - -latex pst-fractal-doc.tex -bibtex pst-fractal.doc -latex pst-fractal-doc.tex -dvips pst-fractal-doc.dvi -ps2pdf pst-fractal-doc.ps (takes a long time!!!) - -to get a PostScript or PDF file. But pay attention, that the pst-fractal -files are saved in the above mentioned way, before you run -latex on the documentation file. - -The intermediate DVI file works only with viewers which can -interprete the embedded PostScript code. - -For another PDF output read the section from the documentation. diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/1.png b/Master/texmf-dist/doc/generic/pst-fractal/images/1.png Binary files differdeleted file mode 100644 index 21fb2d78cbc..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/1.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/10.png b/Master/texmf-dist/doc/generic/pst-fractal/images/10.png Binary files differdeleted file mode 100644 index 4b8162995aa..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/10.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/11.png b/Master/texmf-dist/doc/generic/pst-fractal/images/11.png Binary files differdeleted file mode 100644 index b44ba9fef2b..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/11.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/12.png b/Master/texmf-dist/doc/generic/pst-fractal/images/12.png Binary files differdeleted file mode 100644 index c1c76faa19e..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/12.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/13.png b/Master/texmf-dist/doc/generic/pst-fractal/images/13.png Binary files differdeleted file mode 100644 index d9098106d85..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/13.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/14.png b/Master/texmf-dist/doc/generic/pst-fractal/images/14.png Binary files differdeleted file mode 100644 index e1845099f6e..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/14.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/15.png b/Master/texmf-dist/doc/generic/pst-fractal/images/15.png Binary files differdeleted file mode 100644 index 0f9a7f5ab7d..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/15.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/16.png b/Master/texmf-dist/doc/generic/pst-fractal/images/16.png Binary files differdeleted file mode 100644 index 2f0ff09ac39..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/16.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/17.png b/Master/texmf-dist/doc/generic/pst-fractal/images/17.png Binary files differdeleted file mode 100644 index 69e18c76b72..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/17.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/18.png b/Master/texmf-dist/doc/generic/pst-fractal/images/18.png Binary files differdeleted file mode 100644 index 685334a34ce..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/18.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/19.png b/Master/texmf-dist/doc/generic/pst-fractal/images/19.png Binary files differdeleted file mode 100644 index 0ea673ff870..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/19.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/2.png b/Master/texmf-dist/doc/generic/pst-fractal/images/2.png Binary files differdeleted file mode 100644 index 10bc561dd15..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/2.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/20.png b/Master/texmf-dist/doc/generic/pst-fractal/images/20.png Binary files differdeleted file mode 100644 index dcbaa8dbfa6..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/20.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/21.png b/Master/texmf-dist/doc/generic/pst-fractal/images/21.png Binary files differdeleted file mode 100644 index ce45cbd246c..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/21.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/22.png b/Master/texmf-dist/doc/generic/pst-fractal/images/22.png Binary files differdeleted file mode 100644 index 939153997b9..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/22.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/23.png b/Master/texmf-dist/doc/generic/pst-fractal/images/23.png Binary files differdeleted file mode 100644 index 458ef5572d9..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/23.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/24.png b/Master/texmf-dist/doc/generic/pst-fractal/images/24.png Binary files differdeleted file mode 100644 index 8f0bac1c23a..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/24.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/25.png b/Master/texmf-dist/doc/generic/pst-fractal/images/25.png Binary files differdeleted file mode 100644 index 3d127beff9a..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/25.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/26.png b/Master/texmf-dist/doc/generic/pst-fractal/images/26.png Binary files differdeleted file mode 100644 index 900b6a5a23c..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/26.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/27.png b/Master/texmf-dist/doc/generic/pst-fractal/images/27.png Binary files differdeleted file mode 100644 index 819c055c91d..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/27.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/28.png b/Master/texmf-dist/doc/generic/pst-fractal/images/28.png Binary files differdeleted file mode 100644 index 8f1ad0b36ee..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/28.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/29.png b/Master/texmf-dist/doc/generic/pst-fractal/images/29.png Binary files differdeleted file mode 100644 index d116db9f0be..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/29.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/3.png b/Master/texmf-dist/doc/generic/pst-fractal/images/3.png Binary files differdeleted file mode 100644 index 09ee953ff62..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/3.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/30.png b/Master/texmf-dist/doc/generic/pst-fractal/images/30.png Binary files differdeleted file mode 100644 index e4f630c314e..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/30.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/31.png b/Master/texmf-dist/doc/generic/pst-fractal/images/31.png Binary files differdeleted file mode 100644 index e9f4124fe50..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/31.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/32.png b/Master/texmf-dist/doc/generic/pst-fractal/images/32.png Binary files differdeleted file mode 100644 index 80a02c3cde9..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/32.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/33.png b/Master/texmf-dist/doc/generic/pst-fractal/images/33.png Binary files differdeleted file mode 100644 index d8991f60b8e..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/33.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/34.png b/Master/texmf-dist/doc/generic/pst-fractal/images/34.png Binary files differdeleted file mode 100644 index 78ed295ecc2..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/34.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/35.png b/Master/texmf-dist/doc/generic/pst-fractal/images/35.png Binary files differdeleted file mode 100644 index c5edc325bd0..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/35.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/36.png b/Master/texmf-dist/doc/generic/pst-fractal/images/36.png Binary files differdeleted file mode 100644 index 4ff656584ea..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/36.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/37.png b/Master/texmf-dist/doc/generic/pst-fractal/images/37.png Binary files differdeleted file mode 100644 index 24c97f736e1..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/37.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/38.png b/Master/texmf-dist/doc/generic/pst-fractal/images/38.png Binary files differdeleted file mode 100644 index 2a8e66daabe..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/38.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/39.png b/Master/texmf-dist/doc/generic/pst-fractal/images/39.png Binary files differdeleted file mode 100644 index 766df056681..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/39.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/4.png b/Master/texmf-dist/doc/generic/pst-fractal/images/4.png Binary files differdeleted file mode 100644 index aa274420d4f..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/4.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/40.png b/Master/texmf-dist/doc/generic/pst-fractal/images/40.png Binary files differdeleted file mode 100644 index 1304823e494..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/40.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/41.png b/Master/texmf-dist/doc/generic/pst-fractal/images/41.png Binary files differdeleted file mode 100644 index e68fe33cbe1..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/41.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/42.png b/Master/texmf-dist/doc/generic/pst-fractal/images/42.png Binary files differdeleted file mode 100644 index 1f499f9e303..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/42.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/43.png b/Master/texmf-dist/doc/generic/pst-fractal/images/43.png Binary files differdeleted file mode 100644 index a180e40a97b..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/43.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/44.png b/Master/texmf-dist/doc/generic/pst-fractal/images/44.png Binary files differdeleted file mode 100644 index b237a48041b..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/44.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/45.png b/Master/texmf-dist/doc/generic/pst-fractal/images/45.png Binary files differdeleted file mode 100644 index a74adab8101..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/45.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/5.png b/Master/texmf-dist/doc/generic/pst-fractal/images/5.png Binary files differdeleted file mode 100644 index 6c1a0213435..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/5.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/6.png b/Master/texmf-dist/doc/generic/pst-fractal/images/6.png Binary files differdeleted file mode 100644 index 10bc561dd15..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/6.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/7.png b/Master/texmf-dist/doc/generic/pst-fractal/images/7.png Binary files differdeleted file mode 100644 index aa274420d4f..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/7.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/8.png b/Master/texmf-dist/doc/generic/pst-fractal/images/8.png Binary files differdeleted file mode 100644 index c08a59c628a..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/8.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/images/9.png b/Master/texmf-dist/doc/generic/pst-fractal/images/9.png Binary files differdeleted file mode 100644 index 381e5751afa..00000000000 --- a/Master/texmf-dist/doc/generic/pst-fractal/images/9.png +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-fractal/pst-fractal-doc.pdf b/Master/texmf-dist/doc/generic/pst-fractal/pst-fractal-doc.pdf Binary files differindex 182cc17deb6..801bcfdb6f8 100644 --- a/Master/texmf-dist/doc/generic/pst-fractal/pst-fractal-doc.pdf +++ b/Master/texmf-dist/doc/generic/pst-fractal/pst-fractal-doc.pdf 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 6c27664676d..a78d68ada00 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 @@ -1,141 +1,90 @@ -\listfiles -\documentclass[11pt,a4paper]{article} -\usepackage[T1]{fontenc} -\usepackage[latin1]{inputenc} -\usepackage{amsmath} -\usepackage{graphicx} -\usepackage{geometry,lmodern} -\usepackage{xcolor,array} -%\usepackage{pstricks} -\usepackage{listings} -%\usepackage{pst-pdf} - -\makeatletter -\def\img{\@ifnextchar[{\img@i}{\img@i[0]}} -\def\img@i[#1]{\@ifnextchar[{\img@ii[#1]}{\img@ii[0][#1]}} -\def\img@ii[#1][#2]#3{\begin{center} -\ifnum#1>0 \includegraphics[scale=0.5]{images/#1}\fi\quad -\ifnum#2>0 \includegraphics[scale=0.5]{images/#2}\fi\quad -\includegraphics[scale=0.5]{images/#3}\end{center}} -\makeatletter - -\definecolor{hellgelb}{rgb}{1,1,0.85} -\definecolor{colKeys}{rgb}{0,0,1} -\definecolor{colIdentifier}{rgb}{0,0,0} -\definecolor{colComments}{rgb}{1,0,0} -\definecolor{colString}{rgb}{0,0.5,0} -\lstset{ - language=PSTricks,% - basicstyle=\footnotesize\ttfamily,% - identifierstyle=\color{colIdentifier},% - keywordstyle=\color{colKeys},% - stringstyle=\color{colString},% - stringstyle=\itshape\color{colComments},% - commentstyle=\itshape\color{colComments},% - columns=fixed, - tabsize=4,% - frame=single,% - extendedchars=true,% - showspaces=false,% - showstringspaces=false,% - numbers=left,% - numberstyle=\tiny\ttfamily,% - numbersep=1em,% - breaklines=true,% - breakindent=10pt,% - backgroundcolor=\color{hellgelb},% - breakautoindent=true,% - captionpos=t,% - xleftmargin=1em,% -} -\lstdefinestyle{syntax}{backgroundcolor=\color{blue!20},numbers=none,xleftmargin=0pt,xrightmargin=0pt, - frame=single} - -\usepackage{pst-fractal} -\let\myFV\fileversion - -\usepackage{url} -\usepackage[bottom]{footmisc} -\usepackage{fancyhdr} -%\usepackage{abstract} -\pagestyle{fancy} -\usepackage{url} -\def\UrlFont{\small\ttfamily} -\makeatletter -\def\verbatim@font{\small\normalfont\ttfamily} -\makeatother -\lfoot{\small\ttfamily\jobname.tex} -\cfoot{} -\rfoot{\thepage} -\renewcommand{\headrulewidth}{0pt} -\renewcommand{\footrulewidth}{0pt} -\let\myPart\part -\renewcommand{\part}[1]{\clearpage\myPart{#1}} -\newcommand{\PS}{PostScript} -\newcommand\CMD[1]{\texttt{\textbackslash#1}} -\psset{subgriddiv=0,gridlabels=7pt,gridcolor=black!15} -\usepackage[pdfauthor={Herbert Voss},pdftitle={Fractals},linktocpage,colorlinks]{hyperref} -% - +%% $Id: pst-func-doc.tex 273 2010-01-26 18:28:55Z herbert $ +\documentclass[11pt,english,BCOR10mm,DIV12,bibliography=totoc,parskip=false, + smallheadings, headexclude,footexclude,oneside]{pst-doc} +\usepackage[utf8]{inputenc} +\usepackage{pst-fractal,pst-exa} +\let\pstFV\fileversion +\renewcommand\bgImage{\includegraphics[scale=1.5]{images/pst-fractal-doc-tmp-1.pdf}} +\def\PSLenv{\Lenv{pspicture}} + +\lstset{language=PSTricks,basicstyle=\footnotesize\ttfamily} % \begin{document} -\author{Herbert Voß\thanks{voss@perce.de}} + +\title{\texttt{pst-fractal}} +\subtitle{Plotting fractals; v.\pstFV} +\author{Herbert Vo\ss} +\docauthor{} \date{\today} -\title{Fractals: pst-fractal v\myFV\\Documentation} +\maketitle + +\tableofcontents + +\clearpage -\maketitle% \begin{abstract} -The well known \verb+pstricks+ package offers excellent macros to insert more or less complex -graphics into a document. \verb+pstricks+ itself is the base for several other additional packages, -which are mostly named \verb+pst-xxxx+, like \verb+pst-fractal+. +\noindent +The well known \LPack{pstricks} package offers excellent macros to insert more or less complex +graphics into a document. \LPack{pstricks} itself is the base for several other additional packages, +which are mostly named \verb+pst-xxxx+, like \LPack{pst-fractal}. -This version uses the extended keyval package \verb+xkeyval+, so be sure that you have installed -this package together with the spcecial one \verb+pst-xkey+ for PSTricks. The \verb+xkeyval+ -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. +This version uses the extended keyval package \LPack{xkeyval}, so be sure that you have installed +this package together with the spcecial one \LPack{pst-xkey} for PSTricks. The \LPack{xkeyval} +package is available at \url{CTAN:/macros/latex/contrib/xkeyval/}. +It is also important that after \LPack{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 when you run it without using the external png-images. -\vspace*{2cm} \end{abstract}% -\tableofcontents +All images in this documentation were converted to the \Lext{jpg} format to get +a small pdf file size. When using the pdf format for the images the file size will be +more than 20 MBytes. However, having a small file size will lead into a bad image +resolution. Run the examples as single documents to see how it will be in +high quality. \section{Sierpinski triangle} -The triangle must be given by three mandatory arguments: +The triangle must be given by three mandatory arguments. Depending to the kind of +arguments it is one of the two possible versions: -\begin{lstlisting}[style=syntax] -\psSier[settings](x0,y0)(x1,y1)(x2,y2) -\end{lstlisting} +\begin{BDef} +\Lcs{psSier}\OptArgs\coord0\coord1\coord2\\ +\Lcs{psSier}\OptArgs\coord0\Largb{Base}\Largb{Recursion} +\end{BDef} -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. +In difference to \Lcs{psfractal} it doesn't reserve any space, this is the +reason why it should be part of a \PSLenv{} environment. -\img{1} -\begin{lstlisting} +\begin{PSTexample}[pos=l] \begin{pspicture}(5,5) \psSier(0,0)(2,5)(5,0) \end{pspicture} -\end{lstlisting} +\end{PSTexample} + +\begin{PSTexample}[pos=l] +\begin{pspicture}(5,5) +\psSier[linecolor=blue!70, + fillcolor=red!40](0,0){5cm}{4} +\end{pspicture} +\end{PSTexample} \section{Julia and Mandelbrot sets} -The syntax of the \verb+psfractal+ macro is simple -\begin{lstlisting}[style=syntax] -\psfractal[settings](x0,y0)(x1,y1) -\end{lstlisting} -All Arguments are optional, \verb+psfractal+ is the same as \verb+\psfractal(-1,-1)(1,1)+. +The syntax of the \Lcs{psfractal} macro is simple +\begin{BDef} +\Lcs{psfractal}\OptArgs\coord0\coord1 +\end{BDef} +All Arguments are optional, \Lcs{psfractal} is the same as \Lcs{psfractal}\verb+(-1,-1)(1,1)+. The Julia and Mandelbrot sets are a graphical representation of the following sequence - $x$ is the real and $y$ the imaginary part of the complex number $z$. $C(x,y)$ is a complex constant and preset by $(0,0)$. \begin{align} -z_{n+1}(x,y) &= (z_n(x,y))^2 +C(x,y)\\ +z_{n+1}(x,y) &= (z_n(x,y))^2 +C(x,y) \end{align} \subsection{Julia sets} @@ -148,16 +97,15 @@ z_0 &= (x_0;y_0) \end{align} $(x_0;y_0)$ is the starting value. +\begin{PSTexample}[pos=l] +\pspicture(-1,-1)(1,1)\psfractal\endpspicture +\end{PSTexample} -\img{2} -\begin{lstlisting} -\psfractal -\end{lstlisting} - -\img{3} -\begin{lstlisting} +\begin{PSTexample}[pos=l] +\pspicture(-2,-2)(2,2) \psfractal[xWidth=4cm,yWidth=4cm, baseColor=white, dIter=20](-2,-2)(2,2) -\end{lstlisting} +\endpspicture +\end{PSTexample} \subsection{Mandelbrot sets} @@ -172,105 +120,118 @@ C(x,y) &= (x_0;y_0) $(x_0;y_0)$ is the starting value. -\img{4} -\begin{lstlisting} +\begin{PSTexample}[pos=l] +\pspicture(-1,-1)(1,1) \psfractal[type=Mandel] -\end{lstlisting} +\endpspicture +\end{PSTexample} -\img{5} -\begin{lstlisting} -\psfractal[type=Mandel, xWidth=6cm, yWidth=4.8cm, baseColor=white, dIter=10](-2,-1.2)(1,1.2) -\end{lstlisting} +\begin{PSTexample}[pos=l] +\pspicture(-2,-2)(2,2) +\psfractal[type=Mandel, xWidth=6cm, + yWidth=4.8cm, baseColor=white, + dIter=10](-2,-1.2)(1,1.2) +\endpspicture +\end{PSTexample} \subsection{The options} \subsection{\texttt{type}} -Can be of "`Julia"' (default) or "`Mandel"'. +\Lkeyword{txpe} can be of \Lkeyval{Julia} (default) or \Lkeyval{Mandel}. + -\img[6]{7} -\begin{lstlisting} +\begin{PSTexample}[pos=l] +\pspicture(-1,-1)(3,1) \psfractal \psfractal[type=Mandel] -\end{lstlisting} +\endpspicture +\end{PSTexample} \subsection{\texttt{baseColor}} -The color for the convergent part. +The color for the convergent part is set by \Lkeyword{baseColor}. -\img[8]{9} -\begin{lstlisting} +\begin{PSTexample} +\begin{postscript} \psfractal[xWidth=4cm,yWidth=4cm,dIter=30](-2,-2)(2,2) \psfractal[xWidth=4cm,yWidth=4cm,baseColor=yellow,dIter=30](-2,-2)(2,2) -\end{lstlisting} +\end{postscript} +\end{PSTexample} \subsection{\texttt{xWidth} and \texttt{yWidth}} -These values define the physical width of the fractal. +\Lkeyword{xWidth} and \Lkeyword{yWidth} + define the physical width of the fractal. -\img{10} -\begin{lstlisting} +\begin{PSTexample} +\begin{postscript} \psfractal[type=Mandel,xWidth=12.8cm,yWidth=10.8cm,dIter=5](-2.5,-1.3)(0.7,1.3) -\end{lstlisting} +\end{postscript} +\end{PSTexample} -\subsection{\texttt{cx} and \texttt{cy}} +\subsection{\texttt{cx} and \texttt{cy}}\xLkeyword{cx}\xLkeyword{cy} Define the starting value for the complex constant number $C$. -\img[11]{12} -\begin{lstlisting} +\begin{PSTexample} +\begin{postscript} \psset{xWidth=5cm,yWidth=5cm} \psfractal[dIter=2](-2,-2)(2,2) \psfractal[dIter=2,cx=-1.3,cy=0](-2,-2)(2,2) -\end{lstlisting} +\end{postscript} +\end{PSTexample} + \subsection{\texttt{dIter}} -The color is set by wavelength to RGB conversion of the iteration number, where -\verb+dIter+ is the step, predefined by 1. The wavelength is given by -the value of iter added by 400. +The color is set by \Index{wavelength} to RGB conversion of the iteration number, where +\Lkeyword{dIter} is the step, predefined by 1. The wavelength is given by +the value of \Lps{iter} added by 400. -\img[13]{14} -\begin{lstlisting} +\begin{PSTexample} +\begin{postscript} \psset{xWidth=5cm,yWidth=5cm} \psfractal[dIter=30](-2,-2)(2,2) \psfractal[dIter=10,cx=-1.3,cy=0](-2,-2)(2,2) -\end{lstlisting} +\end{postscript} +\end{PSTexample} \subsection{\texttt{maxIter}} -\verb+maxIter+ is the number of the maximum iteration until it leaves the loop. -It is predefined by 255, but internally multiplied by \texttt{dIter}. +\Lkeyword{maxIter} is the number of the maximum iteration until it leaves the loop. +It is predefined by 255, but internally multiplied by \Lkeyword{dIter}. -\img[15]{16} -\begin{lstlisting} +\begin{PSTexample} +\begin{postscript} \psset{xWidth=5cm,yWidth=5cm} \psfractal[maxIter=50,dIter=3](-2,-2)(2,2) \psfractal[maxIter=30,cx=-1.3,cy=0](-2,-2)(2,2) -\end{lstlisting} +\end{postscript} +\end{PSTexample} \subsection{\texttt{maxRadius}} If the square of distance of $z_n$ to the origin of the complex coordinate system -is greater as \texttt{maxRadius} then the algorithm leaves the loop -and sets the point. \texttt{maxRadius} should always be the square of the "`real"' +is greater as \Lkeyword{maxRadius} then the algorithm leaves the loop +and sets the point. \Lkeyword{maxRadius} should always be the square of the "`real"' value, it is preset by 100. -\img[17]{18} -\begin{lstlisting} +\begin{PSTexample} +\begin{postscript} \psset{xWidth=5cm,yWidth=5cm} \psfractal[maxRadius=30,dIter=10](-2,-2)(2,2) \psfractal[maxRadius=30,dIter=30,cx=-1.3,cy=0](-2,-2)(2,2) -\end{lstlisting} +\end{postscript} +\end{PSTexample} -\subsection{\texttt{plotpoints}} +\subsection{\texttt{plotpoints}}\xLkeyword{plotpoints} This option is only valid for the Sierpinski triangle and preset by 2000. -\img[19]{20} -\begin{lstlisting} +\begin{PSTexample} \begin{pspicture}(5,5) \psSier(0,0)(2.5,5)(5,0) \end{pspicture} \begin{pspicture}(5,5) \psSier[plotpoints=10000](0,0)(2.5,5)(5,0) \end{pspicture} -\end{lstlisting} +\end{PSTexample} @@ -281,218 +242,214 @@ 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{lstlisting}[style=syntax] -\psPhyllotaxis[settings](x,y) -\end{lstlisting} +\begin{BDef} +\Lcs{psPhyllotaxis}\OptArgs\Largr{\CAny} +\end{BDef} The coordinates of the center are optional, if they are missing, then $(0,0)$ is assumed. -\img{21} -\begin{lstlisting} +\begin{PSTexample}[pos=l] +\begin{postscript} \psframebox{\begin{pspicture}(-3,-3)(3,3) \psPhyllotaxis \end{pspicture}} -\end{lstlisting} +\end{postscript} +\end{PSTexample} -\img{22} -\begin{lstlisting} +\begin{PSTexample}[pos=l] +\begin{postscript} \psframebox{\begin{pspicture}(-3,-3)(4,4) \psPhyllotaxis(1,1) \end{pspicture}} -\end{lstlisting} +\end{postscript} +\end{PSTexample} -\subsection{\texttt{angle}} +\subsection{\texttt{angle}}\xLkeyword{angle} -\img{23} -\begin{lstlisting} +\begin{PSTexample}[pos=l] +\begin{postscript} \psframebox{\begin{pspicture}(-2.5,-2.5)(2.5,2.5) \psPhyllotaxis[angle=99] \end{pspicture}} -\end{lstlisting} +\end{postscript} +\end{PSTexample} -\subsection{\texttt{c}} +\subsection{\texttt{c}}\xLkeyword{c} This is the length of one element in the unit pt. -\img{24} -\begin{lstlisting} + +\begin{PSTexample} +\begin{postscript} \psframebox{\begin{pspicture}(8,8) \psPhyllotaxis[c=7](4,4) \end{pspicture}} -\end{lstlisting} +\end{postscript} +\end{PSTexample} -\img{25} -\begin{lstlisting} +\begin{PSTexample} +\begin{postscript} \psframebox{\begin{pspicture}(-3,-3)(3,3) \psPhyllotaxis[c=4,angle=111] \end{pspicture}} -\end{lstlisting} +\end{postscript} +\end{PSTexample} -\subsection{\texttt{maxIter}} +\subsection{\texttt{maxIter}}\xLkeyword{maxIter} This is the number for the iterations. -\img{26} -\begin{lstlisting} +\begin{PSTexample} +\begin{postscript} \psframebox{\begin{pspicture}(-3,-3)(3,3) \psPhyllotaxis[c=6,angle=111,maxIter=100] \end{pspicture}} -\end{lstlisting} +\end{postscript} +\end{PSTexample} \section{Fern} -\begin{lstlisting}[style=syntax] -\psFern[settings](x,y) -\end{lstlisting} +\begin{BDef} +\Lcs{psFern}\OptArgs\Largr{\CAny} +\end{BDef} The coordinates of the starting point are optional, if they are missing, then $(0,0)$ -is assumed. +is assumed. The default \Lkeyword{scale} is set to 10. -\img{27} -\begin{lstlisting} +\begin{PSTexample} +\begin{postscript} \psframebox{\begin{pspicture}(-1,0)(1,4) \psFern \end{pspicture}} -\end{lstlisting} +\end{postscript} +\end{PSTexample} -\img{28} -\begin{lstlisting} +\begin{PSTexample} +\begin{postscript} \psframebox{\begin{pspicture}(-1,0)(2,5) \psFern(1,1) \end{pspicture}} -\end{lstlisting} +\end{postscript} +\end{PSTexample} -\img{29} -\begin{lstlisting} +\begin{PSTexample} +\begin{postscript} \psframebox{\begin{pspicture}(-3,0)(3,11) - \psFern[scale=3,maxIter=100000,linecolor=green] + \psFern[scale=30,maxIter=100000,linecolor=green] \end{pspicture}} -\end{lstlisting} +\end{postscript} +\end{PSTexample} \section{Koch flake} -\begin{lstlisting}[style=syntax] -\psKochflake[settings](x,y) -\end{lstlisting} +\begin{BDef} +\Lcs{psKochflake}\OptArgs\Largr{\CAny} +\end{BDef} 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 or black point in the following example: -\clearpage -\img{30} -\begin{lstlisting} +\begin{PSTexample} \begin{pspicture}[showgrid=true](-2.4,-0.4)(5,5) \psKochflake[scale=10] \psdot[linecolor=red,dotstyle=*](0,0) \end{pspicture} -\end{lstlisting} +\end{PSTexample} -\img{31} -\begin{lstlisting} +\begin{PSTexample} \begin{pspicture}(-0.4,-0.4)(12,4) \psset{fillcolor=lime,fillstyle=solid} \multido{\iA=0+1,\iB=0+2}{6}{% \psKochflake[angle=-30,scale=3,maxIter=\iA](\iB,2.5)\psdot*(\iB,2.5) \psKochflake[scale=3,maxIter=\iA](\iB,0)\psdot*(\iB,0)} \end{pspicture} -\end{lstlisting} +\end{PSTexample} -Optional arguments are \verb+scale+, \verb+maxIter+ (iteration depth) and \verb+angle+ +Optional arguments are \Lkeyword{scale}, \Lkeyword{maxIter} (iteration depth) and \Lkeyword{angle} for the first rotation angle. \section{Apollonius circles} -\begin{lstlisting}[style=syntax] -\psAppolonius[settings](x,y) -\end{lstlisting} +\begin{BDef} +\Lcs{psAppolonius}\OptArgs\Largr{\CAny} +\end{BDef} 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: -\img{32} -\begin{lstlisting} +\begin{PSTexample} \begin{pspicture}[showgrid=true](-4,-4)(4,4) \psAppolonius[Radius=4cm] \end{pspicture} -\end{lstlisting} +\end{PSTexample} -\img{33} -\begin{lstlisting} +\begin{PSTexample} \begin{pspicture}(-5,-5)(5,5) \psAppolonius[Radius=5cm,Color] \end{pspicture} -\end{lstlisting} +\end{PSTexample} \section{Trees} -\begin{lstlisting}[style=syntax] -\psPTree[settings](x,y) -\psFArrow[settings](x,y){fraction} -\end{lstlisting} +\begin{BDef} +\Lcs{psPTree}\OptArgs\Largr{\CAny} +\Lcs{psFArrow}\OptArgs\Largr{\CAny}\Largb{fraction} +\end{BDef} 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+. Valid optional arguments are +height and angle for the arrow and for both the color option. The color step is given by \Lkeyword{dIter} +and the depth by \Lkeyword{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 +\Lkeyword{xWidth} & first base width & 1cm\\ +\Lkeyword{minWidth} & last base width & 1pt\\ +\Lkeyword{c} & factor for unbalanced trees (0<c<1) & 0.5\\ +\Lkeyword{Color} & colored tree & fasle \end{tabular} \end{center} \bigskip -\img{34} -\begin{lstlisting} +\begin{PSTexample} \begin{pspicture}[showgrid=true](-3,0)(3,4) \psPTree \psdot*(0,0) \end{pspicture} -\end{lstlisting} +\end{PSTexample} - -\img{35} -\begin{lstlisting} +\begin{PSTexample} \begin{pspicture}[showgrid=true](-6,0)(6,7) \psPTree[xWidth=1.75cm,Color=true] \psdot*[linecolor=white](0,0) \end{pspicture} -\end{lstlisting} - +\end{PSTexample} -\img{36} -\begin{lstlisting} +\begin{PSTexample} \begin{pspicture}(-7,-1)(6,8) \psPTree[xWidth=1.75cm,c=0.35] \end{pspicture} -\end{lstlisting} +\end{PSTexample} -\img{37} -\begin{lstlisting} +\begin{PSTexample} \begin{pspicture}(-5,-1)(7,8) \psPTree[xWidth=1.75cm,Color=true,c=0.65] \end{pspicture} -\end{lstlisting} +\end{PSTexample} - - -\img[38][39]{40} -\begin{lstlisting} +\begin{PSTexample} \begin{pspicture}[showgrid=true](-1,0)(1,3) \psFArrow{0.5} \end{pspicture} @@ -504,11 +461,10 @@ Color & colored tree & fasle \begin{pspicture*}[showgrid=true](-3,0)(3,3.5) \psFArrow[linewidth=3pt]{0.65} \end{pspicture*} -\end{lstlisting} +\end{PSTexample} -\img[41][42]{43} -\begin{lstlisting} +\begin{PSTexample} \begin{pspicture}(-1,0)(1,3) \psFArrow[Color]{0.5} \end{pspicture} @@ -520,11 +476,10 @@ Color & colored tree & fasle \begin{pspicture*}(-3,0)(3,3.5) \psFArrow[Color]{0.65} \end{pspicture*} -\end{lstlisting} +\end{PSTexample} -\img[0][44]{45} -\begin{lstlisting} +\begin{PSTexample} \begin{pspicture}(-3,-3)(2,3) \psFArrow[Color]{0.6} \psFArrow[angle=90,Color]{0.6} @@ -534,46 +489,19 @@ Color & colored tree & fasle \psFArrow[Color]{0.7} \psFArrow[angle=90,Color]{0.7} \end{pspicture*} -\end{lstlisting} - -\section{PDF output} - -\verb|pst-fractal| is based on the popular \verb|pstricks| -package and writes pure \PS code\cite{PostScript}, so it is not -possible to run \TeX{} files with pdf\LaTeX{} when there are -pstricks macros in the document. If you still need a PDF output use one of the following possibilities: -\begin{itemize} -\item package \verb|pdftricks.sty|\cite{pdftricks} -\item the for Linux free available program VTeX/Lnx\footnote{\url{http://www.micropress-inc.com/linux/}} -\item build the PDF with \verb|ps2pdf| (\verb|dvi|$\rightarrow$\verb|ps|$\rightarrow$\verb|pdf|) -\item use the \verb|pst-pdf| package.\footnote{\url{http://www.ctan.org/CTAN/macros/latex/contrib/pst-pdf/}} -\end{itemize} +\end{PSTexample} -You do not need to load \verb|pstricks.sty|, it will be done by \verb|pst-fractal| by default. +\section{List of all optional arguments for \texttt{pst-fractal}} -\section{FAQ} -\begin{itemize} -\item The fractal is not correct placed. +\xkvview{family=pst-fractal,columns={key,type,default}} -Be sure that you view your output with a dvi viewer which can show PostScript code, like -kdvi but not xdvi. It is better to run \verb|dvips| and then view the ps-file with \verb|gv|. -\item Unknown PostScript command: - -Be sure that you have the ''newest`` \verb|pstricks-add.tex| file -\begin{lstlisting}[style=syntax] -\def\fileversion{2.85} -\def\filedate{2007/04/01} -\end{lstlisting} -\end{itemize} - - - -\section{Credits} - -\nocite{*} \bgroup \raggedright +\nocite{*} \bibliographystyle{plain} \bibliography{pst-fractal-doc} \egroup -\end{document} + +\printindex + +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/dvips/pst-fractal/pst-fractal.pro b/Master/texmf-dist/dvips/pst-fractal/pst-fractal.pro index 041b7122890..388447fd20f 100644 --- a/Master/texmf-dist/dvips/pst-fractal/pst-fractal.pro +++ b/Master/texmf-dist/dvips/pst-fractal/pst-fractal.pro @@ -15,7 +15,7 @@ %% `pst-fractal' is a PSTricks package to draw fractal objects %% %% -%% version 0.01 / 2007-05-14 Herbert Voss <voss _at_ PSTricks.de> +%% version 0.02 / 2010-02-10 Herbert Voss <hvoss _at_ tug.org> % /tx@fractalDict 20 dict def tx@fractalDict begin @@ -157,18 +157,18 @@ tx@fractalDict begin } def % /tx@Fern { %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% \pst@tempA -% \pst@fractal@scale -% \pst@fractal@maxIter -% \pst@fractal@radius -% \pst@number\pslinewidth -% { \pst@usecolor\pslinecolor } +% \pst@fractal@scale +% \pst@tempA +% \pst@fractal@maxIter +% \pst@fractal@radius +% \pst@number\pslinewidth +% { \pst@usecolor\pslinecolor } /setColor ED SLW /radius ED /maxIter ED - 10 10 scale translate + dup scale /m1 [ 0.00 0.00 0.00 0.16 0.00 0.00 ] def /m2 [ 0.85 -0.04 0.04 0.85 0.00 1.60 ] def /m3 [ 0.20 0.23 -0.26 0.22 0.00 1.60 ] def diff --git a/Master/texmf-dist/source/generic/pst-fractal/Makefile b/Master/texmf-dist/source/generic/pst-fractal/Makefile deleted file mode 100644 index fb0b5fb5a16..00000000000 --- a/Master/texmf-dist/source/generic/pst-fractal/Makefile +++ /dev/null @@ -1,48 +0,0 @@ - -# `Makefile' for `pst-fractal.pdf', hv, 2007/04/05 - -.SUFFIXES : .tex .ltx .dvi .ps .pdf .eps - -PACKAGE = pst-fractal - -MAIN = $(PACKAGE)-doc - -LATEX = pdflatex - -ARCHNAME = $(MAIN)-$(shell date +%y%m%d) - -ARCHFILES = $(PACKAGE).sty $(PACKAGE).tex $(PACKAGE).pro $(MAIN).tex README Changes Makefile - -all : doc clean -doc: $(MAIN).pdf - -$(MAIN).pdf : $(MAIN).ps - GS_OPTIONS=-dAutoRotatePages=/None ps2pdf $< - -$(MAIN).ps : $(MAIN).dvi - dvips $< - -$(MAIN).dvi : $(MAIN).tex - $(LATEX) $< - $(LATEX) $< - if ! test -f $(basename $<).glo ; then touch $(basename $<).glo; fi - if ! test -f $(basename $<).idx ; then touch $(basename $<).idx; fi - makeindex -s gglo.ist -t $(basename $<).glg -o $(basename $<).gls \ - $(basename $<).glo - makeindex -t $(basename $<).ilg -o $(basename $<).ind \ - $(basename $<).idx - bibtex $(basename $<) - $(LATEX) $< - $(LATEX) $< - -clean : - $(RM) $(addprefix $(MAIN), .log .aux .glg .glo .gls .ilg .idx .ind .tmp .toc .out .blg .Roessler .bbl ) - $(RM) $(addprefix $(MAIN), .dvi .ps) - -veryclean : clean - $(RM) $(addprefix $(MAIN), .pdf .bbl .blg) - -arch : - zip $(ARCHNAME).zip $(ARCHFILES) - -# EOF diff --git a/Master/texmf-dist/tex/generic/pst-fractal/pst-fractal.tex b/Master/texmf-dist/tex/generic/pst-fractal/pst-fractal.tex index fa6df4f3d4f..1fc81444324 100644 --- a/Master/texmf-dist/tex/generic/pst-fractal/pst-fractal.tex +++ b/Master/texmf-dist/tex/generic/pst-fractal/pst-fractal.tex @@ -5,7 +5,7 @@ %% %% Package `pst-fractal.tex' %% -%% Herbert Voss <voss _at_ pstricks dot de> +%% Herbert Voss <hvoss _at_ tug.org> %% %% This program can be redistributed and/or modified under the terms %% of the LaTeX Project Public License Distributed from CTAN archives @@ -17,55 +17,54 @@ %% \csname PSTfractalLoaded\endcsname \let\PSTfractalLoaded\endinput -\ifx\PSTricksLoaded\endinput\else\input pstricks.tex\fi +\ifx\PSTricksLoaded\endinput\else \input pstricks.tex\fi \ifx\PSTricksAddLoaded\endinput\else\input pstricks-add.tex\fi -\ifx\PSTXKeyLoaded\endinput\else\input pst-xkey \fi +\ifx\PSTXKeyLoaded\endinput\else \input pst-xkey \fi % -\def\fileversion{0.05} -\def\filedate{2007/09/24} +\def\fileversion{0.06} +\def\filedate{2010/02/10} \message{`PST-fractal' v\fileversion, \filedate\space (hv)} % \edef\PstAtCode{\the\catcode`\@} \catcode`\@=11\relax \pst@addfams{pst-fractal} -\pstheader{pstricks-add.pro} \pstheader{pst-fractal.pro} %\SpecialCoor % \newdimen\pst@fractal@xWidth -\define@key[psset]{pst-fractal}{xWidth}{\pssetlength\pst@fractal@xWidth{#1}} +\define@key[psset]{pst-fractal}{xWidth}[1cm]{\pssetlength\pst@fractal@xWidth{#1}} \newdimen\pst@fractal@yWidth -\define@key[psset]{pst-fractal}{yWidth}{\pssetlength\pst@fractal@yWidth{#1}} +\define@key[psset]{pst-fractal}{yWidth}[1cm]{\pssetlength\pst@fractal@yWidth{#1}} \psset[pst-fractal]{xWidth=1cm,yWidth=1cm} -\define@key[psset]{pst-fractal}{type}{\def\pst@fractal@type{#1}} +\define@key[psset]{pst-fractal}{type}[Julia]{\def\pst@fractal@type{#1}} \psset[pst-fractal]{type=Julia}% or type=Mandel \def\pst@fractal@Julia{Julia}\def\pst@fractal@Mandel{Mandel} -\define@key[psset]{pst-fractal}{baseColor}{\pst@getcolor{#1}\pst@fractal@baseColor} +\define@key[psset]{pst-fractal}{baseColor}[white]{\pst@getcolor{#1}\pst@fractal@baseColor} \psset[pst-fractal]{baseColor=white} % -\define@key[psset]{pst-fractal}{cx}{\def\pst@fractal@cx{#1 }} -\define@key[psset]{pst-fractal}{cy}{\def\pst@fractal@cy{#1 }} -\define@key[psset]{pst-fractal}{dIter}{\def\pst@fractal@dIter{#1 }} +\define@key[psset]{pst-fractal}{cx}[0]{\def\pst@fractal@cx{#1 }} +\define@key[psset]{pst-fractal}{cy}[0]{\def\pst@fractal@cy{#1 }} +\define@key[psset]{pst-fractal}{dIter}[1]{\def\pst@fractal@dIter{#1 }} \psset[pst-fractal]{cx=0,cy=0,dIter=1} -\define@key[psset]{pst-fractal}{maxIter}{\pst@checknum{#1}\pst@fractal@maxIter} -\define@key[psset]{pst-fractal}{maxRadius}{\pst@checknum{#1}\pst@fractal@maxRadius} +\define@key[psset]{pst-fractal}{maxIter}[255]{\pst@checknum{#1}\pst@fractal@maxIter} +\define@key[psset]{pst-fractal}{maxRadius}[100]{\pst@checknum{#1}\pst@fractal@maxRadius} \psset[pst-fractal]{maxIter=255,maxRadius=100} -\define@key[psset]{pst-fractal}{plotpoints}{\pst@checknum{#1}\pst@fractal@plotpoints} +\define@key[psset]{pst-fractal}{plotpoints}[2000]{\pst@checknum{#1}\pst@fractal@plotpoints} \psset[pst-fractal]{plotpoints=2000} % -\define@key[psset]{pst-fractal}{angle}{\pst@getangle{#1}\pst@fractal@angle} -\define@key[psset]{pst-fractal}{c}{\pst@checknum{#1}\pst@fractal@c} +\define@key[psset]{pst-fractal}{angle}[0]{\pst@getangle{#1}\pst@fractal@angle} +\define@key[psset]{pst-fractal}{c}[5]{\pst@checknum{#1}\pst@fractal@c} \newdimen\pst@fractal@minWidth -\define@key[psset]{pst-fractal}{minWidth}{\pssetlength\pst@fractal@minWidth{#1}} +\define@key[psset]{pst-fractal}{minWidth}[1pt]{\pssetlength\pst@fractal@minWidth{#1}} \psset[pst-fractal]{angle=0,c=5,minWidth=1pt} % -\define@key[psset]{pst-fractal}{scale}{\pst@getscale{#1}\pst@fractal@scale% +\define@key[psset]{pst-fractal}{scale}[1]{\pst@getscale{#1}{\pst@fractal@scale}% \let\pst@fractal@Xscale\pst@tempg} \psset[pst-fractal]{scale=1} % \def\pst@fractal@radius{0.001 } % \newdimen\pst@fractal@Radius -\define@key[psset]{pst-fractal}{Radius}{\pssetlength\pst@fractal@Radius{#1}} +\define@key[psset]{pst-fractal}{Radius}[5cm]{\pssetlength\pst@fractal@Radius{#1}} \define@boolkey[psset]{pst-fractal}[Pst@fractal@]{Color}[true]{} \psset[pst-fractal]{Radius=5cm,Color=false} % @@ -100,7 +99,8 @@ \ignorespaces} % \def\psSier{\pst@object{psSier}} -\def\psSier@i(#1)(#2)(#3){{% +\def\psSier@i(#1){\@ifnextchar({\psSier@ii(#1)}{\psSier@iii(#1)}} +\def\psSier@ii(#1)(#2)(#3){{% \pst@getcoor{#1}\pst@temp@A \pst@getcoor{#2}\pst@temp@B \pst@getcoor{#3}\pst@temp@C @@ -113,6 +113,31 @@ }% end add@pscode \end@SpecialObj% }} +\def\psSier@iii(#1)#2#3{% + \pst@getcoor{#1}\pst@tempA + \pst@getlength{#2}\pst@tempB + \begin@OpenObj% + \addto@pscode{ + /sierpy { + dup 1 ge + { 1 sub gsave 0.5 dup scale dup sierpy + 1 0 translate dup sierpy + -0.5 0.8660254 translate dup sierpy grestore + }{newpath + 0 0 moveto + 1 0 lineto 0.5 0.8660254 lineto closepath + gsave \pst@usecolor\pslinecolor + fill grestore } ifelse pop + } def + \pst@tempA\space translate + \pst@tempB\space dup scale + 0 setlinewidth + 0 0 moveto 1 0 lineto 0.5 0.8660254 lineto 0 setlinewidth closepath + gsave \pst@usecolor\psfillcolor fill grestore stroke + #3 sierpy }% + \end@OpenObj% +} +% % \def\psPhyllotaxis{\pst@object{psPhyllotaxis}} \def\psPhyllotaxis@i{\@ifnextchar({\psPhyllotaxis@ii}{\psPhyllotaxis@ii(0,0)}} @@ -134,17 +159,17 @@ \def\psFern{\pst@object{psFern}} \def\psFern@i{\@ifnextchar({\psFern@ii}{\psFern@ii(0,0)}} \def\psFern@ii(#1){{% - \addbefore@par{linewidth=0.001pt,maxIter=20000,radius=0.001pt}% + \addbefore@par{scale=10,linewidth=0.001pt,maxIter=20000,radius=0.001pt}% \pst@getcoor{#1}\pst@tempA% \begin@SpecialObj% \addto@pscode{ - \pst@tempA + \pst@fractal@Xscale + \pst@tempA \pst@fractal@maxIter \pst@fractal@radius \pst@number\pslinewidth { \pst@usecolor\pslinecolor } - \pst@fractal@scale ^^J% - tx@fractalDict begin tx@Fern end ^^J% + tx@fractalDict begin tx@Fern end }% end add@pscode \end@SpecialObj% }} |