A three-dimensional lattice, with dimensions L_x, L_y, L_z marked, as well as the lattice spacing a. The cube is outlined in red and little grey dots appear at each of the vertices.
I spent longer today than I care to admit figuring out how to do (nested) for loops in TikZ to make this figure.
I still think the syntax for both control flow as well as macros in TikZ is poorly documented; there aren't any good examples and I had to experiment until it worked.
#TeXLaTeX #TikZ