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
nys...@a.psc.edu
--------------------------------------------------------------------------------
The problem is that verbatim mode sets every line as a paragraph, and
paragraphs always have width \hsize. The way to centre would be to
have each line set as a row in a \halign instead; this is the best way
to have the width of the verbatim section be the width of the longest
line. Hacking verbatim to do this is not impossible.
To my mind, though, indenting the code fragments looks at least as good as
centring and is easier to do. My cprog style (plug) has a parameter
\cprogindent for this purpose.
,
Eamonn