[texhax] Question about \setbox

Heiko Oberdiek heiko.oberdiek at googlemail.com
Fri Sep 16 10:56:21 CEST 2011

On Fri, Sep 16, 2011 at 06:13:27PM +1000, VAFA KHALIGHI wrote:

> Why this does not work:
>  \setbox0=\vbox{I am a vbox}
> \setbox1=\hbox{\unvbox0}

You are in restricted horizontal mode inside \hbox. There
a "vertical command" (\unvbox, \unvcopy, \halign, ...}
is forbidden ("The TeX book", Chapter 25 "Summary of Horizonal Mode).

Yours sincerely
  Heiko Oberdiek

More information about the texhax mailing list