[Tex/LaTex] Scale all TikZ images in a document by the same factor

scalingtikz-pgf

Is it possible to scale all TikZ pictures in a document by the same factor globally?

Something like \usepackage[scale=0.9]{tikz} doesn't work.

Best Answer

Every tikzpicture uses the style every picture. So if you put \tikzset{every picture/.append style={scale=0.9}} near the start of your document, all tikzpictures will be scaled by that amount (in addition to any scales you might already be applying to individual tikzpictures).

\documentclass{article}
\usepackage{tikz}
\begin{document}
\tikzset{every picture/.append style={scale=2}}
First picture:
\begin{tikzpicture}[baseline]
\node [transform shape,anchor=base, draw] {Node 1};
\end{tikzpicture}

Second picture: 
\begin{tikzpicture}[baseline]
\node [transform shape,anchor=base, draw] {Node 2};
\end{tikzpicture}
\end{document}