ceblair@uxe.cso.uiuc.edu (06/14/88)
I have done a little bit with the boxes in TeX, but there's a lot I don't know. My apologies if this is an easy question: Is there a simple way to write a macro \di#1#2 which takes boxes defined by #1 and #2 and gives a new box with lower right corner of #1 joined to upper left corner of #2? If possible, I would prefer to avoid using box registers. Charles Blair
dlau@ut-sally.UUCP (David Lau) (06/16/88)
In article <47700016@uxe.cso.uiuc.edu> ceblair@uxe.cso.uiuc.edu writes: > > I have done a little bit with the boxes in TeX, but there's a lot I don't >know. My apologies if this is an easy question: > > Is there a simple way to write a macro \di#1#2 which takes boxes defined by >#1 and #2 and gives a new box with lower right corner of #1 joined to upper >left corner of #2? If possible, I would prefer to avoid using box registers. > Charles Blair This should work: \def\di#1#2{% \vbox{ \moveright\wd#2\box#1 \nointerlineskip \box#2 }% } David