🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #6710

Re: own primitives in pic

#6710
From: Reinhard Foessmeier
Date: Wed, 10 Jan 1990 07:34
45 lines
2516 bytes
In article <143@elctr.UUCP> hbr@elctr.UUCP (Hans B| Randgaard) writes:
> ...
>I have tried to generate a new figure(a rhomb) to work like the
>other primitives(circle, box etc.) in pic, but I can't seem to
>get it working properly. I can understand from the documentation
>that it should be possible to do so by combining the "object block
>definitions with "macro" definitions, but the combinations I have
>tried didn't function.
>
>Can any of you give me an example which I can hack ?
> ...

Jen ekzemplo por elektronikaj    Here's an example for electronic circuits
cirkvitoj (komentoj germanaj,    (comments in German, unfortunately; the
bedawrinde; la ekzemplo estas    example is from a book i'm preparing):
el libro, kiun mi preparas):

 .PS
 define transistor ' [
     KR: circle rad 0.4            # Kreis 
         box width 0.02 height 0.5 at KR
     BA: KR - 0.7,0                # Basisanschlu\(ss 
     EM: KR + 0.5,-0.5             # Emitteranschlu\(ss 
     KO: KR + 0.5,0.5              # Kollektoranschlu\(ss 
         arrow from KR \
             to 0.4 between KR and EM
         line from KR to KO        # Striche 
         line from KR to EM        #  zu den 
         line from KR to BA        #  Anschl\(u:ssen 
     ] '

 define widerstand ' [
     W: box width 0.2 height 0.5 $1    # Kasten, Text $1
        line from W.n up 0.2       # mit zwei 
        line from W.s down 0.2     # Anschl\(u:ssen 
     ] '

 T1: transistor                           |# Transistor T1
 T2: transistor with .BA at T1.KO         |# T2, Basis an Kollektor
 widerstand("R") with .s at T1.KO         |# Widerstand R
 .PE
----------------------------------------------
Reinhard F\"ossmeier, Technische Univ. M\"unchen | "Sendmail can safely be made
foessmeier@infovax.informatik.tu-muenchen.dbp.de | setuid to root" (E. Allman:
   [ { relay.cs.net | unido.uucp } ]             | SM Install&Operation Guide)
Technical Details
Message-ID: <1037@tuminfo1.lan.informatik.tu-muenchen.dbp.de>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!unido!fauern!tumuc!lan!foessmei
References: <143@elctr.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!unido!fauern!tumuc!lan!foessmei
From: foessmei@lan.informatik.tu-muenchen.dbp.de (Reinhard Foessmeier)
Newsgroups: comp.text
Subject: Re: own primitives in pic
Message-ID: <1037@tuminfo1.lan.informatik.tu-muenchen.dbp.de>
Date: 10 Jan 90 07:34:09 GMT
References: <143@elctr.UUCP>
Sender: news@lan.informatik.tu-muenchen.dbp.de
Reply-To: foessmei@lan.informatik.tu-muenchen.dbp.de (Reinhard Foessmeier)
Organization: Inst. fuer Informatik, TU Muenchen, W. Germany
Lines: 45