使用 LaTeX 的灰色列表环境
表单这个LaTeX-workshop,我发现我可以制作这种列表样式。
http://img441.imageshack.us/img441/2739/screenshot20100717at112.png
通过定义一个新环境。
\definecolor{mittelgrau}{gray}{0.85}% \lstdefinestyle{StyleCommand}{% style=StyleListingBasic, backgroundcolor=\color{mittelgrau}, prebreak=\mbox{\textbackslash{}}% } \lstnewenvironment{bevel}[1][1] {\lstset{style=StyleCommand,linewidth=#1\linewidth}} {}%
运行代码,我收到此错误消息。
ERROR: Package Listings Error: Couldn't load requested style.
可能出了什么问题?
Form this LaTeX-workshop, I found I could make this listing style.
http://img441.imageshack.us/img441/2739/screenshot20100717at112.png
by defining a new environment.
\definecolor{mittelgrau}{gray}{0.85}% \lstdefinestyle{StyleCommand}{% style=StyleListingBasic, backgroundcolor=\color{mittelgrau}, prebreak=\mbox{\textbackslash{}}% } \lstnewenvironment{bevel}[1][1] {\lstset{style=StyleCommand,linewidth=#1\linewidth}} {}%
Running the code, I get this error message.
ERROR: Package Listings Error: Couldn't load requested style.
What might be wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我错过了 \lstdefinestyle,经过一些修改,我可以让它工作。
I missed the \lstdefinestyle, and after some modification, I could make it work.