Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!pyrltd!abekrd!garyb From: garyb@abekrd.UUCP (Gary Bartlett) Newsgroups: comp.text.tex Subject: Need non-fixed-width parbox in LaTeX Message-ID: <1568@abekrd.UUCP> Date: 10 Dec 90 17:16:23 GMT Organization: Abekas Video Systems Ltd, Reading, England Lines: 44 I need to format a piece of text in a parbox (because I need to specify where the line breaks are to occur) but I want the final box to be only as wide as the largest line of text. I cannot figure out how to achieve this. eg - the text to be formatted: this is line 1 \\ this is a longer line 2 \\ the end I will always specify where the line breaks are to occur so I don't need LaTeX to split the lines for me. Theoretically therefore, I don't need to specify a width. Unfortunately, \parbox demands a width. I don't know the width of the longest line before hand either. Can anyone see a way around this? Ultimately, I would like to produce the following: +---------------------------------------------+ | | | | | | | | | this is line 1 | | this is a longer line 2 | | the end | | | | | | | | | +---------------------------------------------+ where my specified text is CENTERED in a surrounding box of a given size (and position). Any ideas? Thanks in advance, Gary -- --------------------------------------------------------------------------- Gary C. Bartlett NET: garyb@abekrd.co.uk Abekas Video Systems Ltd. UUCP: ...!uunet!mcsun!ukc!pyrltd!abekrd!garyb 12 Portman Rd, Reading, PHONE: +44 734 585421 Berkshire. RG3 1EA. FAX: +44 734 567904 United Kingdom. TELEX: 847579