This works:
\documentclass{article}
\usepackage{eso-pic}
\begin{document}
\AddToShipoutPictureBG*
{
\setlength{\unitlength}{1 mm}
\put(52, 240){Text}
}
Some more text
\end{document}
EDIT: I realize I was a bit too quick when first posting, assuming that
\put(52 mm, 240 mm){...}
would be equivalent to
\setlength{\unitlength}{1 mm}
\put(52, 240){...}
So the question then becomes, if I have a predefined length \mylength how can I get something like the following to work?
\setlength{\unitlength}{1 mm}
\put(52, \mylength){...}
\usepackage{picture}? – egreg Nov 08 '15 at 14:53\putso that works, I'd expect your second to work. Please fix your example to be a complete document that generates the error. – David Carlisle Nov 08 '15 at 15:11\usepackage{picture}solved the problem. – user44413 Nov 08 '15 at 17:09