| 1 |
divert(-1) |
| 2 |
pgf.m4 Initialization for Tikz-pgf. |
| 3 |
|
| 4 |
* Circuit_macros Version 11.0, copyright (c) 2026 J. D. Aplevich under * |
| 5 |
* the LaTeX Project Public Licence in file Licence.txt. The files of * |
| 6 |
* this distribution may be redistributed or modified provided that this * |
| 7 |
* copyright notice is included and provided that modifications are clearly * |
| 8 |
* marked to distinguish them from this distribution. There is no warranty * |
| 9 |
* whatsoever for these files. * |
| 10 |
|
| 11 |
define(`m4picprocessor',dpic) |
| 12 |
define(`m4postprocessor',pgf) |
| 13 |
|
| 14 |
ifdef(`libgen_',,`include(libgen.m4)divert(-1)')dnl |
| 15 |
|
| 16 |
define(`ultrathinlines_',`linethick = 0.1 |
| 17 |
arrowwid = 0.03*scale; arrowht = 0.04*scale ') |
| 18 |
define(`verythinlines_',`linethick = 0.2 |
| 19 |
arrowwid = 0.04*scale; arrowht = 0.05*scale ') |
| 20 |
define(`thinlines_',`linethick = 0.4 |
| 21 |
arrowwid = 0.04*scale; arrowht = 0.2/3*scale ') |
| 22 |
define(`semithicklines_',`linethick = 0.6 |
| 23 |
arrowwid = 0.045*scale; arrowht = 0.8*scale ') |
| 24 |
define(`thicklines_',`linethick = 0.8 |
| 25 |
arrowwid = 0.05*scale; arrowht = 0.1*scale ') |
| 26 |
define(`verythicklines_',`linethick = 1.2 |
| 27 |
arrowwid = 0.05*3/2*scale; arrowht = 0.1*3/2*scale ') |
| 28 |
define(`ultrathicklines_',`linethick = 1.6 |
| 29 |
arrowwid = 0.05*2*scale; arrowht = 0.1*2*scale ') |
| 30 |
`linethick_(x) set line width to x pt' |
| 31 |
define(`linethick_',`linethick = ifelse(`$1',,`0.8',`$1'); dnl |
| 32 |
arrowwid = ifelse(`$1',,`0.05',linethick/16)*scale; dnl |
| 33 |
arrowht = ifelse(`$1',,`0.1',linethick/8)*scale;') |
| 34 |
|
| 35 |
dnl `tikznode(tikz_node_name,[location],[string]) |
| 36 |
dnl Define a tikz node at location (default Here) |
| 37 |
dnl Must be used in the outermost scope of a pic |
| 38 |
dnl diagram, and .PS <number> scaling is not allowed |
| 39 |
dnl (thanks to Arnold Knott).' |
| 40 |
define(`tikznode',`command dnl |
| 41 |
sprintf("\draw (%g,%g) node[inner sep=0pt, minimum size=0pt](`$1'){`$3'};",dnl |
| 42 |
ifelse(`$2',,Here,`($2)').x/scale,ifelse(`$2',,Here,`($2)').y/scale)') |
| 43 |
|
| 44 |
divert(0)dnl |