diff options
author | Norbert Preining <norbert@preining.info> | 2022-04-27 03:00:38 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-04-27 03:00:38 +0000 |
commit | 7b9369df36adafdc30953d0c1582dc2cd47bc1b4 (patch) | |
tree | 64a5b8bce28bba2730321709394cf4e2992a73d1 /graphics/pgf/contrib/circuitikz/tex | |
parent | 6f7554fc6cab67e3dc397ce7a942889eedbc4967 (diff) |
CTAN sync 202204270300
Diffstat (limited to 'graphics/pgf/contrib/circuitikz/tex')
-rw-r--r-- | graphics/pgf/contrib/circuitikz/tex/circuitikz.sty | 5 | ||||
-rw-r--r-- | graphics/pgf/contrib/circuitikz/tex/pgfcirc.defines.tex | 13 | ||||
-rw-r--r-- | graphics/pgf/contrib/circuitikz/tex/t-circuitikz.tex | 5 |
3 files changed, 16 insertions, 7 deletions
diff --git a/graphics/pgf/contrib/circuitikz/tex/circuitikz.sty b/graphics/pgf/contrib/circuitikz/tex/circuitikz.sty index c66633e787..73ef108579 100644 --- a/graphics/pgf/contrib/circuitikz/tex/circuitikz.sty +++ b/graphics/pgf/contrib/circuitikz/tex/circuitikz.sty @@ -16,8 +16,8 @@ \providecommand\DeclareRelease[3]{} \providecommand\DeclareCurrentRelease[2]{} -\def\pgfcircversion{1.5.0} -\def\pgfcircversiondate{2022/02/22} +\def\pgfcircversion{1.5.1} +\def\pgfcircversiondate{2022/02/26} \DeclareRelease{0.4}{2012/12/20}{circuitikz-0.4-body.tex} \DeclareRelease{v0.4}{2012/12/20}{circuitikz-0.4-body.tex} @@ -46,7 +46,6 @@ %% Version 3.0 of pgf/TikZ is required \RequirePackage{tikz} -\RequirePackage{regexpatch}%for color hack \usetikzlibrary{calc} % % "arrows" library is deprecated, and behave badly with diff --git a/graphics/pgf/contrib/circuitikz/tex/pgfcirc.defines.tex b/graphics/pgf/contrib/circuitikz/tex/pgfcirc.defines.tex index a5075f08f6..46ec314f57 100644 --- a/graphics/pgf/contrib/circuitikz/tex/pgfcirc.defines.tex +++ b/graphics/pgf/contrib/circuitikz/tex/pgfcirc.defines.tex @@ -105,8 +105,17 @@ \pgfkeys{/tikz/fill/.add code={}{% \edef\ctikz@fillcolor{#1}}} % +% This is to try to track the "implicit" color specification of Tikz, +% like \draw[red,...] ...; which are not exactly the same than saying +% \draw[color=red,...] ...; +% This is too dangerous to issue by default (it was in 1.5.0 and it +% was an error), so we will just define a command and tell it in the +% manual. +% It needs \usepackage{regexpatch} (which is not compatible with +% xpatch, unfortunately) % I do not know how to do the xpatchcmd in ConTeXt... % +\def\ctikzPatchImplicitColor{% \ifpgfutil@format@is@latex \pgfkeysgetvalue{/tikz/.unknown/.@cmd}{\my@temp} \xpatchcmd*\my@temp % use starred-form to replace all (two places actually) @@ -119,8 +128,10 @@ \pgfkeyslet{/tikz/.unknown/.@cmd}{\my@temp} \else \pgfutil@packagewarning{circuitikz}{% - Not on LaTeX: patch failed, use only explicit color=...(see manual)} + Not on LaTeX: patch failed, ^^J% + use only explicit color=...(see manual).} \fi +} % \def\pgf@circ@setcolor{% \ifpgf@circ@setcolor diff --git a/graphics/pgf/contrib/circuitikz/tex/t-circuitikz.tex b/graphics/pgf/contrib/circuitikz/tex/t-circuitikz.tex index 5158fbb561..261eeafcc5 100644 --- a/graphics/pgf/contrib/circuitikz/tex/t-circuitikz.tex +++ b/graphics/pgf/contrib/circuitikz/tex/t-circuitikz.tex @@ -10,12 +10,11 @@ % % See the files gpl-3.0_license.txt and lppl-1-3c_license.txt for more details. -\def\pgfcircversion{1.5.0} -\def\pgfcircversiondate{2022/02/22} +\def\pgfcircversion{1.5.1} +\def\pgfcircversiondate{2022/02/26} \writestatus{loading}{\pgfcircversiondate{} The CircuiTikz circuit drawing package version \pgfcircversion} \usemodule[tikz] -\usemodule[regexpatch]%for color hack \startmodule[circuitikz] \usetikzlibrary[calc] |