🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #6720

Re: Is there a non-icky way of doing this?

#6720
From: dhosek
Date: Thu, 11 Jan 1990 03:26
24 lines
1443 bytes
In article <1990Jan11.013500.16948@athena.mit.edu> joe@athena.mit.edu (Joseph C Wang) writes:
>I'd like to do the following in TeX:

>left_text1 .......... [hbox] ................ right_text1
>other_left_text ..... [hbox] ................ right_text2

>What I want is for the hbox in the middle to be centered between the
>right and left margins.  Left text of various lengths to be flush left
>with the left margin, right text of several lengths to be flush right
>with the right margin, and leaders linking the text and the hbox.

\def\tripleline#1#2#3{\setbox0=\hbox{#2} \dimen0=-\wd0 
         \advance\dimen0 by\hsize
         \divide\dimen0 by 2
         \line{\hbox to \dimen0{#1\dotfill}\box0\hbox to \dimen0{\dotfill#3}}

I wonder if it will work.

-dh
-- 
"Odi et amo, quare id faciam, fortasse requiris?
   nescio, sed fieri sentio et excrucior"          -Catullus
D.A. Hosek.                        UUCP: uunet!jarthur!dhosek
                               Internet: dhosek@hmcvax.claremont.edu
Technical Details
Message-ID: <3725@jarthur.Claremont.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!usc!jarthur!dhosek
References: <1990Jan11.013500.16948@athena.mit.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!usc!jarthur!dhosek
From: dhosek@jarthur.Claremont.EDU (dhosek)
Newsgroups: comp.text
Subject: Re: Is there a non-icky way of doing this?
Message-ID: <3725@jarthur.Claremont.EDU>
Date: 11 Jan 90 03:26:21 GMT
References: <1990Jan11.013500.16948@athena.mit.edu>
Distribution: na
Organization: Pitzer College, Claremont, CA 91711
Lines: 24