I really like the ornaments that this block of code makes for me:
\usepackage{eso-pic}
\makeatletter
\AddToShipoutPicture{%
\begingroup
\setlength{\@tempdima}{2mm}%
\setlength{\@tempdimb}{\paperwidth-\@tempdima-2cm}%
\setlength{\@tempdimc}{\paperheight-\@tempdima}%
\put(\LenToUnit{\@tempdima},\LenToUnit{\@tempdimc}){%
\pgfornament[anchor=north west,width=2cm]{63}}
\put(\LenToUnit{\@tempdima},\LenToUnit{\@tempdima}){%
\pgfornament[anchor=south west,width=2cm,symmetry=h]{63}}
\put(\LenToUnit{\@tempdimb},\LenToUnit{\@tempdimc}){%
\pgfornament[anchor=north east,width=2cm,symmetry=v]{63}}
\put(\LenToUnit{\@tempdimb},\LenToUnit{\@tempdima}){%
\pgfornament[anchor=south east,width=2cm,symmetry=c]{63}}
\endgroup
}
\makeatother
It comes from page 11 of pgfornament and it makes all four corners have these pretty ornaments that you see in the linked PDF.
Last year I used it myself for several of my documents and achieved identical results as what you see in the linked PDF, but this year it seems to be breaking with no informative error message. Instead of all four corners getting these nice ornaments, now only the two left corners get the ornaments and the typesetting process halts with this error message for every decorated page:
Missing number, treated as zero.
<to be read again>
\relax
I think I must have upgraded one or more packages since I last used this code successfully and that's probably why it's breaking, but I'm mystified by the error message and clueless as to how to fix the problem. I've confirmed (by commenting out the block of code) that this code is definitely what is throwing the error message, and even though I can continue compiling with "s", the PDF output no longer has all 4 corners decorated, so I'd like to fix it.
Any suggestions on how to fix this?

calcpackage? Otherwise, you'll receive the error you mention. – Gonzalo Medina Jul 16 '14 at 14:55