| 1 |
%% $Id: pstricks-tex.def 711 2023-04-29 18:59:10Z herbert $ |
| 2 |
%% pstricks-tex.def |
| 3 |
% |
| 4 |
%% fileversion and filedate see main file pstricks.tex |
| 5 |
% |
| 6 |
% This work may be distributed and/or modified under the |
| 7 |
% conditions of the LaTeX Project Public License, either version 1.3 |
| 8 |
% of this license or (at your option) any later version. |
| 9 |
% The latest version of this license is in |
| 10 |
% http://www.latex-project.org/lppl.txt |
| 11 |
% and version 1.3 or later is part of all distributions of LaTeX |
| 12 |
% version 2003/12/01 or later. |
| 13 |
% |
| 14 |
\newwrite\@unused |
| 15 |
\def\typeout#1{\immediate\write\@unused{#1}}% |
| 16 |
\typeout{we are running tex and have to make it etex and latex compatible ...}% |
| 17 |
\ifx\eTeXversion\@undefined |
| 18 |
\gdef\ch@ck#1#2#3{\ifnum\count1#1<#2 \else\errmessage{No room for a new #3}\fi} |
| 19 |
\countdef\allocationnumber=21 |
| 20 |
\chardef\sixt@@n=16 |
| 21 |
\def\alloc@#1#2#3#4#5{\global\advance\count1#1\@ne |
| 22 |
\ch@ck#1#4#2% make sure there's still room |
| 23 |
\allocationnumber\count1#1% |
| 24 |
\global#3#5\allocationnumber |
| 25 |
\wlog{\string#5=\string#2\the\allocationnumber}} |
| 26 |
\alloc@7\write\chardef\sixt@@n\@unused |
| 27 |
\else |
| 28 |
\def\e@alloc#1#2#3#4#5#6{% |
| 29 |
\global\advance#3\@ne |
| 30 |
\e@ch@ck{#3}{#4}{#5}#1% |
| 31 |
\allocationnumber#3\relax |
| 32 |
\global#2#6\allocationnumber |
| 33 |
\wlog{\string#6=\string#1\the\allocationnumber}}% |
| 34 |
\gdef\e@ch@ck#1#2#3#4{% |
| 35 |
\ifnum#1<#2\else |
| 36 |
\ifnum#1=#2\relax |
| 37 |
\global#1\@cclvi |
| 38 |
\ifx\count#4\global\advance#1 10 \fi |
| 39 |
\fi |
| 40 |
\ifnum#1<#3\relax |
| 41 |
\else |
| 42 |
\errmessage{No room for a new \string#4}% |
| 43 |
\fi |
| 44 |
\fi}% |
| 45 |
\fi |
| 46 |
% |
| 47 |
\newif\ifpst@psfonts \pst@psfontsfalse % defined in pstricks.sty |
| 48 |
\newif\ifpst@useCalc \pst@useCalcfalse % defined in pstricks.sty |
| 49 |
\newif\ifpstGSfonts \pstGSfontsfalse % defined in pstricks.sty |
| 50 |
% |
| 51 |
\long\def\@ifundefined#1#2#3{\expandafter\ifx\csname #1\endcsname\relax#2\else#3\fi} |
| 52 |
\def\@namedef#1{\expandafter\def\csname #1\endcsname} |
| 53 |
\def\@nameuse#1{\csname #1\endcsname} |
| 54 |
\def\@eha{% |
| 55 |
Your command was ignored.^^J |
| 56 |
Type \space I <command> <return> \space to replace |
| 57 |
it with another command,^^J |
| 58 |
or \space <return> \space to continue without it.} |
| 59 |
\def\@spaces{\space\space\space\space} |
| 60 |
\def\@empty{} |
| 61 |
\def\@gobble#1{} |
| 62 |
\def\@nnil{\@nil} |
| 63 |
% |
| 64 |
\def\@ifnextchar#1#2#3{% |
| 65 |
\let\@tempe#1\def\@tempa{#2}\def\@tempb{#3}\futurelet\@tempc\@ifnch} |
| 66 |
% |
| 67 |
\def\@ifnch{% |
| 68 |
\ifx\@tempc\@sptoken \let\@tempd\@xifnch |
| 69 |
\else\ifx\@tempc\@tempe \let\@tempd\@tempa \else \let\@tempd\@tempb \fi |
| 70 |
\fi |
| 71 |
\@tempd |
| 72 |
}% |
| 73 |
\begingroup |
| 74 |
\def\:{\global\let\@sptoken= } \: |
| 75 |
\def\:{\@xifnch} \expandafter\gdef\: {\futurelet\@tempc\@ifnch} |
| 76 |
\endgroup |
| 77 |
\def\endtabular{\crcr\egroup\egroup $\egroup} |
| 78 |
\def\@width{width}% needed by pst-node |
| 79 |
\def\@tfor#1:={\@tf@r#1 } |
| 80 |
\long\def\@tf@r#1#2\do#3{\def\@fortmp{#2}\ifx\@fortmp\space\else |
| 81 |
\@tforloop#2\@nil\@nil\@@#1{#3}\fi}% |
| 82 |
\long\def\@tforloop#1#2\@@#3#4{\def#3{#1}\ifx #3\@nnil |
| 83 |
\expandafter\@fornoop \else |
| 84 |
#4\relax\expandafter\@tforloop\fi#2\@@#3{#4}} |
| 85 |
\long\def\@break@tfor#1\@@#2#3{\csname fi\endcsname\csname fi\endcsname} |
| 86 |
% |
| 87 |
\def\colorlet#1[#2]#3{% |
| 88 |
\expandafter\let\csname\string\color@#1\expandafter\endcsname\csname\string\color@#3\endcsname |
| 89 |
\message{defining color #1: \expandafter\meaning\csname\string\color@#1\endcsname}% |
| 90 |
} |
| 91 |
%% |
| 92 |
%% END: pstricks-tex.def |