Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!cs.utexas.edu!ut-sally!dlau From: dlau@ut-sally.UUCP (David Lau) Newsgroups: comp.text Subject: Re: Joining boxes diagonally Message-ID: <12103@ut-sally.UUCP> Date: 16 Jun 88 10:17:12 GMT References: <47700016@uxe.cso.uiuc.edu> Reply-To: dlau@ut-sally.UUCP (David Lau) Organization: U. Texas CS Dept., Austin, Texas Lines: 23 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