Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to put box around {verbatim} text in LaTeX?

554 views
Skip to first unread message

Jason White

unread,
Mar 31, 1994, 5:11:04 AM3/31/94
to

I would like to know how I can put a box around some text that I've included
using the verbatim mode in LaTeX. I am writing a document that a number of
example screens and I'd like to put a box around them to 1) give the illusion
that they're screens and 2) to separate the text from the rest of the
document.
Thanks,
-Jason
--
Jason D. White Durham Center Operations Staff
jdw...@iastate.edu Repeater Chairman, Cyclone Amateur Radio Club
Iowa State University Packet: n0rwu @ ki0q.#cia.ia.usa.na
Ames, Iowa

Robin Fairbairns

unread,
Mar 31, 1994, 6:03:03 AM3/31/94
to
In article <2ne7jo$r...@news.iastate.edu>,

Jason White <jdw...@iastate.edu> wrote:
> I would like to know how I can put a box around some text that I've included
>using the verbatim mode in LaTeX. [...]

Try Timothy van Zandt's fancybox.sty, from a CTAN site near you
--
Robin (Campaign for Real Radio 3) Fairbairns r...@cl.cam.ac.uk
U of Cambridge Computer Lab, Pembroke St, Cambridge CB2 3QG, UK

Kees van der Wal +31 70 332 6295

unread,
Apr 1, 1994, 10:42:15 AM4/1/94
to
jdw...@iastate.edu (Jason White) writes:

> I would like to know how I can put a box around some text that I've included
> using the verbatim mode in LaTeX. I am writing a document that a number of
> example screens and I'd like to put a box around them to 1) give the illusion
> that they're screens and 2) to separate the text from the rest of the
> document.

I used PicMode to convert the ascii text into a .tex file. The result may be
put into a \framebox, e.g. inside a picture environment with caption.

Kind regards, <kees>

Eric Domenjoud

unread,
Apr 2, 1994, 9:52:47 AM4/2/94
to
>>>>> "Kees" == Kees van der Wal +31 70 332 6295 <wal...@research.ptt.nl> writes:
In article <1994Apr1...@research.ptt.nl> wal...@research.ptt.nl (Kees van der Wal +31 70 332 6295) writes:

> Newsgroups: comp.text.tex
> Organization: PTT Research, The Netherlands

> jdw...@iastate.edu (Jason White) writes:

> Kind regards, <kees>

The following solution also works

\newbox\mybox
\setbox\mybox{\begin{verbatim}
verbatim text
\end{verbatim}}

\framebox{\box\mybox}

Eric
--
Eric Domenjoud
CRIN/CNRS & INRIA-Lorraine
Bat. Loria -- BP 239
F-54506 Vandoeuvre-les-Nancy CEDEX
FRANCE
E-mail: Eric.Do...@loria.fr
Tel: (+33) 83 59 30 19
Fax: (+33) 83 27 83 19

0 new messages