From 558123a20a5461e842ec9f96f3832f4f6ccc3c2f Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 26 Apr 2022 20:44:12 +0000 Subject: circuitikz (26apr22) git-svn-id: svn://tug.org/texlive/trunk@63145 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/generic/circuitikz/pgfcirc.defines.tex | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'Master/texmf-dist/tex/generic') diff --git a/Master/texmf-dist/tex/generic/circuitikz/pgfcirc.defines.tex b/Master/texmf-dist/tex/generic/circuitikz/pgfcirc.defines.tex index a5075f08f66..46ec314f570 100644 --- a/Master/texmf-dist/tex/generic/circuitikz/pgfcirc.defines.tex +++ b/Master/texmf-dist/tex/generic/circuitikz/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 -- cgit v1.2.3