T*n
2 楼
\documentclass{article}
\usepackage{listings}
\lstloadlanguages{C}
\begin{document}
\lstset{language=C,keywordstyle=\bfseries,commentstyle=\slshape}
\begin{lstlisting}{}
int i, j, k; /* three integers */
\end{lstlisting}
\end{document}
Please explain in more details what is not working.
【在 w******e 的大作中提到】
: 还有,在listing环境下
: latex的其他转义格式就失效了?
: 帮忙!
\usepackage{listings}
\lstloadlanguages{C}
\begin{document}
\lstset{language=C,keywordstyle=\bfseries,commentstyle=\slshape}
\begin{lstlisting}{}
int i, j, k; /* three integers */
\end{lstlisting}
\end{document}
Please explain in more details what is not working.
【在 w******e 的大作中提到】
: 还有,在listing环境下
: latex的其他转义格式就失效了?
: 帮忙!
相关阅读
请问怎么把tikz产生的图形生成eps文件啊?怎么把References加入到书签?tex里面加email碰到难题。figure编号不一致如何在正文中输入罗马数字3?(非counter)如何改变section number的大小?有人用sciposter 吗TexMaker 这个editor 好吗?WinEdt autocomplete?有什么好的Resume的Template可以推荐一下吗?哪里找到一个漂亮的book class请问如何将word文件转换成Latex文件?how to list the affiliation of an author who belongs to two organizations?在margin上怎么写字?LaTeX: Description list的行间距证明改成proof求高手修改harvard.sty文件请问在xy-pic中如何编号请问如何调整段落格式。Word 在windows 下变小