That was a bit hard to find, here's a more direct link
. In a hat, that's trickier to maintain the pattern. You might have to do panels of the lattice stitch with stockinette or reverse stockinette between and decrease in those sections. You could add more plain sts at the edges of the pattern repeats, the basic repeat is 4 sts, which you'd work across the panel, then have 4 or 6 sts between each one instead of 2.