diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/tikzcodeblocks')
-rw-r--r-- | Master/texmf-dist/tex/latex/tikzcodeblocks/tikzcodeblocks.sty | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/Master/texmf-dist/tex/latex/tikzcodeblocks/tikzcodeblocks.sty b/Master/texmf-dist/tex/latex/tikzcodeblocks/tikzcodeblocks.sty index 35dcd987e5b..c548a427fd9 100644 --- a/Master/texmf-dist/tex/latex/tikzcodeblocks/tikzcodeblocks.sty +++ b/Master/texmf-dist/tex/latex/tikzcodeblocks/tikzcodeblocks.sty @@ -320,23 +320,23 @@ openroberta/.style={ % % https://tex.stackexchange.com/questions/223910/reference-a-nodes-color-by-using-node-name % get color of 'this' element -every text node part/.add code={}{ - \globalcolorstrue - \ifx\tikz@fillcolor\pgfutil@empty - \pgfutil@colorlet{\tikz@fig@name.fill}{.} - \else - \pgfutil@colorlet{\tikz@fig@name.fill}{\tikz@fillcolor} - \fi - \ifx\tikz@strokecolor\pgfutil@empty - \pgfutil@colorlet{\tikz@fig@name.draw}{.} - \else - \pgfutil@colorlet{\tikz@fig@name.draw}{\tikz@strokecolor} - \fi - \ifx\tikz@textcolor\pgfutil@empty - \pgfutil@colorlet{\tikz@fig@name.text}{.} - \else - \pgfutil@colorlet{\tikz@fig@name.text}{\tikz@textcolor} - \fi +every text node part/.add code={}{% +\globalcolorstrue% +\ifx\tikz@fillcolor\pgfutil@empty% +\pgfutil@colorlet{\tikz@fig@name.fill}{.}% +\else% +\pgfutil@colorlet{\tikz@fig@name.fill}{\tikz@fillcolor}% +\fi% +\ifx\tikz@strokecolor\pgfutil@empty% +\pgfutil@colorlet{\tikz@fig@name.draw}{.}% +\else% +\pgfutil@colorlet{\tikz@fig@name.draw}{\tikz@strokecolor}% +\fi% +\ifx\tikz@textcolor\pgfutil@empty% +\pgfutil@colorlet{\tikz@fig@name.text}{.}% +\else% +\pgfutil@colorlet{\tikz@fig@name.text}{\tikz@textcolor}% +\fi% }, } %end tikzset |