I have a schematics (grossly simplified in the below MWE) that I would like to use both upright and rotated, from the same source (i.e. the only difference should be in the \begin{tikzpicture} parameters, not in the code of individual nodes).
The problem is that if I use rotate without transform shape, the whole picture falls apart; and if I use it with transform shape, then the labels are rotated as well. I'm looking for a setting that behaves like transform shape, but applies a reverse rotation to all text labels.
Based on this answer, I tried the following, but it doesn't seem to do anything:
\tikzset{
every label/.append style={reset transform},
reset transform/.code={\pgftransformreset}
}
Full code:
\documentclass[varwidth,margin=3mm]{standalone}
\usepackage{tikz}
\usepackage{circuitikz}
\begin{document}
\newcommand{\schematics}{
\draw (0,0) nodedipchip, num pins=6{\ttfamily ADD};
\draw (add.pin 1) -- ++(-1,0) node[left]{\ttfamily x0};
\draw (add.pin 3) -- ++(-1,0) node[left]{\ttfamily y0};
\draw (add.pin 5) -- ++(1,0) node[right]{\ttfamily z0};
}
\begin{tikzpicture}
\schematics
\end{tikzpicture}
\begin{tikzpicture}[rotate=-90]
\schematics
\end{tikzpicture}
\begin{tikzpicture}[rotate=-90,transform shape]
\schematics
\end{tikzpicture}
\end{document}



labelandciruitikzlabels are different things... – Rmano Jun 13 '21 at 09:17