cir­cuit-macros – M4 macros for elec­tric cir­cuit di­a­grams

A set of m4 macros for draw­ing high-qual­ity elec­tric cir­cuits
con­tain­ing fun­da­men­tal el­e­ments, am­pli­fiers, tran­sis­tors, and
ba­sic logic gates to in­clude in TeX, LaTeX, or sim­i­lar
doc­u­ments. Some tools and ex­am­ples for other types of di­a­grams
are also in­cluded.

The macros can be eval­u­ated to draw­ing com­mands
in the pic lan­guage, which is very easy to un­der­stand and which
has a good power/com­plex­ity ra­tio. Pic con­tains el­e­ments of a
sim­ple pro­gram­ming lan­guage, and is well-suited to line draw­ings
re­quir­ing para­met­ric or con­di­tional com­po­nents, fine tun­ing,
sig­nif­i­cant ge­o­met­ric cal­cu­la­tions or rep­e­ti­tion, or that are
nat­u­rally block struc­tured or tree struc­tured. (The m4 and pic
pro­ces­sors are read­ily avail­able for Unix and PC ma­chines.)

Al­ter­na­tive out­put macros can cre­ate TeX out­put to be read by
pstricks, TikZ com­mands for use
by the pgf bun­dle, or SVG.