tikz add tag
निरंजन
For example if I have -

```
\documentclass[border=0.5cm]{standalone}
\usepackage{tikz}

\begin{document}
	\begin{tikzpicture}
		\draw (-1,0) -- (0,2) -- (1,0) -- cycle;
	\end{tikzpicture}
\end{document}
```

producing an equilateral triangle, can I also have an environment which will divide/multiply/add/subtract every coordinate of the picture to give us the same picture in different sizes? eg. something like -

```
\documentclass[border=0.5cm]{standalone}
\usepackage{tikz}

\begin{document}
	\begin{tikzmath}{x*2}
		\begin{tikzpicture}
		\draw (-1,0) -- (0,2) -- (1,0) -- cycle;
		\end{tikzpicture}
	\end{tikzmath}
\end{document}
```
The environment should force the interpretation of all the x coordinates being multiplied by two. Is there any package to achieve this?
Top Answer
user 3.14159
This is what `scale` does. Note that nodes and pics require `transform shape` if you add `scale` to the options of the `tikzpicture` to be effective.



```
\documentclass[border=0.5cm]{standalone}
\usepackage{tikz}

\begin{document}
	\begin{tikzpicture}
		\draw (-1,0) -- (0,2) -- (1,0) -- cycle;
	\end{tikzpicture}
	\begin{tikzpicture}[scale=2]
		\draw (-1,0) -- (0,2) -- (1,0) -- cycle;
	\end{tikzpicture}
\end{document}
```


![Screen Shot 2020-03-15 at 10.11.39 PM.png](/image?hash=3beec76531035c0409d1a5ff8f04c65486f68fbdd06c083efd2ead9ceeeb7703)

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.