I'd like to pass a measure of length in form of a string, i.e.
\setlength{string}
or
\setlength{'string'}
instead of
\setlength{2.5cm}
I seem to remember seeing something like that somewhere in LaTeX, but can't find it. Appreciate your input!
\settowidth{\somelength}{string}? – egreg Jan 27 '16 at 22:23