Example now compiles without errors. Discussed at http://tex.stackexchan...

...ge.com/q/183331/23160
The area affected by \makeatletter is now localized to \@setplength.