diff options
author | Karl Berry <karl@freefriends.org> | 2022-04-26 20:44:12 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-04-26 20:44:12 +0000 |
commit | 558123a20a5461e842ec9f96f3832f4f6ccc3c2f (patch) | |
tree | 92c7e56531e501291e0d99ad07ce5b07273217ff /Master/texmf-dist/tex/generic | |
parent | 9b2e7921d3466dc0df8dd07b7a855b0e4aa6c0ce (diff) |
circuitikz (26apr22)
git-svn-id: svn://tug.org/texlive/trunk@63145 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic')
-rw-r--r-- | Master/texmf-dist/tex/generic/circuitikz/pgfcirc.defines.tex | 13 |
1 files changed, 12 insertions, 1 deletions
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 |