Article View: aus.computers.tex
Article #372Help with plain TeX centering?
From: Jason Parker
Date: Wed, 12 Mar 1997 00:00
Date: Wed, 12 Mar 1997 00:00
34 lines
1430 bytes
1430 bytes
Hi all.
At the moment, I've decided that LaTeX doesn't suit my needs
for small projects, and so I've decided to use plain TeX instead.
I've run into a small problem though, when trying to write a
`\center' macro for TeX. What I'd like to be able to do is something
like this:
\center{lots of text, that goes over one line, blah blah blah}
and have TeX do the line breaks for me. I tried using
\halign{\hfil#\hfil\cr
text text text\cr
...
}
but this means that *I* have to do the line breaks. Obviously this
is not acceptable. I did think of constructing a vbox, with the
width set to an apporpriate value, but I can't work out how to get
at the individual lines again.
Any suggestions?
Jason Parker
ph330812@student.uq.edu.au
---
``Deserves it! I daresay he does. Many that live deserve death. And
some that die deserve life. Can you give it to them? Then do not be
too eager to deal out death in judgement. For even the very wise
cannot see all ends.'' Gandalf, LoTR. ph330812@student.uq.edu.au
Technical Details
Message-ID:
<5g5ueg$a6n$1@nargun.cc.uq.edu.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10b0c4,b53ff03cec77b3b0,start X-Google-Attributes: gid10b0c4,public From: ph330812@student.uq.edu.au (Jason Parker) Subject: Help with plain TeX centering? Date: 1997/03/12 Message-ID: <5g5ueg$a6n$1@nargun.cc.uq.edu.au> X-Deja-AN: 224888965 Organization: University of Queensland Newsgroups: aus.computers.tex