Latex范例,包含了公式,图片,表格,标题,交叉引用等常用功能
2011-02-15 23:30
323 查看
test.tex
test.bib
/documentclass{article} /usepackage{graphicx} %this package is for the figures %/usepackage{hyperref} /graphicspath{{fig/}} %be careful, there is a {} inside the graphicaspath{} /topmargin=0pt /oddsidemargin=0pt /evensidemargin=0pt /textwidth=14cm /textheight=21cm /title{Latex Sample} /author{Tao Lin// Institute Fresnel// aaa@gmail.com /and Joanthan /thanks{supported by ...}// Institute Fresnel// xxx@sohu.com } /date{2.1, 2011} /begin{document} /maketitle /begin{abstract} This is the abstract part.// {/bf Keywords: }latex sample /end{abstract} /section{Citation, Figures And Formulas} /label{CFF} /subsection{Citation} /label{CFF_C} This is a citation/cite{Atkinson1}, it is easy to use. /subsection{Figures} /label{CFF_F1} /subsubsection{A Single Figure} /label{CFF_F1_A} This is a single figure figure~/ref{CFF_F1_A_F} /begin{figure} /centering /includegraphics[height=0.5/textwidth]{test.jpg} /caption{Big Single Figure} /label{CFF_F1_A_F} /end{figure} /subsubsection{Multiple Figures} /label{CFF_F1_M} This is a figure with two sub-figures figure~/ref{CFF_F1_M_F} /begin{figure} /begin{minipage}[t]{.5/linewidth} %the option [t] can make the two images align horizontally in the bottom /centering /includegraphics[height=0.5/textwidth]{test.jpg} /centerline{(a)}/medskip /end{minipage} /begin{minipage}[t]{.5/linewidth} /centering /includegraphics[height=0.2/textwidth]{test.jpg} /centerline{(b)}/medskip /end{minipage} /caption{figure content} /label{CFF_F1_M_F} /end{figure} /subsection{Formulas} /label{CFF_F2} To type the inline formula, I can use this /begin{math} a=b+c /end{math} or this $x^{y^{z^{w}}}=(1+{/rm e}^{x})^{-2xy^w}$ To type the outline formula, I can use this $$/cal{ABCDEFG}$$ or this /begin{displaymath} x=y+z /end{displaymath} To type the outline formula equation~/ref{CFF_F2_E1} with number, I can use this /begin{equation} /label{CFF_F2_E1} 0.3x+y/2=4z /end{equation} and this is another equation~/ref{CFF_F2_E2} /begin{equation} /label{CFF_F2_E2} 33x+55y=z /end{equation} % /section{Table And Array} /label{TA} /subsection{Table} /label{TA_T} This is a table table~/ref{TA_T_T} /begin{table} /centering /caption{table} /label{TA_T_T} /begin{tabular}{|c|c|c|} /hline 1 & 2 & 3// /hline 4 & 5 & 6// /hline /end{tabular} /end{table} /section{The 2nd step} /hskip /parindent This is the second section. In this first paragraph, I use `hskip' to get the first parindent. Maybe you can get this effect by another way. /subsection{Sub-sect of 2} this /subsection*{/S 2.2 Another sub of 2} this /section{Conclusion} I think you have know /TeX well now. I want to show you how to use bibliography. In the article, you can use as /bibliographystyle{plain} /bibliography{test} /end{document}
test.bib
@inproceedings{Atkinson1, author = {Atkinson, I and Kamalabadi, F and Mohan, S and Jones, DL}, title = {Wavelet-based 2-D multichannel signal estimation}, publisher = {IEEE}, volume = {2}, }
相关文章推荐
- 【LaTeX】常用中英文模板,包含数学公式符号图片表格等 (不定期更新)
- Latex 表格图片公式跨双栏显示并使标题居中以及表格图片注释技巧
- Latex里图片与表格标题与正文距离的调整
- 关于Latex中交叉引用表格时标号不对的问题解决
- “题注法”公式、图片、表格自动编号和引用详解
- Word中如何自动编号公式并可以交叉引用(利用表格、文档部件、题注)
- 【用LaTeX写文章】如何让图片中包含公式,如输入下标等
- Latex里图片与表格标题与正文距离的调整
- Latex 图片 表格 公式
- 前端常用功能记录(三)—datatables表格初始化
- ASP.Net常用功能整理--生成图片的缩略图
- LaTeX常用表格绘制入门
- latex中如何引用公式
- ASP.NET中常用功能代码总结(生成验证图片)
- JTable表格头右键菜单实现列标题隐藏显示功能
- table表格的常用功能
- 常用到的手机功能调用,录音操作等,获得视频缩略图,图片的剪裁
- 常用LaTeX公式字体设置及基元模板
- 开发一种提供医学药学常用公式图片的文档编辑器插件
- ASP.NET中常用功能代码总结(2)——生成验证图片