🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #10436

Looking for flexible verbatim mode

#10436
From: George Ferguson
Date: Sun, 23 Jun 1991 20:01
29 lines
1773 bytes
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
Technical Details
Message-ID: <1991Jun23.200116.23478@cs.rochester.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!hsdndev!rutgers!rochester!ferguson

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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