home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!uwm.edu!caen!destroyer!cs.ubc.ca!unixg.ubc.ca!reg.triumf.ca!asnd
- From: asnd@reg.triumf.ca (Donald Arseneau)
- Newsgroups: comp.text.tex
- Subject: Re: HELP: attack of \vbox and \hbox
- Date: 20 Nov 1992 23:20 PST
- Organization: TRIUMF: Tri-University Meson Facility
- Lines: 36
- Distribution: world
- Message-ID: <20NOV199223205120@reg.triumf.ca>
- References: <By0yFz.DoH@news.cso.uiuc.edu>
- NNTP-Posting-Host: reg.triumf.ca
- News-Software: VAX/VMS VNEWS 1.41
-
- In article <By0yFz.DoH@news.cso.uiuc.edu>, schneid@uxa.cso.uiuc.edu (Mike Schneider) writes...
- % >I need a plain TeX solution for this problem. I want to have
- % >text displayed on the page like this:
- % >
- % > blah blah qwe qwa asd asdf asdf asdf $1000
- % > asdf asdf asdf asdf sadf adf asdf
- % >
- % > asdf asdf asdfasd asdf asdf adf asdf $1500
- % >
- % > asdf asdf asdf asdf asdf asdf asdf $3000
- % > asdf asdf asdf asdf asdf asdf asf
- % > asdf asd asdfas asdfasdf asdfasdf
- % >
- % >Of course the text I am using isn't really "blah asdf etc."
- % >My problem is that the whole thing need to be in a vertical box
- % >and one can't specify the *width* of a vbox, right? I want the
- % >text in each subsection to be in paragraph form. Let's say
- % >textwidth of 5 inches, .5 inch between text and $amounts,
- % >pagewidth of 6.5 inches. HELP!
-
-
- \def\amount#1{\par\noindent
- \hbox to0pt{\kern\hsize \kern-\rightskip \kern.5in
- \$#1\hss}\ignorespaces}
-
- \vbox{
- \hsize=6.5in \rightskip=6.5in \advance\rightskip -5in\relax
-
- \amount{1000} blah blah qwe qwa asd asdf asdf asdf
- asdf asdf asdf asdf sadf adf asdf
-
- \amount{1500}asdf asdf asdfasd asdf asdf adf asdf
-
- }
-
- \bye Donald Arseneau asnd@reg.triumf.ca
-