I want to write some equations on graph paper generated by tikz.
The problem I have is the line spacing in an equation environment.
- On left side of the following picture you see what I want.
- On the right side you see what I got.
I don't understand why the line spacing is different. The right one should look like the left one.
MWE
\documentclass{scrartcl}
\usepackage{amsmath}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
% Graph Paper
\draw[step=0.5,help lines,black!20] (-0.95,0.95) grid (15.95,-14.95);
% Equation 1
\draw (0.5,0) node[below right] {\(y = 5 - 3x\)};
\draw (0.5,-1) node[below right] {\(y = 5 - 3x\)};
\draw (0.5,-2) node[below right] {\(y = 5 - 3x\)};
\draw (0.5,-3) node[below right] {\(y = 5 - 3x\)};
\draw (0.5,-4) node[below right] {\(y = 5 - 3x\)};
% Equation 2
\draw (0.5,0.65) node[below right] {
\begin{minipage}{\linewidth}
\begin{align*}
y &= 5 - 3x\\[0.5cm]
y &= 5 - 3x\\[0.5cm]
y &= 5 - 3x\\[0.5cm]
y &= 5 - 3x\\[0.5cm]
y &= 5 - 3x
\end{align*}
\end{minipage}
};
\end{tikzpicture}
\end{document}
Additional Information
To use an align-environment in tikz you have to put it in a minipage-environment (https://tex.stackexchange.com/a/106813/101831).