Hello all,
I just have several lines in verbatim:
\begin{verbatim}
line 1 ...
___line 2 ...
______line 3 ...
\end{verbatim}
I would like to center all the 3 lines together without deleting the spaces in front of line 2 and 3. It seems that \center, \centerline, \certering do not work here.
Does anyone know how to solve this problem?
Thanks and regards
Tie CHENG
Text Formatting ⇒ center several lines in verbatim
NEW: TikZ book now 40% off at Amazon.com for a short time.

Re: center several lines in verbatim
Put the verbatim environment inside a minipage with a suitable width and then center the minipage. You can also try more involved verbatim environments, like those of the fancyvrb package.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.