在该包的帮助下listings
:
![在此处输入图片描述](https://i.stack.imgur.com/nzm8n.png)
\documentclass{article}
\usepackage{listings}
\lstset{numbers=left, numberstyle=\tiny,frame=single}
\begin{document}
\begin{lstlisting}[caption={Your caption text}, label=labeltext, captionpos=b]
.i 4
.o 1
-10- 1
\end{lstlisting}
\end{document}