Article View: comp.text.tex
Article #1656\framebox or \fbox around text
From: Sandeep Kochhar
Date: Fri, 01 Jun 1990 02:59
Date: Fri, 01 Jun 1990 02:59
23 lines
1294 bytes
1294 bytes
How do I create a box that exactly fits a given piece of text that
contains line breaks?
For example, I want a box around the text
hello\\
world
Unfortunately, if I try \fbox{hello\\world}, I get a box around
"hello world", but without the line break. Shouldn't it be easy
enough for latex to figure out the width of hello\\world as easily
as it does for hello world?
Right now, I do something like
\fbox{\parbox{1in}{hello\\world}}
which sort of works, except I have to guess at the width of the parbox.
Any suggestions?
Thanks.
Sandeep Kochhar
(617) 495-3988 mail: kochhar@harvard.harvard.edu
Harvard University kochhar@harvard.csnet
33 Oxford st, kochhar@harvard.uucp
Cambridge, MA 02138 kochhar@harvard.bitnet
Technical Details
Message-ID:
<3104@husc6.harvard.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!ogicse!husc6!calliope!kochharShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!ogicse!husc6!calliope!kochhar From: kochhar@calliope.harvard.EDU (Sandeep Kochhar) Newsgroups: comp.text.tex Subject: \framebox or \fbox around text Keywords: latex Message-ID: <3104@husc6.harvard.edu> Date: 1 Jun 90 02:59:07 GMT Sender: news@husc6.harvard.edu Reply-To: kochhar@calliope.harvard.EDU (Sandeep Kochhar) Distribution: usa Organization: Aiken Computation Laboratory, Harvard University Lines: 23