diff options
author | Karl Berry <karl@freefriends.org> | 2019-12-22 21:55:04 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-12-22 21:55:04 +0000 |
commit | 43e0008a52cd84bc0f2940deec3a5c87f982c014 (patch) | |
tree | ef911ff0e7fd75e17b82db67f9d2b927120f852c /Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex | |
parent | 3b3666879f7acdee9e0bc770836aa3524429e165 (diff) |
circuitikz (22dec19)
git-svn-id: svn://tug.org/texlive/trunk@53208 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex')
-rw-r--r-- | Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex b/Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex index a287f7a7336..5748009f135 100644 --- a/Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex +++ b/Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex @@ -57,11 +57,26 @@ \def\pgf@circ@stripdecimals#1.#2\pgf@nil{#1} -%%%%%%% -%% flipping text +%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% useful commands + +\ifpgfutil@format@is@latex + %% flipping text + \def\ctikzflipx#1{\scalebox{-1}[1]{#1}} + \def\ctikzflipy#1{\scalebox{1}[-1]{#1}} + \def\ctikzflipxy#1{\scalebox{-1}[-1]{#1}} + % text mode overbar + % Thanks to @egreg https://tex.stackexchange.com/a/24133/38080 + \def\ctikztextnot#1{$\overline{\hbox{#1}}\m@th$} +\else\ifpgfutil@format@is@plain + % text mode overbar + % Thanks to @egreg https://tex.stackexchange.com/a/24133/38080 + \def\ctikztextnot#1{$\overline{\hbox{#1}}$} +\else\ifpgfutil@format@is@context + % text mode overbar + % Thanks to @egreg https://tex.stackexchange.com/a/24133/38080 + \def\ctikztextnot#1{$\overline{\hbox{#1}}$} +\fi\fi\fi -\def\ctikzflipx#1{\scalebox{-1}[1]{#1}} -\def\ctikzflipy#1{\scalebox{1}[-1]{#1}} -\def\ctikzflipxy#1{\scalebox{-1}[-1]{#1}} \endinput |