[texhax] Changing reference point of a box in a nestable way

Misha Aizatulin tari3x at googlemail.com
Tue Aug 30 02:41:58 CEST 2011

hi all,

  I'm trying to define a command that would work a bit like clap but
vertically, i.e. packages its argument in a box with depth equal to
\ht\strutbox. The main use for that is to allow top alignment in tabular
without having to manually specify widths of columns.

  So far I came up with the attached code (with a bit of voodoo to be
honest). It works, but the only problem is that it can't be nested:
\vlap{\vlap{x}} produces no output at all. I'm not sure about the
reason, suspect that the use of the box in the inner vlap screws up the
use of the box in the outer vlap.

  Would be thankful for any comments on how to fix this!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vlap.tex
Type: text/x-tex
Size: 889 bytes
Desc: not available
URL: <http://tug.org/pipermail/texhax/attachments/20110830/ab219b90/attachment.bin>

More information about the texhax mailing list