diff options
author | Karl Berry <karl@freefriends.org> | 2007-10-16 17:34:02 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2007-10-16 17:34:02 +0000 |
commit | 7ac40f0e6332cede8098803712911982c68b4974 (patch) | |
tree | 0ab3630e69b41da033c9a8f14483983e1c8a1162 /Master/texmf-dist/doc/generic/pst-circ | |
parent | f7e10a2d27667dd0c45ab087197ae6ee3ecd445c (diff) |
pst-circ update (15oct07)
git-svn-id: svn://tug.org/texlive/trunk@5205 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/pst-circ')
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-circ/Changes | 32 | ||||
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-circ/README | 38 | ||||
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-circ/Version-1.21 | 0 | ||||
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-circ/logic.ltx | 91 | ||||
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-circ/logic.pdf | bin | 72933 -> 0 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-circ/logic.tex | 436 | ||||
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-circ/poti.pdf | bin | 10548 -> 0 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-circ/poti.tex | 81 | ||||
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-circ/pst-circ-doc.bib | 129 | ||||
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-circ/pst-circ-doc.pdf | bin | 186471 -> 497680 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-circ/pst-circ-doc.tex | 1726 |
11 files changed, 1423 insertions, 1110 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-circ/Changes b/Master/texmf-dist/doc/generic/pst-circ/Changes new file mode 100644 index 00000000000..a175c3a1a05 --- /dev/null +++ b/Master/texmf-dist/doc/generic/pst-circ/Changes @@ -0,0 +1,32 @@ +1.42 2007-10-15 (hv) - added better FET support (Ted Pavlic) + - small changes to draw@dipole (Alan Ristow) +1.41 2007-04-23 (hv) added dipolestyle varistor +1.40 2007-03-23 (hv) fix bug with \@empty in the psset part +1.39 2005-04-03 (hv) fixed introduced bug in wire +1.38 2005-03-07 (hv) added an option for the OA and some more + types for dipoles +1.37 2005-03-06 (hv) fix bug with wire and arrows +1.36 2005-02-14 (hv) add another zener symbol +1.35 2005-02-06 (hv) fix some bugs in the documentation +1.34 2004-12-31 (hv) new transistormacro +1.33 2004-12-28 (hv) fix bug for specialCoor in transistor +1.32 2004-12-28 (hv) make transistor changeLR option run +1.31 2004-12-27 (hv) make transistor run +1.30 2004-12-28 (hv) make option arrows=... available, but + transistor is broken for this version +1.22 2004-10-31 (hv) use pst-xkey instead of pst-key +1.21 2004-06-10 (hv) option for the logic symbol +1.20 2004-04-30 (hv) options for the logic part +1.2b 2003-08-30 (hv) new tripole potentiometer, + fixes some typos in the doc +1.2a 2003-08-28 (hv) added options for ground +1.2 2003-07-28 (hv) added dipolestyle "optoCoupler" and the logic part (Flip Flops) +1.1b 2003-07-24 (hv) added dipolestyle "triac" and use "rectangle" also for the + quadrupol transformer; added quadrupol optoCoupler +1.1a 2003-07-22 (hv) fix a bug with tension +1.1 2003-07-18 (hv) fix some bugs and added new dipolestyles for the diode/resistor +1.0 2003-07-10 (cj) first CTAN version + + +-- pst-circ.pro --- +0.01 2007-03-23 (hv) first version
\ No newline at end of file diff --git a/Master/texmf-dist/doc/generic/pst-circ/README b/Master/texmf-dist/doc/generic/pst-circ/README index 6c34f8ddf0d..40747e643f4 100644 --- a/Master/texmf-dist/doc/generic/pst-circ/README +++ b/Master/texmf-dist/doc/generic/pst-circ/README @@ -1,6 +1,42 @@ -Save the files pst-circ.sty|.tex in a directory, which is part of your +Save the files pst-circ.sty|tex in a directory, which is part of your local TeX tree. pst-circ.pro should be saved in ../texmf/dvips/pstricks/ Then do not forget to run texhash to update this tree. pst-circ needs pst-plot and pst-tricks, which should be part of your local TeX installation, otherwise get it from a CTAN server, f.ex. ftp://ftp.dante.de + + +Save the files + +pst-circ.sty +pst-circ.tex +pst-circ.pro + +in any place, where latex or any other TeX program will find it. +Do not forget to update your database, when installing this +package the first time. + +pst-circ 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-circ, which loads + the old keyval.sty or pst-key.tex + + +If you like to get the documentation file in another format run + +latex pst-circ-doc.tex +bibtex pst-circ.doc +latex pst-circ-doc.tex +dvips pst-circ-doc.dvi + +to get a PostScript file. But pay attention, that the pst-circ +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 Introduction from +the documentation. diff --git a/Master/texmf-dist/doc/generic/pst-circ/Version-1.21 b/Master/texmf-dist/doc/generic/pst-circ/Version-1.21 deleted file mode 100644 index e69de29bb2d..00000000000 --- a/Master/texmf-dist/doc/generic/pst-circ/Version-1.21 +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-circ/logic.ltx b/Master/texmf-dist/doc/generic/pst-circ/logic.ltx deleted file mode 100644 index 2427a21f7fa..00000000000 --- a/Master/texmf-dist/doc/generic/pst-circ/logic.ltx +++ /dev/null @@ -1,91 +0,0 @@ -\documentclass[11pt]{article} -\usepackage[a4paper,margin=1.5cm]{geometry} -\usepackage[baw,pstricks]{fvrb-ex} -\usepackage{pst-circ} -\usepackage{pstcol} -\usepackage{url} -\makeatletter -\def\@UrlFont{\small\ttfamily} -\renewenvironment{description} - {\list{}{\labelwidth\z@ \itemindent-\leftmargin - \itemsep0pt \parsep0pt - \let\makelabel\descriptionlabel}} - {\endlist} -\renewcommand{\Begin@Example}{% -\parindent=0pt -\multiply\topsep by 2 \VerbatimEnvironment -\begin{VerbatimOut}[codes={\catcode`\£=12\catcode`\/=12\catcode`\&=12% - \catcode`\"=12}]{\jobname.tmp}} -\renewcommand{\Below@Example}[1]{% -\VerbatimInput[gobble=0,commentchar=£,commandchars=/&",numbersep=3pt]% - {\jobname.tmp} -\catcode`\£=9\relax% -\NoHighlight@Attributes % To suppress possible highlighting -\ifFvrbEx@Grid\vspace{5pt}\fi -#1% -\ifFvrbEx@Grid\vspace{5pt}\fi -\par} -\renewcommand{\SideBySide@Example}[1]{% -\@tempdimb=\FV@XRightMargin \advance\@tempdimb -5mm -\begin{minipage}[c]{\@tempdimb} - \fvset{xrightmargin=0pt} - \catcode`\£=9\relax% - \NoHighlight@Attributes % To suppress possible highlighting - #1 -\end{minipage}% -\@tempdimb=\textwidth \advance\@tempdimb -\FV@XRightMargin \advance\@tempdimb 5mm -\begin{minipage}[c]{\@tempdimb} - \VerbatimInput[gobble=0,commentchar=£,commandchars=/&",numbersep=3pt, - xleftmargin=5mm,xrightmargin=0pt]{\jobname.tmp} -\end{minipage}} -% The \NoHighlight@Attributes from `hbaw' and `hcolors' packages -% must be modified too -\def\NoHighlight@Attributes{% -\catcode`\/=0\relax% -\catcode`\&=1\relax% -\catcode`\"=2\relax% -\def\HLa##1{##1}% -\def\HLb##1{##1}% -\def\HLc##1{##1}% -\def\HLd##1{##1}% -\def\HLe##1{##1}% -\def\HLf##1{##1}% -\def\HLBFa##1{##1}% -\def\HLBFb##1{##1}% -\def\HLBFc##1{##1}% -\def\HLBFd##1{##1}% -\def\HLBFe##1{##1}% -\def\HLBFf##1{##1}% -\def\HLITa##1{##1}% -\def\HLITb##1{##1}% -\def\HLITc##1{##1}% -\def\HLITd##1{##1}% -\def\HLITe##1{##1}% -\def\HLITf##1{##1}% -\def\HLCBBa##1{##1}% -\def\HLCBBb##1{##1}% -\def\HLCBBc##1{##1}% -\def\HLCBBd##1{##1}% -\def\HLCBBe##1{##1}% -\def\HLCBBf##1{##1}% -\def\HLCBBz##1{##1}% -\def\HLCBWa##1{##1}% -\def\HLCBWb##1{##1}% -\def\HLCBWc##1{##1}% -\def\HLCBWd##1{##1}% -\def\HLCBWe##1{##1}% -\def\HLCBWf##1{##1}% -\def\HLCBWz##1{##1}% -} -\makeatother -\fvset{numbers=none,frame=single,labelposition=topline} -\DeclareRobustCommand\cs[1]{\texttt{\char`\\#1}} -\newcommand{\CircPackage}{\textbf{`pst-circ'}} -\usepackage{fancyhdr} -\lhead{\CircPackage}\rhead{A PSTricks package for drawing electric circuits} -\pagestyle{fancy} -% -\begin{document} -\input logic -\end{document} - diff --git a/Master/texmf-dist/doc/generic/pst-circ/logic.pdf b/Master/texmf-dist/doc/generic/pst-circ/logic.pdf Binary files differdeleted file mode 100644 index 0a813ef62ba..00000000000 --- a/Master/texmf-dist/doc/generic/pst-circ/logic.pdf +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-circ/logic.tex b/Master/texmf-dist/doc/generic/pst-circ/logic.tex deleted file mode 100644 index ba2d7cb84f7..00000000000 --- a/Master/texmf-dist/doc/generic/pst-circ/logic.tex +++ /dev/null @@ -1,436 +0,0 @@ -\section{Flip Flops} - -The syntax for all logical base circuits is -\begin{verbatim} -logic[<options>](<originX,originY>){Label} -\end{verbatim} - -\noindent where the options and the origin are optional. If they are missing, -then the default options, described in the next section and the default -origin $(0,0)$ is used. The origin specifies the lower left corner -of the logical circuit. - -\begin{verbatim} -logic{Demo} -logic[logicType=and]{Demo} -logic(0,0){Demo} -logic[logicType=and](0,0){Demo} -\end{verbatim} - -The above four ,,different`` calls of the \verb|logic| macro give the -same output, because they are equivalent. - -\subsection{The Options} - -\begin{description} -\item[\HLTTc{logicShowNode} (boolean):] (\emph{default:~false}) -\item[\HLTTc{logicShowDot} (boolean):] (\emph{default:~false}) -\item[\HLTTc{logicNodestyle} (command):] (\emph{default:~\textbackslash footnotesize}) -\item[\HLTTc{logicSymbolstyle} (command):] (\emph{default:~\textbackslash large}) -\item[\HLTTc{logicSymbolpos} (value):] (\emph{default:~0.5}) -\item[\HLTTc{logicLabelstyle} (command):] (\emph{default:~\textbackslash small}) -\item[\HLTTc{logicType} (string):] (\emph{default:~and}) -\item[\HLTTc{logicChangeLR} (boolean):] (\emph{default:~false}) -\item[\HLTTc{logicWidth} (length):] (\emph{default:~1.5}) -\item[\HLTTc{logicHeight} (length):] (\emph{default:~2.5}) -\item[\HLTTc{logicWireLength} (length):] (\emph{default:~0.5}) -\item[\HLTTc{logicNInput} (number):] (\emph{default:~2}) -\item[\HLTTc{logicJInput} (number):] (\emph{default:~2}) -\item[\HLTTc{logicKInput} (number):] (\emph{default:~2}) -\end{description} - -\subsection{Basic Logical Circuits} -At least the basic objects require a unique label name, otherwise it is -not sure, that all nodes will work well. The label may contain any -alphanumerical character and most of all symbols. But it is save -using only combinations of letters and digits. For example: -\begin{verbatim} -And0 -a0 -a123 -12 -NOT123a -\end{verbatim} - -\verb|A_1| is not a good choice, the underscore may causes some -problems. - -\subsubsection{And} - -\psset{subgriddiv=0,griddots=5,gridlabels=7pt} -\begin{PSideBySideExample}[xrightmargin=4.5cm](3,3) - \begin{pspicture}(-1,0)(3,3) - \psgrid - \logic{AND1} - \end{pspicture} -\end{PSideBySideExample} - -\begin{PSideBySideExample}[xrightmargin=4.5cm](3,3) - \begin{pspicture}(-0.5,0)(3,3) - \logic[/HLCBWz&logicChangeLR"=true]{AND2} - \end{pspicture} -\end{PSideBySideExample} - -\begin{PSideBySideExample}[xrightmargin=4.5cm](4,6) - \begin{pspicture}(-0.5,0)(4,5) - \psgrid - \logic[/HLCBWz&logicShowNode"=true,% - /HLCBWz&logicWidth"=2,% - /HLCBWz&logicHeight"=4,% - /HLCBWz&logicNInput"=6,% - logicChangeLR=true](1,1){AND3} - \end{pspicture} -\end{PSideBySideExample} - -\subsubsection{NotAnd} -\begin{PSideBySideExample}[xrightmargin=4.5cm](3,3) - \begin{pspicture}(-0.5,0)(3,3) - \logic[logicType=/HLCBWz&nand",% - logicShowNode=true]{NAND1} - \end{pspicture} -\end{PSideBySideExample} - - -\begin{PSideBySideExample}[xrightmargin=4.5cm](3,3) - \begin{pspicture}(-0.5,0)(3,3) - \logic[logicType=nand,% - logicChangeLR=true]{NAND2} - \end{pspicture} -\end{PSideBySideExample} - -\begin{PSideBySideExample}[xrightmargin=4.5cm](4,6) - \begin{pspicture}(4,5) - \psgrid - \logic[logicType=nand,% - logicShowNode=true,% - logicWidth=2,% - logicHeight=4,% - /HLCBWz&logicNInput"=6,% - logicChangeLR=true](1,1){NAND3} - \end{pspicture} -\end{PSideBySideExample} - -\subsubsection{Or} -\begin{PSideBySideExample}[xrightmargin=4.5cm](3,3) - \begin{pspicture}(-0.5,0)(3,3) - \logic[logicType=/HLCBWz&or",% - logicShowNode=true]{OR1} - \end{pspicture} -\end{PSideBySideExample} - - -\begin{PSideBySideExample}[xrightmargin=4.5cm](3,3) - \begin{pspicture}(-0.5,0)(3,3) - \logic[logicType=or,% - logicChangeLR=true]{OR2} - \end{pspicture} -\end{PSideBySideExample} - - -\begin{PSideBySideExample}[xrightmargin=4.5cm](4,6) - \begin{pspicture}(4,5) - \psgrid - \logic[logicType=or,% - logicShowNode=true,% - logicWidth=2,% - logicHeight=4,% - logicNInput=6,% - logicChangeLR=true](1,1){OR3} - \end{pspicture} -\end{PSideBySideExample} - -\subsubsection{Not Or} - -\begin{PSideBySideExample}[xrightmargin=4.5cm](3,3) - \begin{pspicture}(-0.5,0)(3,3) - \logic[logicType=/HLCBWz&nor",% - logicShowNode=true]{NOR1} - \end{pspicture} -\end{PSideBySideExample} - - -\begin{PSideBySideExample}[xrightmargin=4.5cm](3,3) - \begin{pspicture}(-0.5,0)(3,3) - \logic[logicType=nor,% - logicChangeLR=true]{NOR2} - \end{pspicture} -\end{PSideBySideExample} - -\begin{PSideBySideExample}[xrightmargin=4.5cm](4,6) - \begin{pspicture}(4,5) - \psgrid - \logic[logicType=nor,% - logicShowNode=true,% - logicWidth=2,% - logicHeight=4,% - logicNInput=6,% - logicChangeLR=true](1,1){NOR3} - \end{pspicture} -\end{PSideBySideExample} - - -\subsubsection{Not} - -\begin{PSideBySideExample}[xrightmargin=4.5cm](3,3) - \begin{pspicture}(-0.5,0)(3,3) - \logic[logicType=/HLCBWz¬",% - logicShowNode=true]{NOT1} - \end{pspicture} -\end{PSideBySideExample} - - -\begin{PSideBySideExample}[xrightmargin=4.5cm](3,3) - \begin{pspicture}(-0.5,0)(3,3) - \logic[logicType=not,% - logicChangeLR=true]{NOT2} - \end{pspicture} -\end{PSideBySideExample} - -\begin{PSideBySideExample}[xrightmargin=4.5cm](4,6) - \begin{pspicture}(4,5) - \psgrid - \logic[logicType=not,% - logicShowNode=true,% - logicWidth=2,% - logicHeight=4,% - logicChangeLR=true](1,1){NOT3} - \end{pspicture} -\end{PSideBySideExample} - -\subsubsection{Exclusive OR} - -\begin{PSideBySideExample}[xrightmargin=4.5cm](3,3) - \begin{pspicture}(-0.5,0)(3,3) - \logic[logicType=/HLCBWz&exor",% - logicShowNode=true]{ExOR1} - \end{pspicture} -\end{PSideBySideExample} - - -\begin{PSideBySideExample}[xrightmargin=4.5cm](3,3) - \begin{pspicture}(-0.5,0)(3,3) - \logic[logicType=exor,% - logicChangeLR=true]{ExOR2} - \end{pspicture} -\end{PSideBySideExample} - -\begin{PSideBySideExample}[xrightmargin=4.5cm](4,6) - \begin{pspicture}(4,5) - \psgrid - \logic[logicType=exor,% - logicShowNode=true,% - logicNInput=6,% - logicWidth=2,% - logicHeight=4,% - logicChangeLR=true](1,1){ExOR3} - \end{pspicture} -\end{PSideBySideExample} - - - -\subsubsection{Exclusive NOR} - -\begin{PSideBySideExample}[xrightmargin=4.5cm](3,3) - \begin{pspicture}(-0.5,0)(3,3) - \logic[logicType=/HLCBWz&exnor",% - logicShowNode=true]{ExNOR1} - \end{pspicture} -\end{PSideBySideExample} - - -\begin{PSideBySideExample}[xrightmargin=4.5cm](3,3) - \begin{pspicture}(-0.5,0)(3,3) - \logic[logicType=exnor,% - logicChangeLR=true]{ExNOR2} - \end{pspicture} -\end{PSideBySideExample} - -\begin{PSideBySideExample}[xrightmargin=4.5cm](4,6) - \begin{pspicture}(4,5) - \psgrid - \logic[logicType=exnor,% - logicShowNode=true,% - logicNInput=6,% - logicWidth=2,% - logicHeight=4,% - logicChangeLR=true](1,1){ExNOR3} - \end{pspicture} -\end{PSideBySideExample} - - -\subsection{RS Flip Flop} - -\begin{PSideBySideExample}[xrightmargin=4.5cm](3,4.5) - \begin{pspicture}(-1,-1)(3,3) - \logic[logicShowNode=true,% - logicType=/HLCBWz&RS"]{RS1} - \end{pspicture} -\end{PSideBySideExample} - - -\begin{PSideBySideExample}[xrightmargin=4.5cm](3,4.5) - \begin{pspicture}(-1,-1)(3,3) - \logic[logicShowNode=true,% - logicType=RS,% - logicChangeLR=true]{RS2} - \end{pspicture} -\end{PSideBySideExample} - - -\subsection{D Flip Flop} - -\begin{PSideBySideExample}[xrightmargin=4.5cm](3,4.5) - \begin{pspicture}(-1,-1)(3,3) - \logic[logicShowNode=true,% - logicType=/HLCBWz&D"]{D1} - \end{pspicture} -\end{PSideBySideExample} - -\begin{PSideBySideExample}[xrightmargin=4.5cm](3,4.5) - \begin{pspicture}(-1,-1)(3,3) - \logic[logicShowNode=true,% - logicType=D,% - logicChangeLR=true]{D2} - \end{pspicture} -\end{PSideBySideExample} - - -\subsection{JK Flip Flop} -\begin{PSideBySideExample}[xrightmargin=4.5cm](3,4.5) - \begin{pspicture}(-1,-1)(3,3) - \logic[logicShowNode=true,% - logicType=/HLCBWz&JK",% - /HLCBWz&logicKInput"=2,% - /HLCBWz&logicJInput"=2]{JK1} - \end{pspicture} -\end{PSideBySideExample} - -\begin{PSideBySideExample}[xrightmargin=4.5cm](3,4.5) - \begin{pspicture}(-1,-1)(3,3) - \logic[logicShowNode=true,% - logicType=JK,% - logicKInput=2, logicJInput=4,% - logicChangeLR=true]{JK2} - \end{pspicture} -\end{PSideBySideExample} - -\subsection{Other Options} - -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,3) - \begin{pspicture}(-0.5,0)(3,2.5) - \logic[/HLCBWz&logicShowDot"=true]{A0} - \end{pspicture} -\end{PSideBySideExample} - -\begin{PSideBySideExample}[xrightmargin=4.5cm](4,3) - \begin{pspicture}(-1,0)(3,2.5) - \logic[/HLCBWz&logicWireLength"=1,% - logicShowDot=true]{A1} - \end{pspicture} -\end{PSideBySideExample} - -\bigskip -The unit of \verb|logicWireLength| is the same than the actual one for pstricks, set by -the \verb|unit| option. - -\subsection{The Node Names} -Every logic circuit is defined with its name, which should be a unique one. -If we have the following NAND circuit, then \verb|pst-circ| defines the nodes -\begin{verbatim} -NAND11, NAND12, NAND13, NAND14, NAND1Q -\end{verbatim} - -\noindent If there exists an inverted output, like for alle Flip Flops, -then the negated one gets the appendix \verb|neg| to the node name. For -example: -\begin{verbatim} -NAND1Q, NAND1Qneg -\end{verbatim} - -\begin{PSideBySideExample}[xrightmargin=3cm](3,3.5) - \begin{pspicture}(-0.5,0)(2.5,3) - \logic[/HLCBWz&logicShowNode"=true,% - /HLCBWz&logicLabelstyle"=\footnotesize,% - /HLCBWz&logicType"=nand,% - /HLCBWz&logicNInput"=4]{NAND1} - \multido{\n=1+1}{4}{% - \pscircle*[linecolor=red](NAND1\n){2pt}% - } - \pscircle*[linecolor=blue](NAND1Q){2pt} - \end{pspicture} -\end{PSideBySideExample} - -\vspace{0.5cm} -Now it is possible to draw a line from the output to the input - -\begin{verbatim} -\ncbar[angleA=0,angleB=180]{<Node A>}{<Node B>} -\end{verbatim} - -It may be easier to print a grid since the drawing phase and then comment it out if -all is finished. - -\bigskip -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,3.5) - \begin{pspicture}(-1,-1)(2.5,3) - \logic[/HLCBWz&logicShowNode"=true,% - logicLabelstyle=\footnotesize,% - logicType=nand,% - /HLCBWz&logicWireLength"=1,% - /HLCBWz&logicNInput"=4]{NAND1} - \pnode(-0.5,0|NAND11){tempA} - \pnode(2,0|NAND1Q){tempB} - \end{pspicture} - \ncbar[angleA=-90,angleB=0,arm=0.75,% - arrows=*-*, dotsize=0.15]{tempA}{tempB} -\end{PSideBySideExample} - -\subsection{Examples} - -\begin{CenterExample} - \begin{pspicture}(-1,0)(5,5) - \psgrid - \psset{logicType=nor, logicLabelstyle=\normalsize,% - logicWidth=1, logicHeight=1.5, dotsize=0.15} - \logic(1.5,0){nor1} - \logic(1.5,3){nor2} - \psline(nor2Q)(4,0|nor2Q) - \uput[0](4,0|nor2Q){$Q$} - \psline(nor1Q)(4,0|nor1Q) - \uput[0](4,0|nor1Q){$\overline{Q}$} - \psline{*-}(3.50,0|nor2Q)(3.5,2.5)(1.5,2.5) - (0.5,1.75)(0.5,0|nor12)(nor12) - \psline{*-}(3.50,0|nor1Q)(3.5,2)(1.5,2) - (0.5,2.5)(0.5,0|nor21)(nor21) - \psline(0,0|nor11)(nor11)\uput[180](0,0|nor11){R} - \psline(0,0|nor22)(nor22)\uput[180](0,0|nor22){S} - \end{pspicture} -\end{CenterExample} - -\bigskip -\begin{CenterExample} - \begin{pspicture}(-4,0)(5,7) - \psgrid - \psset{logicWidth=1, logicHeight=2, dotsize=0.15} - \logic[logicWireLength=0](-2,0){A0} - \logic[logicWireLength=0](-2,5){A1} - \ncbar[angleA=-180,angleB=-180,arm=0.5]{A11}{A02} - \psline[dotsize=0.15]{-*}(-3.5,3.5)(-2.5,3.5) - \uput[180](-3.5,3.5){$T$} - \psline(-3.5,0.5)(A01)\uput[180](-3.5,0.5){$S$} - \psline(-3.5,6.5)(A12)\uput[180](-3.5,6.5){$R$} - \psset{logicType=nor, logicLabelstyle=\normalsize} - \logic(1,0.5){nor1} - \logic(1,4.5){nor2} - \psline(nor2Q)(4,0|nor2Q) - \uput[0](4,0|nor2Q){$Q$} - \psline(nor1Q)(4,0|nor1Q) - \uput[0](4,0|nor1Q){$\overline{Q}$} - \psline{*-}(3,0|nor2Q)(3,4)(1,4)(0,3)(0,0|nor12)(nor12) - \psline{*-}(3,0|nor1Q)(3,3)(1,3)(0,4)(0,0|nor21)(nor21) - \psline(A0Q)(nor11) - \psline(A1Q)(nor22) - \end{pspicture} -\end{CenterExample} - -\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/generic/pst-circ/poti.pdf b/Master/texmf-dist/doc/generic/pst-circ/poti.pdf Binary files differdeleted file mode 100644 index 7cbeb47e31c..00000000000 --- a/Master/texmf-dist/doc/generic/pst-circ/poti.pdf +++ /dev/null diff --git a/Master/texmf-dist/doc/generic/pst-circ/poti.tex b/Master/texmf-dist/doc/generic/pst-circ/poti.tex deleted file mode 100644 index bd93942a9b8..00000000000 --- a/Master/texmf-dist/doc/generic/pst-circ/poti.tex +++ /dev/null @@ -1,81 +0,0 @@ -\documentclass[a4paper,12pt]{article} -\usepackage{pst-circ} -\begin{document} -\section*{Potentiometer tripole} - -\psset{griddots=5,gridlabels=7pt,subgriddiv=0} -\begin{pspicture}(3,3) - \psgrid - \pnode(0,1){A} - \pnode(3,1){B} - \pnode(3,2){C} - \potentiometer[labeloffset=0pt](A)(B)(C){P} -\end{pspicture} -\hfill -\begin{pspicture}(3,3) - \psgrid - \pnode(0,2.5){A} - \pnode(3,2.5){B} - \pnode(0,1){C} - \potentiometer[labeloffset=0pt](A)(B)(C){P} -\end{pspicture} -\hfill -\begin{pspicture}(3,3) - \psgrid - \pnode(0,0){A} - \pnode(3,2){B} - \pnode(2.5,3){C} - \potentiometer[labeloffset=0pt,labelangle=:U](A)(B)(C){P} -\end{pspicture} - -\vspace{1cm} -\begin{pspicture}(3,3) - \psgrid - \pnode(1,0){A} - \pnode(1,3){B} - \pnode(2.5,0){C} - \potentiometer[labeloffset=0pt](A)(B)(C){P} -\end{pspicture} -\hfill -\begin{pspicture}(3,3) - \psgrid - \pnode(0,3){A} - \pnode(3,0){B} - \pnode(2,0){C} - \potentiometer[labeloffset=0pt,labelangle=:U](A)(B)(C){P} -\end{pspicture} -\hfill -\begin{pspicture}(3,3) - \psgrid - \pnode(0,2){A} - \pnode(3,2){B} - \pnode(1.5,0){C} - \potentiometer[labeloffset=0pt](A)(B)(C){P} -\end{pspicture} - - -\vspace{1cm} -\begin{pspicture}(3,3) - \psgrid - \pnode(1,0){A} - \pnode(1,3){B} - \pnode(2.5,0){C} - \potentiometer[dipolestyle=zigzag](A)(B)(C){P} -\end{pspicture} -\hfill -\begin{pspicture}(3,3) - \psgrid - \pnode(0,3){A} - \pnode(3,0){B} - \pnode(2,0){C} - \potentiometer[dipolestyle=zigzag,labelangle=:U](A)(B)(C){P} -\end{pspicture} -\hfill -\begin{pspicture}(3,3) - \psgrid - \pnode(0,2){A} - \pnode(3,2){B} - \pnode(1.5,0){C} - \potentiometer[dipolestyle=zigzag](A)(B)(C){P} -\end{pspicture} -\end{document} diff --git a/Master/texmf-dist/doc/generic/pst-circ/pst-circ-doc.bib b/Master/texmf-dist/doc/generic/pst-circ/pst-circ-doc.bib new file mode 100644 index 00000000000..3b785845e22 --- /dev/null +++ b/Master/texmf-dist/doc/generic/pst-circ/pst-circ-doc.bib @@ -0,0 +1,129 @@ +@STRING{dtk = {{D}ie {\TeX}nische {K}om{\"o}die} } + +@Book{PostScript, + Author = {Kollock, Nikolai G.}, + Title = {PostScript richtig eingesetzt: vom Konzept zum + praktischen Einsatz}, + Publisher = {IWT}, + Address = {Vaterstetten}, + year = 1989, +} + +@Manual{pstricks, + Title = {PSTricks - {\PS} macros for Generic TeX}, + Author = {Timothy Van Zandt}, + Organization = {}, + Address = {\url{http://www.tug.org/application/PSTricks}}, + Note = {}, + year = 1993, +} + + +@Manual{pdftricks, + Title = {PSTricks Support for pdf}, + Author = {Herbert Voss}, + Organization = {}, + Address = {\url{http://PSTricks.de/pdf/pdfoutput.phtml}}, + Note = {}, + year = 2002, +} + +@Manual{miwi, + Title = {References for \TeX{} and Friends}, + Author = {Michael Wiedmann and Peter Karp}, + Organization = {}, + Address = {\url{http://www.miwie.org/tex-refs/}}, + Note = {}, + year = 2003, +} + + +@Manual{pstlens:2001, + Title = {PST-lens - {\PS} macros for Generic TeX}, + Author = {Denis Girou and Manuel Luque}, + Organization = {}, + Address = {\url{ftp://ftp.dante.de/tex-archive/graphics/pstricks/contrib/pst-lens/}}, + Note = {}, + year = 2001, +} + +@Manual{vue3d:2002, + Title = {Vue en 3D}, + Author = {Manuel Luque}, + Organization = {}, + Address = {\url{http://members.aol.com/Mluque5130/vue3d16112002.zip}}, + Note = {}, + year = 2002, +} + +@Article{dtk02.2:jackson.voss:plot-funktionen, + author = {Laura E. Jackson and Herbert Vo{\ss}}, + title = {Die {P}lot-{F}unktionen von {\texttt{pst-plot}}}, + journal = dtk, + year = 2002, + volume = {2/02}, + altvolume = 2, + altnumber = 14, + month = jun, + pages = {27--34}, + annote = bretter, + keywords = {}, + abstract = { Im letzten Heft wurden die mathematischen Funktionen von + \PS~im Zusammenhang mit dem {\LaTeX}-Paket + \texttt{pst-plot} zum Zeichnen von Funktionen beschrieben + und durch Beispiele erl{\"a}utert. In diesem Teil werden + die bislang nur erw{\"a}hnten Plot-Funktionen f{\"u}r + externe Daten behandelt. } +} + +@Article{dtk02.1:voss:mathematischen, + author = {Herbert Vo{\ss}}, + title = {Die mathematischen {F}unktionen von {P}ostscript}, + journal = dtk, + year = 2002, + volume = {1/02}, + altvolume = 1, + altnumber = 14, + month = mar, + pages = {40-47}, + annote = bretter, + keywords = {}, + abstract = { \PS, faktisch genauso alt wie {\TeX}, ist im + Verh{\"a}ltnis dazu allgemein noch weniger bekannt, wenn es + darum geht zu beurteilen, was es denn nun im eigentlichen + Sinne ist. Au{\ss}erdem wird h{\"a}ufig vergessen, dass + sich mit den \PS-Funktionen viele Dinge erledigen lassen, + bei denen sonst auf externe Programme zur{\"u}ckgegriffen + wird. Dies wird im Folgenden f{\"u}r die mathematischen + Funktionen im Zusammenhang mit dem Paket \texttt{pst-plot} + gezeigt. } +} + + +@Book{companion, + author = {Michel Goosens and Frank Mittelbach and Alexander + Samarin}, + title = {The {\LaTeX} {G}raphics {C}ompanion}, + publisher = {{Addison-Wesley Publishing Company}}, + year = {2004}, + edition = {2.}, + address = {Reading, Mass.} +} + +@Book{PSTricks2, + author = {Herbert Vo\ss}, + title = {\texttt{PSTricks} -- {G}rafik f\"ur \TeX{} und \LaTeX}, + edition = {4.}, + publisher = {DANTE -- Lehmanns}, + year = {2007}, + address = {Heidelberg/Hamburg} +} + +@Book{voss:math, + author = {Herbert Vo\ss}, + title = {\LaTeX\ in {M}athematik und {N}aturwissenschaften}, + publisher = {{Franzis-Verlag}}, + year = {2006}, + address = {Poing} +} + diff --git a/Master/texmf-dist/doc/generic/pst-circ/pst-circ-doc.pdf b/Master/texmf-dist/doc/generic/pst-circ/pst-circ-doc.pdf Binary files differindex aa74333ac9b..45e9b7e2c46 100644 --- a/Master/texmf-dist/doc/generic/pst-circ/pst-circ-doc.pdf +++ b/Master/texmf-dist/doc/generic/pst-circ/pst-circ-doc.pdf diff --git a/Master/texmf-dist/doc/generic/pst-circ/pst-circ-doc.tex b/Master/texmf-dist/doc/generic/pst-circ/pst-circ-doc.tex index 09dba0a68ce..82304a8ba41 100644 --- a/Master/texmf-dist/doc/generic/pst-circ/pst-circ-doc.tex +++ b/Master/texmf-dist/doc/generic/pst-circ/pst-circ-doc.tex @@ -1,12 +1,15 @@ +\listfiles \documentclass{article} - -\usepackage{multicol} -\usepackage[a4paper,margin=1.5cm]{geometry} +\usepackage[a4paper]{geometry} \usepackage{fancyhdr} -\usepackage[baw,pstricks]{fvrb-ex} -\usepackage{pst-circ} -\usepackage{pstcol} \usepackage{url} +% +\usepackage{pst-all} +\usepackage{pst-circ} +\let\verPstCirc\fileversion +\usepackage{multicol} +\usepackage{showexpl} +% \makeatletter \def\@UrlFont{\small\ttfamily} \renewenvironment{description} @@ -15,106 +18,31 @@ \let\makelabel\descriptionlabel}} {\endlist} -\renewcommand{\Begin@Example}{% -\parindent=0pt -\multiply\topsep by 2 \VerbatimEnvironment -\begin{VerbatimOut}[codes={\catcode`\£=12\catcode`\/=12\catcode`\&=12% - \catcode`\"=12}]{\jobname.tmp}} - -\renewcommand{\Below@Example}[1]{% -\VerbatimInput[gobble=0,commentchar=£,commandchars=/&",numbersep=3pt]% - {\jobname.tmp} -\catcode`\£=9\relax% -\NoHighlight@Attributes % To suppress possible highlighting -\ifFvrbEx@Grid\vspace{5pt}\fi -#1% -\ifFvrbEx@Grid\vspace{5pt}\fi -\par} - -\renewcommand{\SideBySide@Example}[1]{% -\@tempdimb=\FV@XRightMargin \advance\@tempdimb -5mm -\begin{minipage}[c]{\@tempdimb} - \fvset{xrightmargin=0pt} - \catcode`\£=9\relax% - \NoHighlight@Attributes % To suppress possible highlighting - #1 -\end{minipage}% -\@tempdimb=\textwidth \advance\@tempdimb -\FV@XRightMargin \advance\@tempdimb 5mm -\begin{minipage}[c]{\@tempdimb} - \VerbatimInput[gobble=0,commentchar=£,commandchars=/&",numbersep=3pt, - xleftmargin=5mm,xrightmargin=0pt]{\jobname.tmp} -\end{minipage}} -% The \NoHighlight@Attributes from `hbaw' and `hcolors' packages -% must be modified too -\def\NoHighlight@Attributes{% -\catcode`\/=0\relax% -\catcode`\&=1\relax% -\catcode`\"=2\relax% -\def\HLa##1{##1}% -\def\HLb##1{##1}% -\def\HLc##1{##1}% -\def\HLd##1{##1}% -\def\HLe##1{##1}% -\def\HLf##1{##1}% -\def\HLBFa##1{##1}% -\def\HLBFb##1{##1}% -\def\HLBFc##1{##1}% -\def\HLBFd##1{##1}% -\def\HLBFe##1{##1}% -\def\HLBFf##1{##1}% -\def\HLITa##1{##1}% -\def\HLITb##1{##1}% -\def\HLITc##1{##1}% -\def\HLITd##1{##1}% -\def\HLITe##1{##1}% -\def\HLITf##1{##1}% -\def\HLCBBa##1{##1}% -\def\HLCBBb##1{##1}% -\def\HLCBBc##1{##1}% -\def\HLCBBd##1{##1}% -\def\HLCBBe##1{##1}% -\def\HLCBBf##1{##1}% -\def\HLCBBz##1{##1}% -\def\HLCBWa##1{##1}% -\def\HLCBWb##1{##1}% -\def\HLCBWc##1{##1}% -\def\HLCBWd##1{##1}% -\def\HLCBWe##1{##1}% -\def\HLCBWf##1{##1}% -\def\HLCBWz##1{##1}% -} - -\makeatother - -\fvset{numbers=none,frame=single,labelposition=topline} - \DeclareRobustCommand\cs[1]{\texttt{\char`\\#1}} - -\newcommand{\CircPackage}{\textbf{`pst-circ'}} +\def\PS{PostScript} +\newcommand{\CircPackage}{\textsf{`pst-circ'}} \lhead{\CircPackage}\rhead{A PSTricks package for drawing electric circuits} \pagestyle{fancy} -\psset{subgriddiv=0,griddots=5,gridlabels=7pt}% -\showgrid +\psset{subgriddiv=0,griddots=10,gridlabels=7pt}% +%\showgrid \usepackage[colorlinks,linktocpage]{hyperref} \begin{document} -\title{\CircPackage\\ A PSTricks package for drawing electric circuits\\\normalsize ver. 1.2b} -\author{{Christophe \textsc{Jorssen} \url{<christophe.jorssen@noos.fr>}}\\ -Herbert \textsc{Voss} \url{<voss@perce.de>}} -\date{28 August 2003} +\title{\texttt{pst-circ}\\ A PSTricks package for drawing electric circuits\\\normalsize ver. \verPstCirc} +\author{Christophe Jorssen\thanks{\url{<christophe.jorssen@noos.fr>}} and +Herbert Vo\ss\thanks{\url{<voss@PSTricks.de>}}} +\date{\today} \maketitle -\begin{center} -\psframebox[framearc=0.3,framesep=5mm,linewidth=.7mm]{% -\parbox{15cm}{% -{\textbf{Abstract:} \CircPackage{} is a PSTricks package to draw easily electric circuits. Most +\begin{abstract} +\CircPackage{} is a PSTricks package to draw easily electric circuits. Most dipoles, tripoles and quadrupoles used in classical electrotechnical circuits are provided as graphical units which can readily be -interconnectedd to produce circuit diagrams of a reasonable level of complexity}}} -\end{center} +interconnectedd to produce circuit diagrams of a reasonable level of complexity. +\end{abstract} \setlength{\columnseprule}{0.6pt} \begin{multicols}{2} @@ -140,16 +68,17 @@ out the underlying vector graphics. There are specific paramaters defined to change easily the behaviour of the pst-circ objects you are drawing. +\let\HLTTc\textsf %\begin{multicols}{2} \begin{description} \item[\HLTTc{intensity} (boolean):] (\emph{default:~false}) -\item[\HLTTc{intensitylabel} (string):] (\emph{default:~\texttt{\cs{empty}}}) +\item[\HLTTc{intensitylabel} (string):] (\emph{default:~}) \item[\HLTTc{intensitylabeloffset} (dimension):] (\emph{default:~0.5}) \item[\HLTTc{intensitycolor} (PSTricks color):] (\emph{default:~black}) \item[\HLTTc{intensitylabelcolor} (PSTricks color):] (\emph{default:~black}) \item[\HLTTc{intensitywidth} (dimension):] (\emph{default:~\texttt{\cs{pslinewidth}}}) \item[\HLTTc{tension} (boolean):] (\emph{default:~false}) -\item[\HLTTc{tensionlabel} (string):] (\emph{default:~\texttt{\cs{empty}}}) +\item[\HLTTc{tensionlabel} (string):] (\emph{default:~}) \item[\HLTTc{tensionoffset} (dimension):] (\emph{default:~1}) \item[\HLTTc{tensionlabeloffset} (dimension):] (\emph{default:~1.2}) \item[\HLTTc{tensioncolor} (PSTricks color):] (\emph{default:~black}) @@ -157,6 +86,7 @@ objects you are drawing. \item[\HLTTc{tensionwidth} (dimension):] (\emph{default:~\texttt{\cs{pslinewidth}}}) \item[\HLTTc{labeloffset} (dimension):] (\emph{default:~0.7}) \item[\HLTTc{labelangle} (PSTricks label angle):] (\emph{default:~0}) +\item[\HLTTc{labelInside} (integer):] (\emph{default:~0}) \item[\HLTTc{dipoleconvention}:] (\emph{default:~receptor}) \item[\HLTTc{directconvetion} (boolean):] (\emph{default:~true}) \item[\HLTTc{dipolestyle} (string):] (\emph{default:~normal}) @@ -173,24 +103,27 @@ objects you are drawing. \item[\HLTTc{OAiplus} (boolean):] (\emph{default:~false}) \item[\HLTTc{OAiminus} (boolean):] (\emph{default:~false}) \item[\HLTTc{OAiout} (boolean):] (\emph{default:~false}) -\item[\HLTTc{OAipluslabel} (string):] (\emph{default:~\texttt{\cs{empty}}}) -\item[\HLTTc{OAiminuslabel} (string):] (\emph{default:~\texttt{\cs{empty}}}) -\item[\HLTTc{OAioutlabel} (string):] (\emph{default:~\texttt{\cs{empty}}}) +\item[\HLTTc{OAipluslabel} (string):] (\emph{default:~}) +\item[\HLTTc{OAiminuslabel} (string):] (\emph{default:~}) +\item[\HLTTc{OAioutlabel} (string):] (\emph{default:~}) \item[\HLTTc{transistorcircle} (boolean):] (\emph{default:~true}) \item[\HLTTc{transistorinvert} (boolean):] (\emph{default:~false}) \item[\HLTTc{transistoribase} (boolean):] (\emph{default:~false}) \item[\HLTTc{transistoricollector} (boolean):] (\emph{default:~false}) \item[\HLTTc{transistoriemitter} (boolean):] (\emph{default:~false}) -\item[\HLTTc{transistoribaselabel} (string):] (\emph{default:~\texttt{\cs{empty}}}) -\item[\HLTTc{transistoricollectorlabel} (string):] (\emph{default:~\texttt{\cs{empty}}}) -\item[\HLTTc{transistoriemitterlabel} (string):] (\emph{default:~\texttt{\cs{empty}}}) +\item[\HLTTc{transistoribaselabel} (string):] (\emph{default:~}) +\item[\HLTTc{transistoricollectorlabel} (string):] (\emph{default:~}) +\item[\HLTTc{transistoriemitterlabel} (string):] (\emph{default:~}) +\item[\HLTTc{TRot} (angle):] (\emph{default:~0}) +\item[\HLTTc{edge} (macro):] (\emph{default:~\texttt{\textbackslash ncangles}}) \item[\HLTTc{transistortype} (string):] (\emph{default:~PNP}) -\item[\HLTTc{primarylabel} (string):] (\emph{default:~\texttt{\cs{empty}}}) -\item[\HLTTc{secondarylabel} (string):] (\emph{default:~\texttt{\cs{empty}}}) +\item[\HLTTc{FETchanneltype} (string):] (\emph{default:~N}) +\item[\HLTTc{primarylabel} (string):] (\emph{default:~}) +\item[\HLTTc{secondarylabel} (string):] (\emph{default:~}) \item[\HLTTc{transformeriprimary} (boolean):] (\emph{default:~false}) \item[\HLTTc{transformerisecondary} (boolean):] (\emph{default:~false}) -\item[\HLTTc{transformeriprimarylabel} (string):] (\emph{default:~\texttt{\cs{empty}}}) -\item[\HLTTc{transformerisecondarylabel} (string):] (\emph{default:~\texttt{\cs{empty}}}) +\item[\HLTTc{transformeriprimarylabel} (string):] (\emph{default:~}) +\item[\HLTTc{transformerisecondarylabel} (string):] (\emph{default:~}) \item[\HLTTc{tripolestyle} (string):] (\emph{default:~normal}) \end{description} %\end{multicols} @@ -199,78 +132,111 @@ objects you are drawing. \subsection{Dipole macros} -\begin{PSideBySideExample}[xrightmargin=5.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid + \pnode(0,1){A} + \pnode(3,1){B} + \resistor(A)(B){$R$} +\end{pspicture} +\end{LTXexample} + +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,1){A} \pnode(3,1){B} - /HLCBWz&\resistor"(A)(B){$R$} -\end{PSideBySideExample} + \capacitor(A)(B){$C$} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=5.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,1){A} \pnode(3,1){B} - /HLCBWz&\capacitor"(A)(B){$C$} -\end{PSideBySideExample} + \battery(A)(B){$E$} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=5.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,1){A} \pnode(3,1){B} - /HLCBWz&\battery"(A)(B){$E$} -\end{PSideBySideExample} + \coil(A)(B){$L$} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=5.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,1){A} \pnode(3,1){B} - /HLCBWz&\coil"(A)(B){$L$} -\end{PSideBySideExample} + \Ucc(A)(B){$E$} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=5.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,1){A} \pnode(3,1){B} - /HLCBWz&\Ucc"(A)(B){$E$} -\end{PSideBySideExample} + \Icc(A)(B){$\eta$} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=5.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,1){A} \pnode(3,1){B} - /HLCBWz&\Icc"(A)(B){$\eta$} -\end{PSideBySideExample} + \switch(A)(B){$K$} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=5.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,1){A} \pnode(3,1){B} - /HLCBWz&\switch"(A)(B){$K$} -\end{PSideBySideExample} + \diode(A)(B){$D$} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=5.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,1){A} \pnode(3,1){B} - /HLCBWz&\diode"(A)(B){$D$} -\end{PSideBySideExample} + \Zener(A)(B){$D$} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=5.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,1){A} \pnode(3,1){B} - /HLCBWz&\Zener"(A)(B){$D$} -\end{PSideBySideExample} + \lamp(A)(B){$\mathcal L$} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=5.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,1){A} \pnode(3,1){B} - /HLCBWz&\lamp"(A)(B){$\mathcal L$} -\end{PSideBySideExample} + \circledipole(A)(B){$\mathcal G$} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=5.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}[showgrid=true](3,2) \pnode(0,1){A} \pnode(3,1){B} - /HLCBWz&\circledipole"(A)(B){$\mathcal G$} -\end{PSideBySideExample} + \circledipole[labeloffset=0](A)(B){\Large\textbf{A}} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=5.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,1){A} \pnode(3,1){B} - /HLCBWz&\LED"(A)(B){$\mathcal D$} -\end{PSideBySideExample} + \LED(A)(B){$\mathcal D$} +\end{pspicture} +\end{LTXexample} +\bigskip \subsection{Tripole macros} Obviously, tripoles are not node connections. So \CircPackage{} tries its best to adjust the @@ -280,471 +246,782 @@ well chosen\footnote{This is something we are working on. I think that auto-posi auto-connections should be done at PostScript level and not at PSTricks level. If someone has any ideas, please mail us.}, so don't try to use tripole macros in strange situations! -\begin{PSideBySideExample}[xrightmargin=5.5cm](5,3) + + +\begin{LTXexample}[width=5.5cm] +\begin{pspicture}(5,3)\psgrid \pnode(0,0){A} \pnode(0,3){B} \pnode(5,1.5){C} - /HLCBWz&\OA"(B)(A)(C) -\end{PSideBySideExample} + \OA(B)(A)(C) +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=5.5cm](5,3) - \pnode(0,1.5){A} - \pnode(5,3){B} - \pnode(5,0){C} - /HLCBWz&\transistor"(A)(B)(C) -\end{PSideBySideExample} +\begin{LTXexample}[width=5.5cm] +\begin{pspicture}(5,3)\psgrid + \pnode(0,0){A} + \pnode(0,3){B} + \pnode(5,1.5){C} + \OA[OApower=true](B)(A)(C) +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=5.5cm](5,3) +\begin{LTXexample}[width=5.5cm] +\begin{pspicture}(5,3)\psgrid + \pnode(0,1.5){A} + \pnode(5,0){B} + \pnode(5,3){C} + \transistor[basesep=2cm,arrows=o-o](A)(B)(C) +\end{pspicture} +\end{LTXexample} + +\begin{LTXexample}[width=5.5cm] +\begin{pspicture}(5,3)\psgrid + \pnode(0,1.5){A}\psset{linewidth=1pt} + \transistor[basesep=2cm,arrows=o-o](A){Emitter}{Collector} + \psline{o-}(5,3)(3,3)(3,3|Collector)(Collector) + \psline{o-}(5,0)(3,0)(3,3|Emitter)(Emitter) + \psline{o-}(A)([nodesep=2]A) +\end{pspicture} +\end{LTXexample} + +\begin{LTXexample}[width=5.5cm] +\begin{pspicture}(5,2)\psgrid \pnode(0,2){A} \pnode(5,2){B} \pnode(0,0){C} - /HLCBWz&\Tswitch"(A)(B)(C){$K$} -\end{PSideBySideExample} + \Tswitch(A)(B)(C){$K$} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,3) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,3)\psgrid \pnode(0,1){A} \pnode(3,1){B} \pnode(3,2.25){C} - /HLCBWz&\potentiometer"[labeloffset=0pt](A)(B)(C){$P$} -\end{PSideBySideExample} + \potentiometer[labeloffset=0pt](A)(B)(C){$P$} +\end{pspicture} +\end{LTXexample} +\bigskip \subsection{Quadrupole macros} -\begin{PSideBySideExample}[xrightmargin=5.5cm](5,5) +\begin{LTXexample}[width=5.5cm] +\begin{pspicture}(5,5)\psgrid \pnode(0,5){A} \pnode(0,0){B} \pnode(5,5){C} \pnode(5,0){D} - /HLCBWz&\transformer"(A)(B)(C)(D){$\mathcal T$} -\end{PSideBySideExample} + \transformer(A)(B)(C)(D){$\mathcal T$} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=4.5cm](4,3) +\begin{LTXexample}[width=5.5cm] +\begin{pspicture}(5,3)\psgrid \pnode(0,2.5){A} \pnode(0,0.5){B} \pnode(4,2.5){C} \pnode(4,0.5){D} - /HLCBWz&\optoCoupler"(A)(B)(C)(D){$OC$} -\end{PSideBySideExample} + \optoCoupler(A)(B)(C)(D){$OC$} +\end{pspicture} +\end{LTXexample} +\clearpage \subsection{Multidipole} - \cs{multidipole} is a macro that allows multiple dipoles to be drawn between two specified nodes. \cs{multidipole} takes as many arguments as you want. \textbf{Note the \rnode{Dot}{dot} that is after the last dipole.} -\def\HLrnode#1{\rnode{Dot2}{#1}} -\begin{PSideBySideExample}[xrightmargin=8.5cm](8,8) +\bigskip +\begin{minipage}{7cm} +\begin{pspicture}[showgrid=true](7,7) \pnode(0,0){A} - \pnode(8,8){B} - /HLCBWz&\multidipole"(A)(B)\resistor{$R$}% + \pnode(7,7){B} + \multidipole(A)(B)\resistor{$R$}% \capacitor[linecolor=red]{$C$}% - \diode{$D$}/HLrnode&/HLCBWz." -\end{PSideBySideExample} - + \diode{$D$}{}\rnode{Dot2}{}. +\end{pspicture} +\end{minipage}\hfill +\begin{minipage}{6cm} +\verb+\begin{pspicture}[showgrid=true](7,7)+\\ +\verb+ \pnode(0,0){A}+\\ +\verb+ \pnode(7,7){B}+\\ +\verb+ \multidipole(A)(B)\resistor{$R$}%+\\ +\verb+ \capacitor[linecolor=red]{$C$}%+\\ +\verb+ \diode{$D$}{}+\rnode{Dot2}{}.\\ +\verb+\end{pspicture}+ +\end{minipage} + +\bigskip \ncangles[linestyle=dashed,linecolor=gray,nodesep=3pt,armA=.5cm,angleA=-90,armB=4cm,angleB=0]{->}{Dot}{Dot2} Important: for the time being, \cs{multidipole} takes optional arguments but does not restore original values. We recommand not using it. +\bigskip \subsection{Wire} -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,1){A} \pnode(3,1){B} - /HLCBWz&\wire"(A)(B) -\end{PSideBySideExample} + \wire(A)(B) +\end{pspicture} +\end{LTXexample} +\bigskip \subsection{Potential} -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,1){A} \pnode(3,1){B} - /HLCBWz&\tension"(A)(B){$u$} -\end{PSideBySideExample} + \tension(A)(B){$u$} +\end{pspicture} +\end{LTXexample} +\bigskip \subsection{ground} -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0.5,1){A} \pnode(1,1){B} \pnode(2.5,1){C} - /HLCBWz&\ground"(A) - \ground{/HLCBWz&135"}(B) - \ground[/HLCBWz&linecolor"=blue]{180}(C) -\end{PSideBySideExample} + \ground(A) + \ground{135}(B) + \ground[linecolor=blue]{180}(C) +\end{pspicture} +\end{LTXexample} +\bigskip \section{Parameters} \subsection{Label parameters} -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,1)\psgrid \pnode(0,.5){A} \pnode(3,.5){B} - \resistor[/HLCBWz&labeloffset"=0](A)(B){$R$} -\end{PSideBySideExample} + \resistor[labeloffset=0](A)(B){$R$} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,0){A} \pnode(3,2){B} - \resistor[/HLCBWz&labelangle"=:U](A)(B){$R$} -\end{PSideBySideExample} + \resistor[labelangle=:U](A)(B){$R$} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,0){A} \pnode(3,2){B} - \resistor[/HLCBWz&labelangle"=0](A)(B){$R$} -\end{PSideBySideExample} + \resistor[labelangle=0](A)(B){$R$} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=5.5cm](5,5) +\begin{LTXexample}[width=5.5cm] +\begin{pspicture}(5,5)\psgrid \pnode(0,5){A} \pnode(0,0){B} \pnode(5,5){C} \pnode(5,0){D} - \transformer[/HLCBWz&primarylabel"=$n_1$, - /HLCBWz&secondarylabel"=$n_2$](A)(B)(C)(D){$\mathcal T$} -\end{PSideBySideExample} - + \transformer[primarylabel=$n_1$, + secondarylabel=$n_2$](A)(B)(C)(D){$\mathcal T$} +\end{pspicture} +\end{LTXexample} +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,4.5)\psgrid + \pnode(0,.5){A} + \pnode(3,.5){B} + \Ucc[labelInside=1](A)(B){$V$} + \pnode(0,2){A} + \pnode(3,2){B} + \Ucc[labelInside=2](A)(B){$V$} + \pnode(0,3.5){A} + \pnode(3,3.5){B} + \Ucc[labelInside=3](A)(B){$V$} +\end{pspicture} +\end{LTXexample} + +\bigskip \subsection{Current intensity and electrical potential parameters} -If the \HLTTc{intensity} parameter is set to \texttt{true}, an arrow is drawn on the wire -connecting one of the nodes to the dipole. If the \HLTTc{tension} parameter is set to \texttt{true}, +If the \texttt{intensity} parameter is set to \texttt{true}, an arrow is drawn on the wire +connecting one of the nodes to the dipole. If the \texttt{tension} parameter is set to \texttt{true}, an arrow is drawn parallel to the dipole. -The way those arrows are drawn is set by \HLTTc{dipoleconvention} and \HLTTc{directconvention} -parameters. \HLTTc{dipoleconvention} can take two values~: \texttt{generator} or \texttt{receptor}. -\HLTTc{directconvention} is a boolean. +The way those arrows are drawn is set by \texttt{dipoleconvention} and \texttt{directconvention} +parameters. \texttt{dipoleconvention} can take two values~: \texttt{generator} or \texttt{receptor}. +\texttt{directconvention} is a boolean. + -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,.5){A} \pnode(3,.5){B} - \resistor[/HLCBWz&intensity",/HLCBWz&tension"](A)(B){} -\end{PSideBySideExample} + \resistor[intensity,tension](A)(B){} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,.5){A} \pnode(3,.5){B} \resistor[intensity,tension, - /HLCBWz&dipoleconvention"=generator](A)(B){} -\end{PSideBySideExample} + dipoleconvention=generator](A)(B){} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,.5){A} \pnode(3,.5){B} \resistor[intensity,tension, - /HLCBWz&directconvention"=false](A)(B){} -\end{PSideBySideExample} + directconvention=false](A)(B){} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,.5){A} \pnode(3,.5){B} \resistor[intensity,tension, dipoleconvention=generator,directconvention=false](A)(B){} -\end{PSideBySideExample} +\end{pspicture} +\end{LTXexample} -If \HLTTc{intensitylabel} is set to an non empty argument, then \HLTTc{intensity} is automatically -set to true. If \HLTTc{tensionlabel} is set to an non empty argument, then \HLTTc{tension} is +If \texttt{intensitylabel} is set to an non empty argument, then \texttt{intensity} is automatically +set to true. If \texttt{tensionlabel} is set to an non empty argument, then \texttt{tension} is automatically set to true. -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,.5){A} \pnode(3,.5){B} - \resistor[/HLCBWz&intensitylabel"=$i$,/HLCBWz&tensionlabel"=$u$](A)(B){} -\end{PSideBySideExample} + \resistor[intensitylabel=$i$,tensionlabel=$u$](A)(B){} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,1.5){A} \pnode(3,1.5){B} - \resistor[intensitylabel=$i$,/HLCBWz&intensitylabeloffset"=-0.5, - tensionlabel=$u$,/HLCBWz&tensionlabeloffset"=-1.2, - /HLCBWz&tensionoffset"=-1](A)(B){} -\end{PSideBySideExample} - -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,2) + \resistor[intensitylabel=$i$,intensitylabeloffset=-0.5, + tensionlabel=$u$,tensionlabeloffset=-1.2, + tensionoffset=-1](A)(B){} +\end{pspicture} +\end{LTXexample} + +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,.5){A} \pnode(3,.5){B} - \resistor[intensitylabel=$i$,/HLCBWz&intensitywidth"=3\pslinewidth, - /HLCBWz&intensitycolor"=red,/HLCBWz&intensitylabelcolor"=yellow, - tensionlabel=$u$,/HLCBWz&tensionwidth"=2\pslinewidth, - /HLCBWz&tensioncolor"=green,/HLCBWz&tensionlabelcolor"=blue](A)(B){} -\end{PSideBySideExample} + \resistor[intensitylabel=$i$,intensitywidth=3\pslinewidth, + intensitycolor=red,intensitylabelcolor=yellow, + tensionlabel=$u$,tensionwidth=2\pslinewidth, + tensioncolor=green,tensionlabelcolor=blue](A)(B){} +\end{pspicture} +\end{LTXexample} Some specific intensity parameters are available for tripoles and quadrupoles. -\begin{PSideBySideExample}[xrightmargin=5.5cm](5,3) +\begin{LTXexample}[width=5.5cm] +\begin{pspicture}(5,3)\psgrid \pnode(0,0){A} \pnode(0,3){B} \pnode(5,1.5){C} - \OA[/HLCBWz&OAipluslabel"=$i_+$, - /HLCBWz&OAiminuslabel"=$i_-$, - /HLCBWz&OAioutlabel"=$i_o$](B)(A)(C) -\end{PSideBySideExample} - -\begin{PSideBySideExample}[xrightmargin=5.5cm](5,3) + \OA[OAipluslabel=$i_+$, + OAiminuslabel=$i_-$, + OAioutlabel=$i_o$](B)(A)(C) +\end{pspicture} +\end{LTXexample} + +\begin{LTXexample}[width=5.5cm] +\begin{pspicture}(5,3)\psgrid \pnode(0,1.5){A} - \pnode(5,3){B} - \pnode(5,0){C} - \transistor[/HLCBWz&transistoribaselabel"=$i_B$, - /HLCBWz&transistoricollectorlabel"=$i_C$, - /HLCBWz&transistoriemitterlabel"=$i_E$](A)(B)(C) -\end{PSideBySideExample} - -\begin{PSideBySideExample}[xrightmargin=5.5cm](5,5) + \pnode(5,0){B} + \pnode(5,3){C} + \transistor[basesep=2cm,transistoribaselabel=$i_B$, + transistoricollectorlabel=$i_C$, + transistoriemitterlabel=$i_E$](A)(B)(C) +\end{pspicture} +\end{LTXexample} + +\begin{LTXexample}[width=5.5cm] +\begin{pspicture}(5,5)\psgrid \pnode(0,5){A} \pnode(0,0){B} \pnode(5,5){C} \pnode(5,0){D} - \transformer[/HLCBWz&transformeriprimarylabel"=$i_1$, - /HLCBWz&transformerisecondarylabel"=$i_2$]% + \transformer[transformeriprimarylabel=$i_1$, + transformerisecondarylabel=$i_2$]% (A)(B)(C)(D){$\mathcal T$} -\end{PSideBySideExample} +\end{pspicture} +\end{LTXexample} \subsection{Parallel parameters} -If the \HLTTc{parallel} parameter is set to \texttt{true}, the dipole is drawn parallel to the line +If the \texttt{parallel} parameter is set to \texttt{true}, the dipole is drawn parallel to the line connecting the nodes. -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,3) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,3)\psgrid \pnode(0,.5){A} \pnode(3,.5){B} \resistor(A)(B){} - \resistor[/HLCBWz¶llel"](A)(B){} -\end{PSideBySideExample} + \resistor[parallel](A)(B){} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,3) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,3)\psgrid \pnode(0,.5){A} \pnode(3,.5){B} \resistor(A)(B){} - \resistor[parallel,/HLCBWz¶llelsep"=.5](A)(B){} -\end{PSideBySideExample} + \resistor[parallel,parallelsep=.5](A)(B){} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,3) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,3)\psgrid \pnode(0,.5){A} \pnode(3,.5){B} \resistor(A)(B){} \resistor[parallel,parallelsep=.3, - /HLCBWz¶llelarm"=2](A)(B){} -\end{PSideBySideExample} + parallelarm=2](A)(B){} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,3) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,3)\psgrid \pnode(0,.5){A} \pnode(3,.5){B} \resistor(A)(B){} \resistor[parallel,parallelsep=.3, - parallelarm=2,/HLCBWz¶llelnode"](A)(B){} -\end{PSideBySideExample} + parallelarm=2,parallelnode](A)(B){} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=8.5cm](8,8) +\begin{LTXexample}[width=8.5cm] +\begin{pspicture}(8,8)\psgrid \pnode(0,0){A} \pnode(8,8){B} \multidipole(A)(B)\resistor{$R$}% \capacitor[linecolor=red]{$C$}% \coil[parallel,parallelsep=.1]{$L$}% \diode{$D$}. -\end{PSideBySideExample} +\end{pspicture} +\end{LTXexample} -Note: When used with \cs{multidipole}, the parallel \HLTTc{parameter} +Note: When used with \cs{multidipole}, the parallel \texttt{parameter} must not be set for the first dipole. + + \subsection{Wire intersections} -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,3) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,3)\psgrid \pnode(0,0){A} \pnode(3,3){B} \pnode(0,3){C} \pnode(3,0){D} \wire(A)(B) - \wire[/HLCBWz&intersect",/HLCBWz&intersectA"=A,/HLCBWz&intersectB"=B](C)(D) -\end{PSideBySideExample} + \wire[intersect,intersectA=A,intersectB=B](C)(D) +\end{pspicture} +\end{LTXexample} Wire intersect parameters work also with \cs{multidipole}. -\begin{PSideBySideExample}[xrightmargin=8.5cm](8,8) +\begin{LTXexample}[width=6.5cm] +\begin{pspicture}(7,7)\psgrid \pnode(0,0){A} - \pnode(8,8){B} - \pnode(0,8){C} - \pnode(8,0){D} + \pnode(6,6){B} + \pnode(0,6){C} + \pnode(6,0){D} \wire(A)(B) \multidipole(C)(D)\resistor{$R$}% \wire[intersect,intersectA=A,intersectB=B]% \capacitor{$C$}. -\end{PSideBySideExample} - +\end{pspicture} +\end{LTXexample} +\bigskip \subsection{Dipole style parameters} -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}[showgrid=true](3,2) + \pnode(0,1){A} + \pnode(3,1){B} + \resistor[dipolestyle=zigzag](A)(B){$R$} +\end{pspicture} +\end{LTXexample} + +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}[showgrid=true](3,2) \pnode(0,1){A} \pnode(3,1){B} - \resistor[/HLCBWz&dipolestyle"=/HLCBWz&zigzag"](A)(B){$R$} -\end{PSideBySideExample} + \resistor[dipolestyle=varistor](A)(B){U} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}[showgrid=true](3,2) \pnode(0,1){A} \pnode(3,1){B} - \capacitor[dipolestyle=/HLCBWz&chemical"](A)(B){$C$} -\end{PSideBySideExample} + \capacitor[dipolestyle=chemical](A)(B){$C$} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,1){A} \pnode(3,1){B} - \capacitor[dipolestyle=/HLCBWz&elektor"](A)(B){$C$} -\end{PSideBySideExample} + \capacitor[dipolestyle=elektor](A)(B){$C$} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,1){A} \pnode(3,1){B} - \capacitor[dipolestyle=/HLCBWz&elektorchemical"](A)(B){$C$} -\end{PSideBySideExample} + \capacitor[dipolestyle=elektorchemical](A)(B){$C$} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,1){A} \pnode(3,1){B} - \coil[dipolestyle=/HLCBWz&rectangle"](A)(B){$L$} -\end{PSideBySideExample} + \coil[dipolestyle=rectangle](A)(B){$L$} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,1){A} \pnode(3,1){B} - \coil[dipolestyle=/HLCBWz&curved"](A)(B){$L$} -\end{PSideBySideExample} + \coil[dipolestyle=curved](A)(B){$L$} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,1){A} \pnode(3,1){B} - \coil[dipolestyle=/HLCBWz&elektor"](A)(B){$L$} -\end{PSideBySideExample} + \coil[dipolestyle=elektor](A)(B){$L$} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,1){A} \pnode(3,1){B} - \coil[dipolestyle=/HLCBWz&elektorcurved"](A)(B){$L$} -\end{PSideBySideExample} + \coil[dipolestyle=elektorcurved](A)(B){$L$} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,1){A} \pnode(3,1){B} - \diode[dipolestyle=/HLCBWz&thyristor"](A)(B){$T$} -\end{PSideBySideExample} + \diode[dipolestyle=thyristor](A)(B){$T$} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,1){A} \pnode(3,1){B} - \diode[dipolestyle=/HLCBWz>O"](A)(B){$T$} -\end{PSideBySideExample} + \diode[dipolestyle=GTO](A)(B){$T$} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,1){A} \pnode(3,1){B} - \diode[dipolestyle=/HLCBWz&triac"](A)(B){$T$} -\end{PSideBySideExample} + \diode[dipolestyle=triac](A)(B){$T$} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,1){A} \pnode(3,1){B} - \resistor[/HLCBWz&variable"](A)(B){$R$} -\end{PSideBySideExample} + \resistor[variable](A)(B){$R$} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,1){A} \pnode(3,1){B} - \capacitor[/HLCBWz&variable"](A)(B){$C$} -\end{PSideBySideExample} + \capacitor[variable](A)(B){$C$} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,1){A} \pnode(3,1){B} - \coil[/HLCBWz&variable"](A)(B){$L$} -\end{PSideBySideExample} + \coil[variable](A)(B){$L$} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,1){A} \pnode(3,1){B} - \battery[/HLCBWz&variable"](A)(B){$U$} -\end{PSideBySideExample} + \battery[variable](A)(B){$U$} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,2) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,2)\psgrid \pnode(0,1){A} \pnode(3,1){B} - \coil[dipolestyle=/HLCBWz&elektor",variable](A)(B){$L$} -\end{PSideBySideExample} + \coil[dipolestyle=elektor,variable](A)(B){$L$} +\end{pspicture} +\end{LTXexample} In the following example the parameter \verb|dipolestyle| is used for a tripole and quadrupole, because the coils are drawn as rectangles and the resistor as a zigzag. -\begin{PSideBySideExample}[xrightmargin=3.5cm](3,3) +\begin{LTXexample}[width=3.5cm] +\begin{pspicture}(3,3)\psgrid \pnode(0,0){A} \pnode(3,3){B} \pnode(3,1.5){C} - \potentiometer[,dipolestyle=/HLCBWz&zigzag",% + \potentiometer[dipolestyle=zigzag,% labelangle=:U](A)(B)(C){$P$} -\end{PSideBySideExample} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=4.5cm](4,4) +\begin{LTXexample}[width=4.5cm] +\begin{pspicture}(4,4)\psgrid \pnode(0,4){A} \pnode(0,0){B} \pnode(4,4){C} \pnode(4,0){D} - /HLCBWz&\transformer"[dipolestyle=/HLCBWz&rectangle"](A)(B)(C)(D){$\mathcal T$} -\end{PSideBySideExample} + \transformer[dipolestyle=rectangle](A)(B)(C)(D){$\mathcal T$} +\end{pspicture} +\end{LTXexample} \subsection{Tripole style parameters} -\begin{PSideBySideExample}[xrightmargin=5.5cm](5,3) +\begin{LTXexample}[width=5.5cm] +\begin{pspicture}(5,3) \pnode(0,2){A} \pnode(5,2){B} \pnode(0,0){C} \Tswitch[tripolestyle=left](A)(B)(C){$K$} -\end{PSideBySideExample} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=5.5cm](5,3) +\begin{LTXexample}[width=5.5cm] +\begin{pspicture}(5,3) \pnode(0,2){A} \pnode(5,2){B} \pnode(0,0){C} \Tswitch[tripolestyle=right](A)(B)(C){$K$} -\end{PSideBySideExample} +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=5.5cm](5,3) +\begin{LTXexample}[width=5.5cm] +\begin{pspicture}(5,3) \pnode(0,3){A} \pnode(0,0){B} \pnode(5,1.5){C} \OA[tripolestyle=french](A)(B)(C) -\end{PSideBySideExample} +\end{pspicture} +\end{LTXexample} + +\subsection{Potentiometer tripole} + +\begin{pspicture}(3,3) + \psgrid + \pnode(0,1){A} + \pnode(3,1){B} + \pnode(3,2){C} + \potentiometer[labeloffset=0pt](A)(B)(C){P} +\end{pspicture} +\hfill +\begin{pspicture}(3,3) + \psgrid + \pnode(0,2.5){A} + \pnode(3,2.5){B} + \pnode(0,1){C} + \potentiometer[labeloffset=0pt](A)(B)(C){P} +\end{pspicture} +\hfill +\begin{pspicture}(3,3) + \psgrid + \pnode(0,0){A} + \pnode(3,2){B} + \pnode(2.5,3){C} + \potentiometer[labeloffset=0pt,labelangle=:U](A)(B)(C){P} +\end{pspicture} + +\vspace{1cm} +\noindent +\begin{pspicture}(3,3) + \psgrid + \pnode(1,0){A} + \pnode(1,3){B} + \pnode(2.5,0){C} + \potentiometer[labeloffset=0pt](A)(B)(C){P} +\end{pspicture} +\hfill +\begin{pspicture}(3,3) + \psgrid + \pnode(0,3){A} + \pnode(3,0){B} + \pnode(2,0){C} + \potentiometer[labeloffset=0pt,labelangle=:U](A)(B)(C){P} +\end{pspicture} +\hfill +\begin{pspicture}(3,3) + \psgrid + \pnode(0,2){A} + \pnode(3,2){B} + \pnode(1.5,0){C} + \potentiometer[labeloffset=0pt](A)(B)(C){P} +\end{pspicture} + + +\vspace{1cm} +\noindent +\begin{pspicture}(3,3) + \psgrid + \pnode(1,0){A} + \pnode(1,3){B} + \pnode(2.5,0){C} + \potentiometer[dipolestyle=zigzag](A)(B)(C){P} +\end{pspicture} +\hfill +\begin{pspicture}(3,3) + \psgrid + \pnode(0,3){A} + \pnode(3,0){B} + \pnode(2,0){C} + \potentiometer[dipolestyle=zigzag,labelangle=:U](A)(B)(C){P} +\end{pspicture} +\hfill +\begin{pspicture}(3,3) + \psgrid + \pnode(0,2){A} + \pnode(3,2){B} + \pnode(1.5,0){C} + \potentiometer[dipolestyle=zigzag](A)(B)(C){P} +\end{pspicture} \subsection{Other Parameters} -\begin{PSideBySideExample}[xrightmargin=5.5cm](5,3) +\begin{LTXexample}[width=5.5cm] +\begin{pspicture}(5,3) \pnode(0,0){A} \pnode(0,3){B} \pnode(5,1.5){C} - \OA[/HLCBWz&OAinvert"=false](B)(A)(C) -\end{PSideBySideExample} + \OA[OAinvert=false](B)(A)(C) +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=5.5cm](5,3) +\begin{LTXexample}[width=5.5cm] +\begin{pspicture}(5,3) \pnode(0,0){A} \pnode(0,3){B} \pnode(5,1.5){C} - \OA[/HLCBWz&OAperfect"=false](B)(A)(C) -\end{PSideBySideExample} + \OA[OAperfect=false](B)(A)(C) +\end{pspicture} +\end{LTXexample} -\begin{PSideBySideExample}[xrightmargin=5.5cm](5,3) +\begin{LTXexample}[width=5.5cm] +\begin{pspicture}(5,3) \pnode(0,1.5){A} - \pnode(5,3){B} - \pnode(5,0){C} - \transistor[/HLCBWz&transistorinvert",/HLCBWz&transistorcircle"=false](A)(B)(C) -\end{PSideBySideExample} + \pnode(5,0){B} + \pnode(5,3){C} + \transistor[basesep=2cm,% + transistorinvert,transistorcircle=false](A)(B)(C) +\end{pspicture} +\end{LTXexample} + +\begin{LTXexample}[width=5.5cm] +\begin{pspicture}(5,3) + \pnode(0,1.5){A}\psset{linewidth=1pt} + \transistor[basesep=2cm,arrows=o-o, + transistortype=FET](A){Emitter}{Collector} + \psline{o-}(5,3)(3,3)(3,3|Collector)(Collector) + \psline{o-}(5,0)(3,0)(3,3|Emitter)(Emitter) + \psline{o-}(A)([nodesep=2]A) +\end{pspicture} +\end{LTXexample} + +\begin{LTXexample}[width=5.5cm] +\begin{pspicture}(5,3) + \pnode(0,1.5){A}\psset{linewidth=1pt} + \transistor[basesep=2cm,arrows=o-o, + transistortype=FET, + FETchanneltype=P](A){Emitter}{Collector} + \psline{o-}(5,3)(3,3)(3,3|Collector)(Collector) + \psline{o-}(5,0)(3,0)(3,3|Emitter)(Emitter) + \psline{o-}(A)([nodesep=2]A) +\end{pspicture} +\end{LTXexample} + +\clearpage +\section{Special objects} + +\subsection{\texttt{\textbackslash dashpot}} + + +\begin{LTXexample}[pos=t] +\newcommand*\pswall[3]{% ll ur lr + \psframe[linecolor=white,fillstyle=hlines,hatchcolor=black](#1)(#2)% (ll)(ur) + \psline[linecolor=black](#1)(#3)} +\begin{pspicture}[showgrid=true](0.5,1)(8,10) + \rput(3,9.5){\sffamily \textbf{Viscoelasticity}} + % Kelvin-Voigt model (spring and dashpot parallel): =========== + \rput[c](1.75,8.85){\sffamily Kelvin-Voigt} + \pswall{1,8}{2.5,8.5}{2.5,8}% top + \psline(1.75,8)(1.75,7)% top vertical line + % node definitions: + \pnode(1,7){ul1}\pnode(2.5,7){ur1} \pnode(1,3){ll1}\pnode(2.5,3){lr1}% + \psline(ul1)(ur1)% top line + \psline(ll1)(lr1)% bottom line + \resistor[dipolestyle=zigzag,linewidth=0.5pt](ul1)(ll1){}% spring + \dashpot[linewidth=0.5pt](ur1)(lr1){}% dashpot + \psline[arrowscale=3]{->}(1.75,3)(1.75,2)% force + % Maxwell model (spring and dashpot serial): ================== + \rput[c](4.5,8.85){\sffamily Maxwell} + \pswall{4,8}{5,8.5}{5,8}% top + \pnode(4.5,8){t}\pnode(4.5,4){b}% node definitions + \resistor[dipolestyle=zigzag,linewidth=0.5pt,labeloffset=1.8](t)(b)% spring + {\sffamily\small\begin{tabular}{c}\textbf{elasticity}\\(Hookean solid)\end{tabular}}% end spring + \dashpot[linewidth=0.5pt,labeloffset=1.8](4.5,5)(4.5,3)% dashpot + {\sffamily\small\begin{tabular}{c}\textbf{viscosity}\\(Newtonian fluid)\end{tabular} + }% end dashpot + \psline[arrowscale=3]{->}(4.5,3)(4.5,2)% force +\end{pspicture} +\end{LTXexample} + \section{Examples} -\begin{SideBySideExample}[xrightmargin=8cm] +\begin{LTXexample}[width=8cm] \begin{pspicture}(-1.5,-1)(6,5) - \psgrid[subgriddiv=1,griddots=10] +% \psgrid[subgriddiv=1,griddots=10] % Node definitions \pnode(0,0){A} \pnode(0,3){B} @@ -763,11 +1040,11 @@ the coils are drawn as rectangles and the resistor as a zigzag. % Ground \ground(D) \end{pspicture} -\end{SideBySideExample} +\end{LTXexample} -\begin{SideBySideExample}[xrightmargin=8cm] +\begin{LTXexample}[width=8cm] \begin{pspicture}(-0.5,0)(7,8) - \psgrid[subgriddiv=1,griddots=10] +% \psgrid[subgriddiv=1,griddots=10] % Node definitions \pnode(0.5,1){A} \pnode(3.5,1){B} @@ -796,11 +1073,11 @@ the coils are drawn as rectangles and the resistor as a zigzag. \ground(B) \ground(C) \end{pspicture} -\end{SideBySideExample} +\end{LTXexample} -\begin{SideBySideExample}[xrightmargin=8.5cm] +\begin{LTXexample}[width=8.5cm] \begin{pspicture}(-1,0)(7,8) - \psgrid[subgriddiv=1,griddots=10] +% \psgrid[subgriddiv=1,griddots=10] % Node definitions \pnode(1,1){A} \pnode(1,7){B} @@ -814,11 +1091,11 @@ the coils are drawn as rectangles and the resistor as a zigzag. % Wire \wire(A)(C) \end{pspicture} -\end{SideBySideExample} +\end{LTXexample} -\begin{SideBySideExample}[xrightmargin=8.5cm] - \begin{pspicture}(6,6) - \psgrid[subgriddiv=1,griddots=10] +\begin{LTXexample}[width=8.5cm] + \begin{pspicture}(-0.25,-0.25)(6,6) +% \psgrid[subgriddiv=1,griddots=10] % Node definitions \pnode(0,3){A} \pnode(3,3){B} @@ -829,11 +1106,11 @@ the coils are drawn as rectangles and the resistor as a zigzag. parallel,parallelarm=2](B)(C){$L'$} \capacitor[parallel,parallelarm=-2](B)(C){$C$} \end{pspicture} -\end{SideBySideExample} +\end{LTXexample} -\begin{SideBySideExample}[xrightmargin=8.5cm] +\begin{LTXexample}[width=8.5cm] \begin{pspicture}(6,6) - \psgrid[subgriddiv=1,griddots=10] +% \psgrid[subgriddiv=1,griddots=10] % Node definitions \pnode(0,0){A}\pnode(6,0){B} \pnode(0.3,4){Cprime}\pnode(5.7,4){Dprime} @@ -853,89 +1130,68 @@ the coils are drawn as rectangles and the resistor as a zigzag. \wire(Dprime)(F) \resistor(Hprime)(Gprime){$R_3$} \end{pspicture} -\end{SideBySideExample} +\end{LTXexample} -\begin{SideBySideExample}[xrightmargin=9.5cm] - \begin{pspicture}(9,11) - \psgrid[subgriddiv=1,griddots=10] +\begin{LTXexample}[pos=t] + \begin{pspicture}(0,-0.25)(9,11) % Node definitions - \pnode(0,0){A} - \pnode(9,0){B} - \pnode(0,6){C} - \pnode(9,6){D} - \pnode(4.5,1){E} - \pnode(4.5,10.5){F} + \pnode(0,0){A}\pnode(9,0){B}\pnode(0,6){C}\pnode(9,6){D}\pnode(4.5,1){E}\pnode(4.5,10.5){F} % \switch(A)(C){$K$} - \multidipole(A)(B)\resistor{$R$}% - \battery[intensitylabel=$i$]{$V$}. + \multidipole(A)(B)\resistor{$R$}\battery[intensitylabel=$i$]{$V$}. \wire(B)(D) \multidipole(C)(D)\diode{$D$}\wire. - \resistor[tensionlabel=$U_1$](C)(F){$R_1$} - \resistor(C)(E){$R_4$} - \capacitor[parallel,parallelarm=1.2, - parallelsep=1.5](C)(E){$C_2$} + \resistor[tensionlabel=$U_1$](C)(F){$R_1$} \resistor(C)(E){$R_4$} + \capacitor[parallel,parallelarm=1.2,parallelsep=1.5](C)(E){$C_2$} \coil(E)(D){$L$} - \capacitor[parallel,parallelarm=1.2, - parallelsep=1.5](E)(D){$C_3$} + \capacitor[parallel,parallelarm=1.2,parallelsep=1.5](E)(D){$C_3$} \capacitor[tensionlabel=$U_2$](F)(D){$C_1$} - \multidipole(E)(F)\wire% - \wire[intersect, - intersectA=C,intersectB=D]% + \multidipole(E)(F)\wire\wire[intersect,intersectA=C,intersectB=D]% \circledipole[labeloffset=-0.7]{$E$}% - \resistor[parallel, - parallelsep=.6,parallelarm=.8]{$R$}. + \resistor[parallel,parallelsep=.6,parallelarm=.8]{$R$}. \end{pspicture} -\end{SideBySideExample} - - -\begin{CenterExample} - \begin{pspicture}(13,8) - \psset{intensitycolor=red,intensitylabelcolor=red,% - tensioncolor=green,tensionlabelcolor=green,% - intensitywidth=3pt} - \psgrid[griddots=5,gridlabels=7pt,subgriddiv=0] - \circledipole[ - tension,% - tensionlabel=$U_0$,% - tensionoffset=0.75,% - labeloffset=0](0,0)(0,6){\LARGE\textbf{=}} - \wire[intensity,intensitylabel=$i_0$](0,6)(2.5,6) - \diode[dipolestyle=thyristor](2.5,6)(4.5,6){$T_1$} - \wire[intensity,intensitylabel=$i_1$](4.5,6)(6.5,6) - \multidipole(6.5,7.5)(2.5,7.5)% +\end{LTXexample} + +\begin{LTXexample}[pos=t] +\begin{pspicture}(0,-0.2)(13,8) + \psset{intensitycolor=red,intensitylabelcolor=red,tensioncolor=green, + tensionlabelcolor=green, intensitywidth=3pt} + \circledipole[tension,tensionlabel=$U_0$, + tensionoffset=0.75,labeloffset=0](0,0)(0,6){\LARGE\textbf{=}} + \wire[intensity,intensitylabel=$i_0$](0,6)(2.5,6) + \diode[dipolestyle=thyristor](2.5,6)(4.5,6){$T_1$} + \wire[intensity,intensitylabel=$i_1$](4.5,6)(6.5,6) + \multidipole(6.5,7.5)(2.5,7.5)% \coil[dipolestyle=rectangle,labeloffset=-0.75]{$L_5$}% \diode[labeloffset=-0.75]{$D_5$}. - \wire[intensity,intensitylabel=$i_5$](6.5,6)(6.5,7.5) - \wire(2.5,7.5)(2.5,3) - \wire[intensity,intensitylabel=$i_c$](2.5,4.5)(2.5,6) - \qdisk(2.5,6){2pt}\qdisk(6.5,6){2pt} - \diode[dipolestyle=thyristor](2.5,4.5)(4.5,4.5){$T_2$} - \wire[intensity,intensitylabel=$i_2$](4.5,4.5)(6.5,4.5) - \capacitor[tension,tensionlabel=$u_c$,% - tensionoffset=-0.75,tensionlabeloffset=-1](6.5,4.5)(6.5,6){$C_k$} - \qdisk(2.5,4.5){2pt}\qdisk(6.5,4.5){2pt} - \wire[intensity,intensitylabel=$i_3$](6.5,4.5)(6.5,3) - \multidipole(6.5,3)(2.5,3)% - \coil[dipolestyle=rectangle,labeloffset=-0.75]{$L_3$}% - \diode[labeloffset=-0.75]{$D_3$}. - \wire(6.5,6)(9,6)\qdisk(9,6){2pt} - \diode(9,0)(9,6){$D_4$} - \wire[intensity,intensitylabel=$i_4$](9,3.25)(9,6) - \wire[intensity,intensitylabel=$i_a$](9,6)(11,6) - \multidipole(11,6)(11,0)% - \resistor{$R_L$} - \coil[dipolestyle=rectangle]{$L_L$}% - \circledipole[labeloffset=0,% - tension,tensionoffset=0.7,% - tensionlabel=$U_B$]{\LARGE\textbf{=}}. - \wire(0,0)(11,0)\qdisk(9,0){2pt} - \pnode(12.5,5.5){A}\pnode(12.5,0.5){B} - \tension(A)(B){$u_a$} - \end{pspicture} -\end{CenterExample} + \wire[intensity,intensitylabel=$i_5$](6.5,6)(6.5,7.5) + \wire(2.5,7.5)(2.5,3) + \wire[intensity,intensitylabel=$i_c$](2.5,4.5)(2.5,6) + \qdisk(2.5,6){2pt}\qdisk(6.5,6){2pt} + \diode[dipolestyle=thyristor](2.5,4.5)(4.5,4.5){$T_2$} + \wire[intensity,intensitylabel=$i_2$](4.5,4.5)(6.5,4.5) + \capacitor[tension,tensionlabel=$u_c$,tensionoffset=-0.75, + tensionlabeloffset=-1](6.5,4.5)(6.5,6){$C_k$} + \qdisk(2.5,4.5){2pt}\qdisk(6.5,4.5){2pt} + \wire[intensity,intensitylabel=$i_3$](6.5,4.5)(6.5,3) + \multidipole(6.5,3)(2.5,3)% + \coil[dipolestyle=rectangle,labeloffset=-0.75]{$L_3$}% + \diode[labeloffset=-0.75]{$D_3$}. + \wire(6.5,6)(9,6)\qdisk(9,6){2pt} + \diode(9,0)(9,6){$D_4$} + \wire[intensity,intensitylabel=$i_4$](9,3.25)(9,6) + \wire[intensity,intensitylabel=$i_a$](9,6)(11,6) + \multidipole(11,6)(11,0)% + \resistor{$R_L$} + \coil[dipolestyle=rectangle]{$L_L$} + \circledipole[labeloffset=0,tension,tensionoffset=0.7,tensionlabel=$U_B$]{\LARGE\textbf{=}}. + \wire(0,0)(11,0)\qdisk(9,0){2pt} + \pnode(12.5,5.5){A}\pnode(12.5,0.5){B} + \tension(A)(B){$u_a$} +\end{pspicture} +\end{LTXexample} \makeatletter @@ -943,7 +1199,8 @@ the coils are drawn as rectangles and the resistor as a zigzag. \def\REG{\@ifnextchar[{\pst@REG}{\pst@REG[]}} % \def\pst@REG[#1](#2)(#3)(#4)#5{{% - \setkeys{psset}{#1,dimen=middle,arm=0}% + \psset{dimen=middle,arm=0}% + \psset{#1} \pst@getcoor{#2}\pst@tempa \pst@getcoor{#3}\pst@tempb \pst@getcoor{#4}\pst@tempc @@ -986,50 +1243,39 @@ the coils are drawn as rectangles and the resistor as a zigzag. \makeatother The fellowing example was written by Manuel Luque. -\begin{CenterExample} - \begin{pspicture}(14,4) - \psgrid[subgriddiv=1,griddots=10] + +\begin{LTXexample}[pos=t] + \begin{pspicture}(0,-0.5)(14,4) +% \psgrid[subgriddiv=1,griddots=10] \pnode(0,0){B}\pnode(0,3){A} - \pnode(2.5,3.5){C}\pnode(2.5,-0.5){D} - \pnode(5,3){E}\pnode(6.5,1.5){F} - \pnode(5,0){G}\pnode(3.5,1.5){H} - \pnode(8,2.5){I}\pnode(8,1){J} - \pnode(10,2.5){K}\pnode(10,1){L} - \pnode(14,2.5){M}\pnode(12,1){N} - \pnode(3,1){H'}\pnode(14,2.5){O} - \pnode(14,1){P}\pnode(13.5,1){Q} - \transformer[transformeriprimarylabel=$i_1$, - transformerisecondarylabel=$i_2$, - primarylabel=$n_1$,secondarylabel=$n_2$]% - (A)(B)(C)(D){$T_1$} + \pnode(2.5,3.5){C}\pnode(2.5,-0.5){D}\pnode(5,3){E}\pnode(6.5,1.5){F} + \pnode(5,0){G}\pnode(3.5,1.5){H} \pnode(8,2.5){I}\pnode(8,1){J} + \pnode(10,2.5){K}\pnode(10,1){L} \pnode(14,2.5){M}\pnode(12,1){N} + \pnode(3,1){H'}\pnode(14,2.5){O} \pnode(14,1){P}\pnode(13.5,1){Q} + \transformer[transformeriprimarylabel=$i_1$,transformerisecondarylabel=$i_2$, + primarylabel=$n_1$,secondarylabel=$n_2$](A)(B)(C)(D){$T_1$} {\psset{fillstyle=solid,fillcolor=black} - \diode(H)(E){}\diode(H)(G){} - \diode(E)(F){}\diode(G)(F){}} - \capacitor[dipolestyle=chemical](I)(J){} - \capacitor(K)(L){} + \diode(H)(E){}\diode(H)(G){} \diode(E)(F){}\diode(G)(F){}} + \capacitor[dipolestyle=chemical](I)(J){} \capacitor(K)(L){} \REG(K)(M)(N)% {\shortstack{\textsf{% \textbf{\large LM7805}}\\\textbf{+5V}}} - \ncangle{I}{F}\psline(I)(K) - \ncangle{E}{C}\ncangle{G}{D} - \ncangle[arm=0]{P}{Q} - \ncangle[arm=0]{H}{H'} - \ground(H')\ground(J) - \ground(L)\ground(N) - \ground(Q)\qdisk(I){1.5pt} - \qdisk(K){1.5pt}\qdisk(E){1.5pt} - \qdisk(G){1.5pt}\qdisk(H){1.5pt} - \qdisk(F){1.5pt} - \pscircle[fillstyle=solid](A){0.075} - \pscircle[fillstyle=solid](B){0.075} - \pscircle[fillstyle=solid](P){0.075} - \pscircle[fillstyle=solid](O){0.075} + \ncangle{I}{F}\psline(I)(K) \ncangle{E}{C}\ncangle{G}{D} + \ncangle[arm=0]{P}{Q} \ncangle[arm=0]{H}{H'} + \ground(H')\ground(J)\ground(L)\ground(N) + \ground(Q)\qdisk(I){1.5pt}\qdisk(K){1.5pt}\qdisk(E){1.5pt} + \qdisk(G){1.5pt}\qdisk(H){1.5pt}\qdisk(F){1.5pt} + \pscircle[fillstyle=solid](A){0.075} \pscircle[fillstyle=solid](B){0.075} + \pscircle[fillstyle=solid](P){0.075} \pscircle[fillstyle=solid](O){0.075} \end{pspicture} -\end{CenterExample} +\end{LTXexample} +\clearpage The fellowing example was written by Lionel Cordesses. -\begin{CenterExample} + + +\begin{LTXexample}[pos=t] \begin{pspicture}(11,3) \psset{dipolestyle=elektor} \pnode(1,2){Vin}\pnode(0.5,2){S}\pnode(0.5,0){Sm} @@ -1048,33 +1294,503 @@ The fellowing example was written by Lionel Cordesses. \pscircle*(A){2\pslinewidth} \pscircle*(Am){2\pslinewidth} \pscircle*(B){2\pslinewidth} \pscircle*(Bm){2\pslinewidth} \end{pspicture} -\end{CenterExample} +\end{LTXexample} + +\clearpage +The fellowing example was written by Christian Hoffmann. + + +\begin{LTXexample}[pos=t] + \SpecialCoor + \begin{pspicture}(0,-1)(7,6.5)%\psgrid + \pnode(0,6){plus} + \pnode(3,3){basis} + \pnode([nodesep=-2] basis){schalter} + \pnode(0,0){masse} + \wire[arrows=o-*](plus)(basis|plus) + \uput[l](plus){$U_0$} + \resistor[labeloffset=.8](basis|plus)(basis){$R_1$} + \transistor[basesep=2cm](basis){emitter}{kollektor} + \wire[arrows=-*](schalter)(basis) +% \wire(basis)([nodesep=2] basis) + \wire(TBaseNode)(basis) + \switch(schalter|masse)(schalter){S} + \lamp(kollektor|plus)(kollektor){L} + \resistor(kollektor|plus)(basis|plus){$R_2$} + \wire(emitter)(emitter|masse) + \wire(emitter|masse)(basis|masse) + \capacitor(basis)(basis|masse){$C_1$} + \wire[arrows=*-](basis|masse)(schalter|masse) + \wire[arrows=*-o](schalter|masse)(masse) + \end{pspicture} +\end{LTXexample} + + + +\clearpage +\section{Flip Flops -- logical elements} + +The syntax for all logical base circuits is +\begin{verbatim} +logic[<options>](<originX,originY>){Label} +\end{verbatim} + +\noindent where the options and the origin are optional. If they are missing, +then the default options, described in the next section and the default +origin $(0,0)$ is used. The origin specifies the lower left corner +of the logical circuit. + +\begin{verbatim} +logic{Demo} +logic[logicType=and]{Demo} +logic(0,0){Demo} +logic[logicType=and](0,0){Demo} +\end{verbatim} + +The above four ,,different`` calls of the \verb|logic| macro give the +same output, because they are equivalent. + +\subsection{The Options} + +\begin{description} +\item[logicShowNode (boolean):] (\emph{default:~false}) +\item[logicShowDot (boolean):] (\emph{default:~false}) +\item[logicNodestyle (command):] (\emph{default:~\textbackslash footnotesize}) +\item[logicSymbolstyle (command):] (\emph{default:~\textbackslash large}) +\item[logicSymbolpos (value):] (\emph{default:~0.5}) +\item[logicLabelstyle (command):] (\emph{default:~\textbackslash small}) +\item[logicType (string):] (\emph{default:~and}) +\item[logicChangeLR (boolean):] (\emph{default:~false}) +\item[logicWidth (length):] (\emph{default:~1.5}) +\item[logicHeight (length):] (\emph{default:~2.5}) +\item[logicWireLength (length):] (\emph{default:~0.5}) +\item[logicNInput (number):] (\emph{default:~2}) +\item[logicJInput (number):] (\emph{default:~2}) +\item[logicKInput (number):] (\emph{default:~2}) +\end{description} + +\subsection{Basic Logical Circuits} +At least the basic objects require a unique label name, otherwise it is +not sure, that all nodes will work well. The label may contain any +alphanumerical character and most of all symbols. But it is save +using only combinations of letters and digits. For example: +\begin{verbatim} +And0 +a0 +a123 +12 +NOT123a +\end{verbatim} + +\verb|A_1| is not a good choice, the underscore may causes some +problems. + +\subsubsection{And} + +\psset{subgriddiv=0,griddots=5,gridlabels=7pt} +\begin{LTXexample}[width=4.5cm](3,3) + \begin{pspicture}(-1,0)(3,3) + \psgrid + \logic{AND1} + \end{pspicture} +\end{LTXexample} + +\begin{LTXexample}[width=4.5cm](3,3) + \begin{pspicture}(-0.5,0)(3,3) + \logic[logicChangeLR=true]{AND2} + \end{pspicture} +\end{LTXexample} + +\begin{LTXexample}[width=4.5cm](4,6) + \begin{pspicture}(-0.5,0)(4,5) + \psgrid + \logic[logicShowNode=true,% + logicWidth=2,% + logicHeight=4,% + logicNInput=6,% + logicChangeLR=true](1,1){AND3} + \end{pspicture} +\end{LTXexample} + +\subsubsection{NotAnd} +\begin{LTXexample}[width=4.5cm](3,3) + \begin{pspicture}(-0.5,0)(3,3) + \logic[logicType=nand",% + logicShowNode=true]{NAND1} + \end{pspicture} +\end{LTXexample} + + +\begin{LTXexample}[width=4.5cm](3,3) + \begin{pspicture}(-0.5,0)(3,3) + \logic[logicType=nand,% + logicChangeLR=true]{NAND2} + \end{pspicture} +\end{LTXexample} + +\begin{LTXexample}[width=4.5cm](4,6) + \begin{pspicture}(4,5) + \psgrid + \logic[logicType=nand,% + logicShowNode=true,% + logicWidth=2,% + logicHeight=4,% + logicNInput=6,% + logicChangeLR=true](1,1){NAND3} + \end{pspicture} +\end{LTXexample} + +\subsubsection{Or} +\begin{LTXexample}[width=4.5cm](3,3) + \begin{pspicture}(-0.5,0)(3,3) + \logic[logicType=or",% + logicShowNode=true]{OR1} + \end{pspicture} +\end{LTXexample} + + +\begin{LTXexample}[width=4.5cm](3,3) + \begin{pspicture}(-0.5,0)(3,3) + \logic[logicType=or,% + logicChangeLR=true]{OR2} + \end{pspicture} +\end{LTXexample} + + +\begin{LTXexample}[width=4.5cm](4,6) + \begin{pspicture}(4,5) + \psgrid + \logic[logicType=or,% + logicShowNode=true,% + logicWidth=2,% + logicHeight=4,% + logicNInput=6,% + logicChangeLR=true](1,1){OR3} + \end{pspicture} +\end{LTXexample} + +\clearpage +\subsubsection{Not Or} + +\begin{LTXexample}[width=4.5cm](3,3) + \begin{pspicture}(-0.5,0)(3,3) + \logic[logicType=nor",% + logicShowNode=true]{NOR1} + \end{pspicture} +\end{LTXexample} + + +\begin{LTXexample}[width=4.5cm](3,3) + \begin{pspicture}(-0.5,0)(3,3) + \logic[logicType=nor,% + logicChangeLR=true]{NOR2} + \end{pspicture} +\end{LTXexample} + +\begin{LTXexample}[width=4.5cm](4,6) + \begin{pspicture}(4,5) + \psgrid + \logic[logicType=nor,% + logicShowNode=true,% + logicWidth=2,% + logicHeight=4,% + logicNInput=6,% + logicChangeLR=true](1,1){NOR3} + \end{pspicture} +\end{LTXexample} + + +\subsubsection{Not} + +\begin{LTXexample}[width=4.5cm](3,3) + \begin{pspicture}(-0.5,0)(3,3) + \logic[logicType=not",% + logicShowNode=true]{NOT1} + \end{pspicture} +\end{LTXexample} + + +\begin{LTXexample}[width=4.5cm](3,3) + \begin{pspicture}(-0.5,0)(3,3) + \logic[logicType=not,% + logicChangeLR=true]{NOT2} + \end{pspicture} +\end{LTXexample} + +\begin{LTXexample}[width=4.5cm](4,6) + \begin{pspicture}(4,5) + \psgrid + \logic[logicType=not,% + logicShowNode=true,% + logicWidth=2,% + logicHeight=4,% + logicChangeLR=true](1,1){NOT3} + \end{pspicture} +\end{LTXexample} + +\subsubsection{Exclusive OR} + +\begin{LTXexample}[width=4.5cm](3,3) + \begin{pspicture}(-0.5,0)(3,3) + \logic[logicType=exor",% + logicShowNode=true]{ExOR1} + \end{pspicture} +\end{LTXexample} + + +\begin{LTXexample}[width=4.5cm](3,3) + \begin{pspicture}(-0.5,0)(3,3) + \logic[logicType=exor,% + logicChangeLR=true]{ExOR2} + \end{pspicture} +\end{LTXexample} + +\begin{LTXexample}[width=4.5cm](4,6) + \begin{pspicture}(4,5) + \psgrid + \logic[logicType=exor,% + logicShowNode=true,% + logicNInput=6,% + logicWidth=2,% + logicHeight=4,% + logicChangeLR=true](1,1){ExOR3} + \end{pspicture} +\end{LTXexample} + + +\clearpage +\subsubsection{Exclusive NOR} + +\begin{LTXexample}[width=4.5cm](3,3) + \begin{pspicture}(-0.5,0)(3,3) + \logic[logicType=exnor",% + logicShowNode=true]{ExNOR1} + \end{pspicture} +\end{LTXexample} + + +\begin{LTXexample}[width=4.5cm](3,3) + \begin{pspicture}(-0.5,0)(3,3) + \logic[logicType=exnor,% + logicChangeLR=true]{ExNOR2} + \end{pspicture} +\end{LTXexample} + +\begin{LTXexample}[width=4.5cm](4,6) + \begin{pspicture}(4,5) + \psgrid + \logic[logicType=exnor,% + logicShowNode=true,% + logicNInput=6,% + logicWidth=2,% + logicHeight=4,% + logicChangeLR=true](1,1){ExNOR3} + \end{pspicture} +\end{LTXexample} + + +\subsection{RS Flip Flop} + +\begin{LTXexample}[width=4.5cm](3,4.5) + \begin{pspicture}(-1,-1)(3,3) + \logic[logicShowNode=true,% + logicType=RS"]{RS1} + \end{pspicture} +\end{LTXexample} + + +\begin{LTXexample}[width=4.5cm](3,4.5) + \begin{pspicture}(-1,-1)(3,3) + \logic[logicShowNode=true,% + logicType=RS,% + logicChangeLR=true]{RS2} + \end{pspicture} +\end{LTXexample} + + +\subsection{D Flip Flop} + +\begin{LTXexample}[width=4.5cm](3,4.5) + \begin{pspicture}(-1,-1)(3,3) + \logic[logicShowNode=true,% + logicType=D"]{D1} + \end{pspicture} +\end{LTXexample} + +\begin{LTXexample}[width=4.5cm](3,4.5) + \begin{pspicture}(-1,-1)(3,3) + \logic[logicShowNode=true,% + logicType=D,% + logicChangeLR=true]{D2} + \end{pspicture} +\end{LTXexample} + + +\subsection{JK Flip Flop} +\begin{LTXexample}[width=4.5cm](3,4.5) + \begin{pspicture}(-1,-1)(3,3) + \logic[logicShowNode=true,% + logicType=JK",% + logicKInput=2,% + logicJInput=2]{JK1} + \end{pspicture} +\end{LTXexample} + +\begin{LTXexample}[width=4.5cm](3,4.5) + \begin{pspicture}(-1,-1)(3,3) + \logic[logicShowNode=true,% + logicType=JK,% + logicKInput=2, logicJInput=4,% + logicChangeLR=true]{JK2} + \end{pspicture} +\end{LTXexample} + +\subsection{Other Options} + +\begin{LTXexample}[width=3.5cm](3,3) + \begin{pspicture}(-0.5,0)(3,2.5) + \logic[logicShowDot=true]{A0} + \end{pspicture} +\end{LTXexample} + +\begin{LTXexample}[width=4.5cm](4,3) + \begin{pspicture}(-1,0)(3,2.5) + \logic[logicWireLength=1,% + logicShowDot=true]{A1} + \end{pspicture} +\end{LTXexample} + +\bigskip +The unit of \verb|logicWireLength| is the same than the actual one for pstricks, set by +the \verb|unit| option. + +\subsection{The Node Names} +Every logic circuit is defined with its name, which should be a unique one. +If we have the following NAND circuit, then \verb|pst-circ| defines the nodes +\begin{verbatim} +NAND11, NAND12, NAND13, NAND14, NAND1Q +\end{verbatim} + +\noindent If there exists an inverted output, like for alle Flip Flops, +then the negated one gets the appendix \verb|neg| to the node name. For +example: +\begin{verbatim} +NAND1Q, NAND1Qneg +\end{verbatim} + +\begin{LTXexample}[width=3cm](3,3.5) + \begin{pspicture}(-0.5,0)(2.5,3) + \logic[logicShowNode=true,% + logicLabelstyle=\footnotesize,% + logicType=nand,% + logicNInput=4]{NAND1} + \multido{\n=1+1}{4}{% + \pscircle*[linecolor=red](NAND1\n){2pt}% + } + \pscircle*[linecolor=blue](NAND1Q){2pt} + \end{pspicture} +\end{LTXexample} + +\vspace{0.5cm} +Now it is possible to draw a line from the output to the input + +\begin{verbatim} +\ncbar[angleA=0,angleB=180]{<Node A>}{<Node B>} +\end{verbatim} + +It may be easier to print a grid since the drawing phase and then comment it out if +all is finished. + +\bigskip +\begin{LTXexample}[width=3.5cm](3,3.5) + \begin{pspicture}(-1,-1)(2.5,3) + \logic[logicShowNode=true,% + logicLabelstyle=\footnotesize,% + logicType=nand,% + logicWireLength=1,% + logicNInput=4]{NAND1} + \pnode(-0.5,0|NAND11){tempA} + \pnode(2,0|NAND1Q){tempB} + \end{pspicture} + \ncbar[angleA=-90,angleB=0,arm=0.75,% + arrows=*-*, dotsize=0.15]{tempA}{tempB} +\end{LTXexample} + +\subsection{Examples} + +\begin{LTXexample}[pos=t] + \begin{pspicture}(-1,0)(5,5) + \psgrid + \psset{logicType=nor, logicLabelstyle=\normalsize,% + logicWidth=1, logicHeight=1.5, dotsize=0.15} + \logic(1.5,0){nor1} + \logic(1.5,3){nor2} + \psline(nor2Q)(4,0|nor2Q) + \uput[0](4,0|nor2Q){$Q$} + \psline(nor1Q)(4,0|nor1Q) + \uput[0](4,0|nor1Q){$\overline{Q}$} + \psline{*-}(3.50,0|nor2Q)(3.5,2.5)(1.5,2.5) + (0.5,1.75)(0.5,0|nor12)(nor12) + \psline{*-}(3.50,0|nor1Q)(3.5,2)(1.5,2) + (0.5,2.5)(0.5,0|nor21)(nor21) + \psline(0,0|nor11)(nor11)\uput[180](0,0|nor11){R} + \psline(0,0|nor22)(nor22)\uput[180](0,0|nor22){S} + \end{pspicture} +\end{LTXexample} + +\bigskip +\begin{LTXexample}[pos=t] + \begin{pspicture}(-4,0)(5,7) + \psgrid + \psset{logicWidth=1, logicHeight=2, dotsize=0.15} + \logic[logicWireLength=0](-2,0){A0} + \logic[logicWireLength=0](-2,5){A1} + \ncbar[angleA=-180,angleB=-180,arm=0.5]{A11}{A02} + \psline[dotsize=0.15]{-*}(-3.5,3.5)(-2.5,3.5) + \uput[180](-3.5,3.5){$T$} + \psline(-3.5,0.5)(A01)\uput[180](-3.5,0.5){$S$} + \psline(-3.5,6.5)(A12)\uput[180](-3.5,6.5){$R$} + \psset{logicType=nor, logicLabelstyle=\normalsize} + \logic(1,0.5){nor1} + \logic(1,4.5){nor2} + \psline(nor2Q)(4,0|nor2Q) + \uput[0](4,0|nor2Q){$Q$} + \psline(nor1Q)(4,0|nor1Q) + \uput[0](4,0|nor1Q){$\overline{Q}$} + \psline{*-}(3,0|nor2Q)(3,4)(1,4)(0,3)(0,0|nor12)(nor12) + \psline{*-}(3,0|nor1Q)(3,3)(1,3)(0,4)(0,0|nor21)(nor21) + \psline(A0Q)(nor11) + \psline(A1Q)(nor22) + \end{pspicture} +\end{LTXexample} + + + + + \section{Adding new components} Adding new components is not simple. As a matter of fact, because of the complex -mechanism of \cs{multidipole}, there are multiple steps. The easiest way to proceed is -to draw the component, send it to me (\texttt{\makeatletter -christophe.jorssen@noos.fr\makeatother}) and I'll do the programming work regarding your -component. Nevertheless, it can take some time\dots +mechanism of \cs{multidipole}, there are multiple steps. Nevertheless, it can take some time\ldots If you want to modify the code, you need to know the following things. For a dipole, you first -need to define the following items \fvset{commandchars=/&"} +need to define the following items: -\begin{Verbatim} - \def\/emph&component/_name"{\@ifnextchar[{\pst@/emph&component/_name"}{\pst@/emph&component/_name"[]}} +\begin{lstlisting}[language=TeX] + \def\component_name{\@ifnextchar[{\pst@component_name}{\pst@component_name[]}} % - \def\pst@/emph&component/_name"[#1](#2)(#3)#4{{% - \pst@draw@dipole{#1}{#2}{#3}{#4}\pst@draw@/emph&component/_name" + \def\pst@component/_name[#1](#2)(#3)#4{{% + \pst@draw@dipole{#1}{#2}{#3}{#4}\pst@draw@component_name }\ignorespaces} % - \def\pst@multidipole@/emph&component/_name"{\@ifnextchar[{\pst@multidipole@/emph&component/_name"@}% - {\pst@multidipole@/emph&component/_name"@[]}} + \def\pst@multidipole@component_name{\@ifnextchar[{\pst@multidipole@component_name@}% + {\pst@multidipole@component_name@[]}} % - \def\pst@multidipole@/emph&component/_name"@[#1]#2{% + \def\pst@multidipole@component_name@[#1]#2{% \expandafter\def\csname pst@circ@tmp@\number\pst@circ@count@iii\endcsname{#2}% - {\setkeys{psset}{#1}% + {\psset{#1}% \ifPst@circ@parallel\aftergroup\advance\aftergroup\pst@circ@count@i\aftergroup\m@ne\fi}% \pst@circ@count@ii=\pst@circ@count@i% \advance\pst@circ@count@ii\@ne% @@ -1082,7 +1798,7 @@ need to define the following items \fvset{commandchars=/&"} \edef\pst@multidipole@output{% \the\toks0% \pst@multidipole@def@coor% - \noexpand\/emph&component/_name"[#1]% + \noexpand\component_name[#1]% (! X@\the\pst@circ@count@i\space Y@\the\pst@circ@count@i)% (! X@\the\pst@circ@count@ii\space Y@\the\pst@circ@count@ii)% {\noexpand\csname pst@circ@tmp@\number\pst@circ@count@iii\endcsname}% @@ -1090,17 +1806,16 @@ need to define the following items \fvset{commandchars=/&"} \pst@multidipole@ } % - \def\pst@draw@/emph&component/_name"{% + \def\pst@draw@component_name{% % The PSTricks code for your component % The center of the component is at (0,0) - \pnode(/emph&component/_left/_end",0){dipole@1} - \pnode(/emph&component/_right/_end",0){dipole@2} - } -\end{Verbatim} + \pnode(component_left_end,0){dipole@1} + \pnode(component_right_end,0){dipole@2}} +\end{lstlisting} Then, you have to make some changes in the \cs{multidipole} core code\dots In the definition -of \Verb+\pst@multidipole+, look for the last \Verb+\ifx+ test -\begin{Verbatim} +of \verb+\pst@multidipole+, look for the last \verb+\ifx+ test +\begin{lstlisting}[language=TeX] % ... % Extract from \pst@multidipole \else @@ -1117,9 +1832,9 @@ of \Verb+\pst@multidipole+, look for the last \Verb+\ifx+ test \fi % Extract form \pst@multidipole % ... -\end{Verbatim} -and add (in red) -\begin{Verbatim} +\end{lstlisting} +and add (marked with \verb+%%%+) +\begin{lstlisting}[language=TeX] % ... % Extract from \pst@multidipole \else @@ -1129,19 +1844,19 @@ and add (in red) \ifx\LED #4% \let\next\pst@multidipole@LED \else - /red&\ifx\/emph&component/_name" #4%" - /red&\let\next\pst@multidipole@/emph&component/_name"" - /red&\else" + \ifx\component_name #4%%% + \let\next\pst@multidipole@component_name%%% + \else%%% \let\next\ignorespaces - /red&\fi" + \fi%%% \fi \fi \fi % Extract form \pst@multidipole % ... -\end{Verbatim} -Do the same in \Verb+\pst@multidipole@+ -\begin{Verbatim} +\end{lstlisting} +Do the same in \verb+\pst@multidipole@+ +\begin{lstlisting}[language=TeX] % ... % Extract from \pst@multidipole@ \else @@ -1151,22 +1866,22 @@ Do the same in \Verb+\pst@multidipole@+ \ifx\LED #1% \let\next\pst@multidipole@LED \else - /red&\ifx\/emph&component/_name" #1%" - /red&\let\next\pst@multidipole@/emph&component/_name"" - /red&\else" + \ifx\component_name #1%%% + \let\next\pst@multidipole@component_name%%% + \else%%% \let\next\ignorespaces \pst@multidipole@output - /red&\fi" + \fi%%% \fi \fi \fi % Extract form \pst@multidipole@ % ... -\end{Verbatim} +\end{lstlisting} and that's it! All you have to do then is send your modified \texttt{pst-circ.tex} to me and it will become part of the official release of \CircPackage. -\textbf{Important:} Pay attention to the comment character \Verb+%+ +\textbf{Important:} Pay attention to the comment character \verb+%+ at the end of lines. They are \emph{very} important in order to avoid spurious blanks. \section{Acknowledgements} @@ -1175,6 +1890,15 @@ We thank of course Manuel Luque for his original work on pst-circ and for his ci drawings: this wouldn't have been possible without him. As usual, Denis Girou gave us a precious hand with some dark tricks of \TeX{} and PSTricks. Jean-C\^ome Charpentier wrote the outline of \cs{multidipole} (a story about riri, fifi and loulou\dots). -Thanks also to Douglas Waud. + +Thanks also to Douglas Waud, Patrick Drechsler (dashpot), Alan Ristow, and Ted Pavlic. + + +\nocite{*} + +{\raggedright +\bibliographystyle{plain} +\bibliography{pst-circ-doc} +} \end{document} |