Note, $\phi$ is the angle between the vector $\mathbf{k}$ and $\mathbf{G}$, which is not the same as the angle between the incoming and scattered waves $\theta$.
...
...
@@ -594,17 +594,17 @@ It turns out that Miller planes are normal to the reciprocal lattice vector $\ma
Substituting the expression for $\lvert \mathbf{G} \rvert$ into the expression for the distance between Miller planes we get: