But what is the reason for \ifvmode ? I was thinking that the \unhbox would actually contribute something to the horizontal list (which could therefore alter things), but I guess it doesn't. So never mind. epsf.tex has strange interactions with \leavevmode and \begin{center} in LaTeX, but I suppose something else is going on there.