发布时间:2011-11-28 00:03:15
文章类别:宏包使用
原文地址:http://blog.sina.com.cn/s/blog_5e16f1770102e48h.html
QQ群:91940767/145316219/141877998/80300084/194770436
淘宝店:http://latexstudio.taobao.com
技巧续篇:http://latexstudio.net/
常见数学公式问题集下载
演示代码如下:
\documentclass{book}
\usepackage[x11names,svgnames,dvipsnames]{xcolor}
\usepackage{amsmath,amssymb}
\usepackage[T1,safe]{tipa}
\usepackage{dtklogos,hologo,textcomp}
\usepackage{listings}
\lstset{upquote,keepspaces=true,columns=spaceflexible,
basicstyle=\ttfamily\scriptsize,%
breaklines=true,breakindent=0pt,xleftmargin=0pt, xrightmargin=6pt,%
language=[LaTeX]TeX, texcsstyle=*\bfseries\color{Maroon}, commentstyle=\sffamily\itshape\smaller\color{SeaGreen4},
emphstyle=\bfseries\color{RoyalBlue3},escapechar={:},
emphstyle={[2]{\bfseries\color{Sienna2}}},
%postbreak=\mbox{{\smaller\color{gray}$\rightarrow$}}
}
\begin{document}
\begin{lstlisting}[moretexcs={chapter,subsection,maketitle}, basicstyle={\ttfamily}, emph={book}]
\documentclass{book}
\author{...}
\title{...}
\begin{document}
\maketitle
\chapter{...}
\section{...}
...
\subsection{...}
\end{document}
\end{lstlisting}
\end{document}
总结之前的博文:
发表评论 取消回复