Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!hsdndev!rutgers!rochester!ferguson From: ferguson@cs.rochester.edu (George Ferguson) Newsgroups: comp.text.tex Subject: Looking for flexible verbatim mode Message-ID: <1991Jun23.200116.23478@cs.rochester.edu> Date: 23 Jun 91 20:01:16 GMT Reply-To: ferguson@cs.rochester.edu (George Ferguson) Organization: University of Rochester Computer Science Dept. Lines: 29 I often include small chunks of code or output as displays in my text. The standard verbatim mode forces these to be aligned flush with the lefthand side of the page. In addition, an attempt to fbox the result shows that the lines stretch to the right side of the page, presumably due to the way the linebreaks are "obeyed". Furthermore, various attempts to wrap verbartim displays in other constructs, such as fbox and centerline, usually result in an error. I would like to be able to write, eg., \fbox{\begin{verbatim} \centerline{begin{verbatim} ... or ... \end{verbatim}} \end{verbatim}} although I could care less about whether the parts have to be on separate lines or whatever (ie. the final close brace could be on the next line if necessary). That is, I would like the verbatim text to result in a box exactly as wide as the longest line, and exactly as high as the number of lines (well, "exactly", more or less). I tried the verbatim package from Mainz and it didn't do what I wanted, at least not right out of the box. Any help would be appreciated. George -- George Ferguson ARPA: ferguson@cs.rochester.edu University of Rochester UUCP: {decvax,rutgers}!rochester!ferguson Rochester NY 14627-0226 VOX: (716) 275-2527