31 March 2013
reference实现:
tex文件:
//---------------------------------------------------
documentclass[prodmode,acmtecs]{acmsmall} % Aptara syntax
begin{document}
cite{sakarovitch2009elements} 
cite{sipserintroduction
cite{allan2005adding
cite{van1994python
% Bibliography
bibliographystyle{ACM-Reference-Format-Journals}
bibliography{acmsmall-sample-bibfile}
end{document}
//--------------------------------------------------
bib文件:
//--------------------------------------------------
@book{sakarovitch2009elements,
  title={Elements of automata theory},
  author={Sakarovitch, Jacques},
  year={2009},
  publisher={Cambridge University Press}
}
@techreport{sipserintroduction,
  title={Introduction to the Theory of Computation. PWS, Boston. 1997},
  author={Sipser, Michael},
  institution={ISBN 0-534-94728-X}
}
@article{allan2005adding,
  title={Adding trace matching with free variables to AspectJ},
  author={Allan, Chris and Avgustinov, Pavel and Christensen, Aske Simon and Hendren, Laurie and Kuzins, Sascha and Lhot{'a}k, Ond{v{r}}ej and De Moor, Oege and Sereni, Damien and Sittampalam, Ganesh and Tibble, Julian},
  journal={ACM SIGPLAN Notices},
  volume={40},
  number={10},
  pages={345--364},
  year={2005},
  publisher={ACM}
}
@misc{van1994python,
  title={Python programming language},
  author={Van Rossum, Guido and others},
  year={1994}
}
//--------------------------------------------------
 
编译为点击一次LaTex(快捷键Shift+Ctrl+L),点击一次BibTex(快捷键Shift+Ctrl+B),最后点击PDFTeXify(快捷键Shift+Ctrl+P)
reference的一些小技巧:打开谷歌学术文献http://scholar.google.com/schhp?hl=zh-CN搜索文献,然后找到自己引用的文献,点击引用,可以找到导入BibTeX,它就帮你把bib文件里面的内容写好了!
Latex插图心得:
//--------------------------------------------------

 

Figure ref{tab:NFAtoDFAMinDFA} show how to convert a NFA to a DFA:

begin{figure}[htbp]

begin{center}

includegraphics[width=0.6textwidth]{NFAtoDFAMinDFA}

caption{NFAtoDFAMinDFA}

label{tab:NFAtoDFAMinDFA}

end{center}

end{figure}

//--------------------------------------------------

其中[htbp]就是浮动格式

“h 当前位置。将图形放置在正文文本中给出该图形环境的地方。如果本页所剩的页面不够,这一参数将不起作用。

t 顶部。将图形放置在页面的顶部。

b 底部。将图形放置在页面的底部。

p 浮动页。将图形放置在一只允许有浮动对象的页面上。”

item的一些效果
//--------------------------------------------------
renewcommand{labelitemi}{$bullet$}
renewcommand{labelitemii}{$cdot$}
renewcommand{labelitemiii}{$diamond$}
renewcommand{labelitemiv}{$ast$}
begin{itemize}
item very clear, readable syntax
item strong introspection capabilities
end{itemize}
//--------------------------------------------------
 
 
reference


blog comments powered by Disqus