TEX studio:IEEE latex模板的下载与使用

您所在的位置:网站首页 TeXstudio怎么用 TEX studio:IEEE latex模板的下载与使用

TEX studio:IEEE latex模板的下载与使用

2024-07-11 20:30| 来源: 网络整理| 查看: 265

TEX studio:IEEE latex模板的下载与使用

作为一个新手,第一次使用TEX studio,当然也是第一次下载使用latex模板,记录一下过程

首先,当然是下载texlive2019 和 tex studio,至于怎么下载就找教程吧 IEEE conference模板下载地址:conference 下载 Template (ZIP, 700 KB) Updated July 2018 和 LateX Bibliography Files下面的Windows压缩吧。

第一步

下载完毕解压缩后,将文件夹Conference-LaTeX-template_7-9-18中的IEEEtran.cls文件复制到texlive\2019\texmf-local\tex\latex 文件夹里面。然后以管理员方式运行cmd,切记以管理员方式运行。打开cmd后输入:texhash。然后将.tex文件复制到texlive文件夹里面即可。这里建议新建一个tex文件,然后将下载的tex文件里面的内容复制粘贴过来。

问题一

报错:texstudio提示:无法启动build&view:Xelatex。当时遇到这个问题,一个原因是没有以管理员运行cmd来texhash,还有一个地方是,打开tex studio,打开选项,打开设置tex studio,选择命令,对于xelatex,选择“选择程序”选项,将其定位到本地的xelatex.exe即可。如图: 在这里插入图片描述

第二步

点击构建并查看,就是绿色小箭头那个按钮,编译成功后就会生成pdf文件。

第三步 我们在写paper时需要引用论文,在谷歌学术里面找到论文后点击download citation,会发现有一个BibTex选项,接下来就说一下如何通过直接下载Bib Tex来快速在latex里面实现引用

前面在IEEE网站下载了两个文件夹,打开IEEEtranBST2文件夹,将IEEEabrv.bib文件和IEEEfull.bib文件复制到texlive\texmf-local\bibtex\bib文件夹下。将IEEEtran.bst和IEEEtranS.bst文件复制到texlive\texmf-local\bibtex\bst文件夹下。在谷歌学术里download citations会下载一个bib文件,或者说给出类似下面的代码块: @article{Dreschler2001ICRA, title={ICRA Noises: Artificial Noise Signals with Speech-like Spectral and Temporal Properties for Hearing Instrument Assessment: Ruidos ICRA: Señates de ruido artificial con espectro similar al habla y propiedades temporales para pruebas de instrumentos auditiv}, author={Dreschler, Wouter A. and Verschuure, Hans and Ludvigsen, Carl and Westermann, Søren}, journal={International Audiology}, volume={40}, number={3}, pages={148-157}, year={2001}, } 如果是代码块则自己建立一个bib文件,如reference.bib,(bib文件要和tex文件在同一目录)然后将代码块复制到该文件里面。

然后在tex文件里面,

%\begin{thebibliography}{00} %\bibitem{b2} G. Eason, B. Noble, and I. N. Sneddon, ``On certain integrals of Lipschitz-Hankel type involving products of Bessel functions,'' Phil. Trans. Roy. Soc. London, vol. A247, pp. 529--551, April 1955. %\bibitem{b2} J. Clerk Maxwell, A Treatise on Electricity and Magnetism, 3rd ed., vol. 2. Oxford: Clarendon, 1892, pp.68--73. %\bibitem{b3} I. S. Jacobs and C. P. Bean, ``Fine particles, thin films and exchange anisotropy,'' in Magnetism, vol. III, G. T. Rado and H. Suhl, Eds. New York: Academic, 1963, pp. 271--350. %\bibitem{b4} K. Elissa, ``Title of paper if known,'' unpublished. %\bibitem{b5} R. Nicole, ``Title of paper with only first word capitalized,'' J. Name Stand. Abbrev., in press. %\bibitem{b6} Y. Yorozu, M. Hirano, K. Oka, and Y. Tagawa, ``Electron spectroscopy studies on magneto-optical media and plastic substrate interface,'' IEEE Transl. J. Magn. Japan, vol. 2, pp. 740--741, August 1987 [Digests 9th Annual Conf. Magnetics Japan, p. 301, 1982]. %\bibitem{b7} M. Young, The Technical Writer's Handbook. Mill Valley, CA: University Science, 1989. %\end{thebibliography} \bibliographystyle{IEEEtran} \bibliography{IEEEabrv,IEEEexample,reference.bib}

注释掉模板里面的\bibitem这些行,加上\bibliographystyle…两句代码,如上所示。其中\bibliography{IEEEabrv,IEEEexample,reference.bib}括号内即为要引用的论文的bib文件的名字,可以多篇论文的@article放在一个bib文件里,也可以每个@article放一个bib文件。然后在想要添加引用的地方加上\cite{},大括号里面是刚刚下载的代码块里面,大括号里第一个逗号前的内容,例:

This document is a model \cite{Dreschler2001ICRA} and instructions for \LaTeX Please observe the conference page limits.

而刚刚代码块大括号内第一个逗号前:@article{Dreschler2001ICRA,内容即为Dreschler2001ICRA。接着编译运行即可,效果如下: 在这里插入图片描述



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3