Latex使用小结_latex使用小结
Latex使用小结由刀豆文库小编整理,希望给你工作、学习、生活带来方便,猜你可能喜欢“latex使用小结”。
LATEX使用小结
2010-10-03 09:04:49| 分类: 默认分类|字号 订阅
原文地址:LATEX使用小结
作者:丁三家的小包子 虚拟打印机转换eps格式
1.建立一个虚拟打印机:控制面板->printer->add a printer->add a local printer->FILE:(print to file)->然后从列表中随便选择一个支持postscript的打印机.2.设置:右击刚建立的虚拟打印机图标,properties->general->printing preferences->advanced->document options->PostScript Options->PostScript Output Options,选Encapsulated PostScript(EPS), 完工。
将8位图像转换为eps格式时,只需用Snagit的convert功能即可。
而在24位真彩色图转换时,有人推荐用Konvertor转换软件。我发现转换后,图像的分辨率大大降低,visio图像很容易出现漏字,图片模糊。用虚拟打印机转换eps格式就不会影响原图的分辨率。步骤如下:
右击打印,然后选中图片,选择之前创建的虚拟打印机,填写输出文件路径(D:fig1.eps
Latex排版时,如何用bibtex管理参考文献。
BibTeX 是一个使用数据库的的方式来管理参考文献程序, 用于协调LaTeX的参考文献处理.BibTeX 文件的后缀名为.bib.先来看一个例子: @article{Gettys90, author = {Jim Gettys and Phil Karlton and Scott McGregor}, title = {The {X} Window System, Version 11}, journal = {Software Practice and Experience}, volume = {20}, number = {S2}, year = {1990}, abstract = {A technical overview of the X11 functionality.This is an update of the X10 TOG paper by Scheifler & Gettys.} } 说明: 第一行@article 告诉 BibTeX 这是一个文章类型的参考文献.其它格式: article, book, booklet, conference, inbook, incollection, inproceedings, manual, misc, mastersthesis, phdthesis, proceedings, techreport, unpublished 等等.在LaTeX中使用BibTeX 为了在 LaTeX 中使用BibTeX 数据库, 你必须先做下面四件事情: 1)包含宏包 usepackage{natbib} 2)设置参考文献的类型(bibliography style).标准的为 plain: bibliographystyle{plain} 其它的类型包括:
unsrt – 基本上跟 plain 类型一样, 除了参考文献的条目的编号是按照引用的顺序, 而不是按照作者的字母顺序.alpha – 类似于 plain 类型, 当参考文献的条目的编号基于作者名字和出版年份的顺序.abbrv – 缩写格式.3)标记引用(Make citations).当你在文档中想使用引用时, 插入 LaTeX命令 cite{标号} 例如:、cite{Gettys90},根据cls文件的不同定制,以及在正文引用格式的不同要求,也可能是citet或者citep命令。
“标记”就是前边定义@article后面的名称.4)告诉 LaTeX 生成参考文献列表.在 LaTeX 的结束前输入 bibliographystyle{jmb}
% this can be plain, alpha, etc.bibliography{./MYREFS} 文件中应包含jmb.bst(定义参考文献类型)文件和MYREFS.bib文件
运行 BibTeX分为下面四步
1.用LaTeX编译你的.tex 文件 , 这是生成一个.aux 的文件, 这告诉BibTeX 将使用那些引用.2.用BibTeX 编译.bib 文件.3.再次用LaTeX 编译你的.tex 文件, 这个时候在文档中已经包含了参考文献, 但此时引用的编号可能不正确.4.最后用 LaTeX 编译你的.tex 文件, 如果一切顺利的话, 这是所有东西都已正常了.获取bib文件
(1)使用如下网址可以将springer文献格式变成bibtex: http://www.daodoc.com}, publisher = {ACM}, addre = {New York, NY, USA}, };
@book条目为有确定出版社的书籍。
不可少域author或editor, title, publisher, year.可省略域volume或number, series, addre, edition, month, note.@booklet条目为印制的有封皮的作品,但没有出版社或赞助机构的名称。不可少域title.可省略域author, howpublished, addre, month, year, note.@conference与下面的@inproceedings相同。
@inbook条目为一本书的一部分(章,节或某些页)。
不可少域author或editor, title, chapter和/或pages, publisher,year.可省略域volume或number, series, type, addre, edition, month,note.@incollection条目为一本书中有自己题目的一部分。不可少域author, title, booktitle, publisher, year.可省略域editor, volume或number,series, type, chapter, pages,addre, edition, month, note.@inproceedings条目为会议论文集中的一篇文章。不可少域author, title, booktitle, year.可省略域editor, volume或number, series, pages, addre, month, organization, publisher, note.@InProceedings{b07name, author = {a and b},title = {title}, booktitle = {Proceedings of the conference}, addre = {Sydney, Australia}, month = Nov, year = 2008, pages = {1-2}, affiliation = {Uni-name, Country}, URL = {http://url/} };@manual条目为科技文档。不可少域title.可省略域author, organization, addre, edition, month, year, note.@mastersthesis条目为硕士论文。不可少域author, title, school, year.可省略域type, addre, month, note.@misc条目为不属于其它任何类型的作品。不可少域没有。
可省略域author, title, howpublished, month, year, note.@misc{name,author = “a”, title = “title”, howpublished = “Website”,};year = {2008}, note = {url{https://www.daodoc.com}} @phdthesis条目为博士论文。不可少域author, title, school, year.可省略域type, addre, month, note.@proceedings条目为会议论文集。不可少域title, year.可省略域editor,volume或number, series, addre, month, organization, publisher, note.@techreport条目为学校或其它研究机构印制的报告。不可少域author, title, institution, year.可省略域type, number, addre, month, note.@techreport{name, author = {a and b} title = {title}, institution = {institution rpt no.} year = {2008} };
@unpublished条目为有作者和标题的还未出版的作品。不可少域author, title, note.可省略域month, year.在每项条目中还可以有可省略域key和croref.参考文献及图片表格等超链接。包含宏包
usepackage[dvipdfm]{hyperref} 然后在正文中使用latex命令 cite{} ref{} 就可以实现文档中参考文献及图片表格等超链接。
图片命令 begin{figure} begin{center} includegraphics[width=7in]{sc.eps} caption{Framework of inspection system} label{fig1} end{center} end{figure} 若是一个双栏文档,使用begin{figure*}可实现跨栏排版,适用于表格编排。
子图排版 begin{figure*} begin{center} subfigure[subfigure1]{includegraphics[width=1.5in]{fig6(a).eps}} subfigure[subfigure2]{includegraphics[width=1.5in]{fig6(b).eps}} subfigure[subfigure3]{includegraphics[width=1.5in]{fig6(c).eps}} subfigure[subfigure4]{includegraphics[width=1.5in]{fig6(d).eps}} subfigure[subfigure5]{includegraphics[width=1.5in]{fig6(e).eps}} subfigure[subfigure6]{includegraphics[width=1.5in]{fig6(f).eps}} subfigure[subfigure7]{includegraphics[width=1.5in]{fig6(g).eps}} subfigure[subfigure8]{includegraphics[width=1.5in]{fig6(h).eps}} caption{Wavelet smoothing results} label{fig6} end{center} end{figure*} 每个子图属性显示为(a)subfigure1,(b)subfigure2.......三线表格 begin{table} centering
caption{it is an example}
vspace*{10pt}
begin{tabular}{@{}lcccc@{}} %% toprule {aa} & multicolumn{2}{c}{bb} & multicolumn{2}{c}{cc}[-2pt] cmidrule(1){2-5} {aa} & {bb} &{cc} & {dd}&{ee} hline {1} &a &b &c &d mbox{2}
&a &b &c &d mbox{3}
&a &b &c &d mbox{4}
&a &b &c &d mbox{5}
&a &b &c &d mbox{6}
&a &b &c &d mbox{7}
&a &b &c &d bottomrule end{tabular} end{table} cmidrule(1){2-5}实现2-5列的短划线。