This is LaTeX code:

[latex]
|z-i-1|=|x+iy-i-1|=|(x-1)+i(y-1)|=\sqrt{(x-1)^2+(y-1)^2}.
[/latex]