| 1 |
%% $Id: pst-turtle.tex 1093 2019-10-02 11:28:36Z herbert $ |
| 2 |
%% |
| 3 |
%% This is file `pst-turtle.tex', |
| 4 |
%% |
| 5 |
%% IMPORTANT NOTICE: |
| 6 |
%% |
| 7 |
%% Package `pst-turtle.tex' |
| 8 |
%% |
| 9 |
%% Herbert Voss <[email protected]> |
| 10 |
%% |
| 11 |
%% This program can be redistributed and/or modified under the terms |
| 12 |
%% of the LaTeX Project Public License Distributed from CTAN archives |
| 13 |
%% in directory macros/latex/base/lppl.txt. |
| 14 |
%% |
| 15 |
%% DESCRIPTION: |
| 16 |
%% `pst-turtle' is a PSTricks package to plot special functions |
| 17 |
%% |
| 18 |
%% For a ChangeLog go the the end |
| 19 |
%% |
| 20 |
\csname PSTturtleLoaded\endcsname |
| 21 |
\let\PSTfuncLoaded\endinput |
| 22 |
% Requires some PSTricks packages |
| 23 |
\ifx\PSTricksLoaded\endinput\else \input pstricks.tex\fi |
| 24 |
\ifx\PSTXKeyLoaded\endinput\else \input pst-xkey.tex \fi |
| 25 |
% |
| 26 |
\edef\PstAtCode{\the\catcode`\@} \catcode`\@=11\relax |
| 27 |
% interface to the `xkeyval' package |
| 28 |
\pst@addfams{pst-turtle} |
| 29 |
% |
| 30 |
\def\fileversion{0.02} |
| 31 |
\def\filedate{2019/10/02} |
| 32 |
\message{`PST-turtle' v\fileversion, \filedate\space (hv)} |
| 33 |
% |
| 34 |
\define@boolkey[psset]{pst-turtle}[Pst@]{showhead}[true]{}% |
| 35 |
\psset{showhead=false} |
| 36 |
% |
| 37 |
\pstheader{pst-turtle.pro} |
| 38 |
% |
| 39 |
\def\psTurtle{\pst@object{psTurtle}} |
| 40 |
\def\psTurtle@i{\@ifnextchar(\psTurtle@ii{\psTurtle@ii(0,0)}} |
| 41 |
\def\psTurtle@ii(#1)#2{% |
| 42 |
\pst@getcoor{#1}\pst@tempA |
| 43 |
\begin@OpenObj |
| 44 |
\psset{unit=1cm}% |
| 45 |
\addto@pscode{ |
| 46 |
tx@TurtleDict begin |
| 47 |
\pst@tempA translate |
| 48 |
\pst@number\psxunit \pst@number\psyunit scale |
| 49 |
0 0 moveto |
| 50 |
turtle % initialize |
| 51 |
#2 |
| 52 |
2 setlinejoin |
| 53 |
end |
| 54 |
1 \pst@number\psxunit div 1 \pst@number\psyunit div scale |
| 55 |
}% |
| 56 |
\end@OpenObj |
| 57 |
} |
| 58 |
\catcode`\@=\PstAtCode\relax |
| 59 |
% |
| 60 |
%% END: pst-turtle.tex |
| 61 |
\endinput |
| 62 |
% |
| 63 |
|