For variables describing distances, you would use
\newlength (and manipulate the values with
Similarly you have access to
\newcounter for things like section and figure numbers which should increment throughout the document. I've used this one in the past to provide code samples that were numbered separatly of other figures...
Also of note is
\makebox which allows you to store a bit of laid-out document for later re-use (and for use with