🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #9521

Re: Centered verbatim: how?

#9521
From: Timothy Van Zandt
Date: Wed, 23 Dec 1992 18:06
23 lines
1139 bytes
In article <1992Dec23.164637.9169@sophia.smith.edu> orourke@sophia.smith.edu (Joseph O'Rourke) writes:
>How does one center a verbatim environment?  The following leaves
>the verbatim text left justified:
>
>	\begin{center}
>	\begin{verbatim}
>	1 2 3 4 5 6 7 8 9 0
>	\end{verbatim}
>	\end{center}
>
>Any ideas?  Thanks!

Do you want to center just a single line? Then try

  \begin{center}
  \verb+1 2 3 4 5 6 7 8 9 0+
  \end{center}

If you want to center several lines, get fancybox.sty.

Tim
-- 
Timothy Van Zandt   (609)258-4050  tvz@Princeton.EDU (NeXTMail)
Technical Details
Message-ID: <1992Dec23.180642.13682@Princeton.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!princeton!zandtwerk.Princeton.EDU!tvz
References: <1992Dec23.164637.9169@sophia.smith.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.text.tex
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!princeton!zandtwerk.Princeton.EDU!tvz
From: tvz@zandtwerk.Princeton.EDU (Timothy Van Zandt)
Subject: Re: Centered verbatim: how?
Message-ID: <1992Dec23.180642.13682@Princeton.EDU>
Originator: news@nimaster
Sender: news@Princeton.EDU (USENET News System)
Nntp-Posting-Host: zandtwerk.princeton.edu
Organization: Princeton University
References: <1992Dec23.164637.9169@sophia.smith.edu>
Date: Wed, 23 Dec 1992 18:06:42 GMT
Lines: 23