🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #4803

Re: Joining boxes diagonally

#4803
From: David Lau
Date: Thu, 16 Jun 1988 10:17
23 lines
1067 bytes
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
Technical Details
Message-ID: <12103@ut-sally.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!cs.utexas.edu!ut-sally!dlau
References: <47700016@uxe.cso.uiuc.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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