The following code and its output shows that although the line drawn is scaled, the rectangle node is not scaled.
\documentclass{article}
\usepackage{tikz}
\begin{document}
\section*{Without Scaling}
\begin{tikzpicture}
\node at (0, 0) [rectangle,draw,minimum size=5cm] {A};
\draw (-2.5, 1) -- (2.5, 1) node[midway,below] {B};
\end{tikzpicture}
\section*{With Scaling}
\begin{tikzpicture}[scale=0.5]
\node at (0, 0) [rectangle,draw,minimum size=5cm] {A};
\draw (-2.5, 1) -- (2.5, 1) node[midway,below] {B};
\end{tikzpicture}
\end{document}
What is the right/recommended way to scale a tikzpicture such that:
- All drawings are scaled.
- All nodes are scaled.
- But text is not scaled.
\resizebox
) scales the text too. As already explained in my question, I do not want the text to be scaled. – Lone Learner Nov 22 '17 at 2:04