我有关于乳胶列表包的问题.我需要在我的硕士论文'附录中嵌入以下XML文档的源代码http://www.sparxsystems.com.au/downloads/profiles/EP_Extensions.xml.问题是,无论我传递给包的选项是什么,我似乎都无法将其放在页面上.列表中的行太长了,列表包没有包装它们,这看起来很奇怪......什么样的选项组合才能解决问题?
目前我使用以下lstset指令:
\lstset{
breakindent=0em,
language=XML,
basicstyle=\footnotesize,
numbers=left,
numberstyle=\footnotesize,
stepnumber=2,
numbersep=5pt,
backgroundcolor=\color{white},
showspaces=false,
showstringspaces=false,
showtabs=false,
frame=single,
tabsize=2,
captionpos=b,
breaklines=true,
breakatwhitespace=true,
breakautoindent=true,
escapeinside={\%*}{*)},
linewidth=\textwidth
}
Run Code Online (Sandbox Code Playgroud)
其中,没有设置其他选项,并结合以下命令:
\lstinputlisting{EP_Extensions.xml}
Run Code Online (Sandbox Code Playgroud)
列出给定文件的源代码到以下输出:

latex ×1