Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!jordan From: jordan@unix.cis.pitt.edu (Kenneth D Jordan) Newsgroups: comp.text.tex Subject: Centering verbatim text -- how? Keywords: LaTeX, centering Message-ID: <110059@unix.cis.pitt.edu> Date: 1 Apr 91 16:13:33 GMT Organization: Univ. of Pittsburgh, Computing & Information Services Lines: 18 How does one center a section of verbatim text in LaTeX? Specifically, I would like to mix code fragments; e.g. main( int argc, char *argv[] ) { printf("Hello, workd!\n"); } in with regular text as shown here. \tt works, but necessitates inserting a bunch of escapes that I'd rather avoid. -------------------------------------------------------------------------------- Nick Nystrom Chemistry Department University of Pittsburgh nystrom@a.psc.edu --------------------------------------------------------------------------------