| 1 |
divert(-1) |
| 2 |
pstricks.m4 Initialization for PSTricks. |
| 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',pstricks) |
| 13 |
|
| 14 |
ifdef(`libgen_',,`include(libgen.m4)divert(-1)')dnl |
| 15 |
|
| 16 |
define(`thinlines_',`linethick = 0.4 |
| 17 |
arrowwid = 0.04*scale; arrowht = 0.2/3*scale |
| 18 |
command "\psset{linewidth=0.4pt}%";') |
| 19 |
|
| 20 |
define(`thicklines_',`linethick = 0.8 |
| 21 |
arrowwid = 0.05*scale; arrowht = 0.1*scale |
| 22 |
command "\psset{linewidth=0.8pt}%";') |
| 23 |
|
| 24 |
`linethick_(x) |
| 25 |
Set line width to x pt and default |
| 26 |
arrowhead parameters' |
| 27 |
define(`linethick_',`linethick = ifelse(`$1',,`0.8',`$1'); dnl |
| 28 |
arrowwid = ifelse(`$1',,`0.05',linethick/16)*scale; dnl |
| 29 |
arrowht = ifelse(`$1',,`0.1',linethick/8)*scale;') |
| 30 |
|
| 31 |
`Patch PSTricks to use all coordinate pairs |
| 32 |
inside \pscustom |
| 33 |
Older version for PSTricks prior to Aug 2010:' |
| 34 |
define(`M4PatchPSTricks', |
| 35 |
`command "\makeatletter\@ifundefined{ifPst@noCurrentPoint}% |
| 36 |
{\@ifundefined{MPS@Patch}{\gdef\MPS@Patch{}% |
| 37 |
\typeout{ Dpic -p: patching psbezier in pstricks.tex (some versions) }% |
| 38 |
\def\psbezier@ii{\addto@pscode{% |
| 39 |
\ifshowpoints true \else false \fi\tx@OpenBezier% |
| 40 |
\ifshowpoints\tx@BezierShowPoints\fi}\end@OpenObj}}{}}% |
| 41 |
{\@ifundefined{MPS@PatchMsg}{\gdef\MPS@PatchMsg{}% |
| 42 |
\typeout{ Dpic -p: Setting noCurrentPoint to use all coord pairs }}{}% |
| 43 |
\psset{noCurrentPoint}}\makeatother%"') |
| 44 |
`For PSTricks since Aug 2010:' |
| 45 |
define(`M4PatchPSTricks',`command "\psset{noCurrentPoint}%"') |
| 46 |
|
| 47 |
divert(0)dnl |