以下是逐字块内删除前导空格后的渲染。此外,缩进未保留。我想同时保留前导空格和缩进。
Test Algorithm
\begin{verbatim}
top = 0
bottom = last
while top < bottom
middle = (top + bottom) / 2
end while
\end{verbatim}
以下是整个文件:
\documentclass{letter}
\usepackage{verbatim }
\begin{document}
\begin{verbatim}
top = 0
bottom = last
while top < bottom
middle = (top + bottom) / 2
end while
\end{verbatim}
\end{document}