diff options
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/generic/pst-circ/pst-circ.tex | 31 |
1 files changed, 12 insertions, 19 deletions
diff --git a/Master/texmf-dist/tex/generic/pst-circ/pst-circ.tex b/Master/texmf-dist/tex/generic/pst-circ/pst-circ.tex index 14d5c2a7fae..b5f9ff8918d 100644 --- a/Master/texmf-dist/tex/generic/pst-circ/pst-circ.tex +++ b/Master/texmf-dist/tex/generic/pst-circ/pst-circ.tex @@ -1,4 +1,4 @@ -%% $Id: pst-circ.tex 909 2014-04-19 08:32:02Z herbert $ +%% $Id: pst-circ.tex 915 2014-05-18 17:23:55Z herbert $ %% This is file `pst-circ.tex' %% %% IMPORTANT NOTICE: @@ -26,8 +26,8 @@ \ifx\PSTXKeyLoaded\endinput \else\input pst-xkey \fi \ifx\PSTMultidoLoaded\endinput\else\input multido.tex\fi % -\def\fileversion{2.08} -\def\filedate{2014/04/19} +\def\fileversion{2.09} +\def\filedate{2014/05/18} \message{`pst-circ' v\fileversion (hv)} % \edef\PstAtCode{\the\catcode`\@} @@ -1428,7 +1428,6 @@ % The logical circuits part % \def\logic{\@ifnextchar[{\pst@draw@logic}{\pst@draw@logic[]}} -% \def\ground{\@ifnextchar[{\pst@ground}{\pst@ground[]}} \def\pst@ground[#1]{% \@ifnextchar({\pst@groundi[#1]{0}}{\pst@groundi[#1]}% @@ -2122,7 +2121,7 @@ \psframe[linewidth=2\pslinewidth](0,0)(\psk@logic@width,\psk@logic@height)% } \pst@getcoor{#2}\pst@tempa - \ifPst@logicChangeLR\def\logic@LR{true}\else\def\logic@LR{false}\fi% + \ifPst@logicChangeLR\def\logic@LR{true}\else\def\logic@LR{false}\fi \pstVerb{ /YA \pst@tempa exch pop \pst@number\psyunit div def /YB YA \psk@logic@height\space add def @@ -2157,7 +2156,7 @@ \fi \rput[b](!% /dx XB XA sub 2 div def - XA dx add YA 0.1 add){\psk@logic@labelstyle #3} + XA dx add YA 0.1 add){\if$\psk@logic@labelstyle$\else\psk@logic@labelstyle#3\fi} \else \ifx\psk@logic@type\pst@logic@type@D%---------------- D ----------------- \pnode(! XA YA dy 2 div add){#3C} @@ -2183,7 +2182,7 @@ \fi \rput[b](!% /dx XB XA sub 2 div def - XA dx add YA 0.1 add){\psk@logic@labelstyle #3} + XA dx add YA 0.1 add){\if$\psk@logic@labelstyle$\else\psk@logic@labelstyle#3\fi} \else \ifx\psk@logic@type\pst@logic@type@JK%---------------- JK ----------------- \multido{\n=1+1}{\psk@logic@JInput}{% @@ -2237,13 +2236,9 @@ \fi \rput[b](!% /dx XB XA sub 2 div def - XA dx add YA 0.1 add){\psk@logic@labelstyle #3} + XA dx add YA 0.1 add){\if$\psk@logic@labelstyle$\else\psk@logic@labelstyle#3\fi} \else%---------------- default AND/NAND/OR/NOR/NOT/EXOR/ENOR ----------------- - \ifx\psk@logic@type\pst@logic@type@not - \def\@nMax{1} - \else - \def\@nMax{\psk@logic@nInput} - \fi + \ifx\psk@logic@type\pst@logic@type@not \def\@nMax{1}\else \def\@nMax{\psk@logic@nInput}\fi \multido{\n=1+1}{\@nMax}{% \pnode(!% /Step dy \psk@logic@nInput\space div def @@ -2254,10 +2249,8 @@ /YC \pst@tempc exch pop \pst@number\psyunit div def /XC \pst@tempc pop \pst@number\psxunit div def XC \psk@logic@wireLength\space \logic@LR {add}{sub} ifelse YC){temp#3\n} - \psline(#3\n)(temp#3\n)% input - \ifPst@logicShowDot - \qdisk(temp#3\n){3pt} - \fi + \expandafter\psline\expandafter(#3\n)(temp#3\n)% input + \ifPst@logicShowDot \qdisk(temp#3\n){3pt}\fi \ifPst@logicShowNode \uput[\ifPst@logicChangeLR 180\else 0\fi](#3\n){\psk@logic@nodestyle\n} \fi @@ -2320,10 +2313,10 @@ \fi \rput(!% /dx XB XA sub \psk@logic@symbolpos\space mul def - XA dx add YB 0.3 sub){\psk@logic@symbolstyle\textbf{\logic@type}} + XA dx add YB 0.3 sub){\if$\psk@logic@symbolstyle$\else\psk@logic@symbolstyle\textbf{\logic@type}\fi} \rput[b](!% /dx XB XA sub 2 div def - XA dx add YA 0.1 add){\psk@logic@labelstyle #3} + XA dx add YA 0.1 add){\if$\psk@logic@labelstyle$\else\psk@logic@labelstyle#3\fi} \fi \fi \fi% end of no special RS/JK/D |