LaTeX Tips
1.背景色
\documentclass{article}
\usepackage[dvips]{color}
\usepackage{listings}
\definecolor{bkcolor}{gray}{.825}
\begin{document}
\lstset{backgroundcolor=\color{bkcolor}}
\begin{lstlisting}[frame=single,framerule=1pt]
for i:=maxint to 0 do begin j:=square(root(i)); end;\\
\end{lstlisting}
\end{document}
From:
2.Vim 正则替换之回车符
\r 回车符
\t 制表符
阅读(783) | 评论(0) | 转发(0) |