Latex引用的两种方式

在tex文件中直接编辑

随意性强,和默认格式不同,并且没有提供sty引用格式包的时候,自己编辑格式。

%
% ---- Bibliography ----
%
\begin{thebibliography}{5}
%
\bibitem{came}
Camelyon Homepage,
https://camelyon16.grand-challenge.org,
last accessed 2018/01/17

\bibitem{sze:liu}
Szegedy C, Liu W, Jia Y, Sermanet P, Reed S, Anguelov D, Erhan D, Vanhoucke V, Rab-inovich A.:
Going deeper with convolutions. In:
Proceedings of the 2015 IEEE Conference on Computer Vision and Pattern Recognition,
Cvpr 2015. IEEE, Boston (2015).

\bibitem{sim:zis}
Simonyan K, Zisserman A.:
Very deep convolutional networks for large-scale image recogni-tion.
arXiv preprint arXiv:1409.1556, (2014).

\bibitem{bej:lit}
Bejnordi BE, Litjens G, Timofeeva N, Otte-Höller I, Homeyer A, Karssemeijer N, van der Laak JA.:
Stain specific standardization of whole-slide histopathological images. In:
Pro-ceeding of the IEEE transactions on medical imaging, 2016, 35(2): 404-415. IEEE (2016).

\bibitem{liu:gad}
Liu Y, Gadepalli Y, Norouzi M, E. Dahl G,  Kohlberger T, Boyko A, Venugopalan S, Timofeev A, Q. Nelson P, S. Corrado G, D. Hipp J, Peng L, C. Stumpe M.:
Detecting can-cer metastases on gigapixel pathology images.
arXiv preprint arXiv:1703.02442 (2017).

\end{thebibliography}

\end{document}

在文中引用\cite{came}。

也可以在\bibitem[]{}中括号内是引用角标,比如在文中引用作者名。

\bibitem[Szegedy C]{sze:liu}
Szegedy C, Liu W, Jia Y, Sermanet P, Reed S, Anguelov D, Erhan D, Vanhoucke V, Rab-inovich A.:
Going deeper with convolutions. In:
Proceedings of the 2015 IEEE Conference on Computer Vision and Pattern Recognition,
Cvpr 2015. IEEE, Boston (2015).

[Szegedy C]

bib文件

个人推荐使用这种方式,因为sublime text可以自动编译,而且格式的风格不需要自己改。

引用cite包

首先在tex文件前面添加使用cite包

\documentclass{article}
\usepackage{cite}
\begin{document}

准备bib文件

在谷歌学术中搜索论文,点击引用,选择bibtex,并复制到自己新建的${filename}.bib文件中。

格式如下:

@inproceedings{zhang2008recommendation,
  title={Recommendation over a heterogeneous social network},
  author={Zhang, Jing and Tang, Jie and Liang, Bangyong and Yang, Zi and Wang, Sijie and Zuo, Jingjing and Li, Juanzi},
  booktitle={Web-Age Information Management, 2008. WAIM'08. The Ninth International Conference on},
  pages={309--316},
  year={2008},
  organization={IEEE}
}

@book{Ronneberger2015U,
  title={U-Net: Convolutional Networks for Biomedical Image Segmentation},
  author={Ronneberger, Olaf and Fischer, Philipp and Brox, Thomas},
  publisher={Springer International Publishing},
  pages={234-241},
  year={2015},
}

使用bib文件

把bib移动到tex文件同一目录下,在引用该论文的位置添加\cite{zhang2008recommendation,Ronneberger2015U}。

在添加cite包引用后,还要注意,我们要在tex文件最后面添加引用对应bib文件的操作。具体添加如下代码(注意要在\end{document}前):

\bibliographystyle{abbrv} %% setting the cite style
\bibliography{${filename}} %% such as \bibiography{iciar}
\end{document}

llncs的引用格式,把splncs.sty复制到和tex文件同个目录,然后在\bibiographystyle{splncs}替换原来的就好了。

编译过程(引用知乎的回答)

使用sublime text3可以跳过这个步骤,一步自动编译。

pdflatex run 1; bibtex run 1; pdflatex run 2; pdflatex run 3
  1. 用pdfLaTeX编译你的 .tex 文件 , 这是生成一个 .aux 的文件, 这告诉 BibTeX 将使用那些应用.
  2. 用BibTeX 编译 .bib 文件.
  3. 再次用pdfLaTeX 编译你的 .tex 文件, 这个时候在文档中已经包含了参考文献, 但此时引用的编号可能不正确.最后再次用pdfLaTeX 编译你的 .tex 文件, 如果一切顺利的话, 这是所有东西都已正常了。

\bibliographystyle引用样式

stylecomment
plain按字母的顺序排列,比较次序为作者、年度和标题.
unsrt样式同plain,只是按照引用的先后排序.
alpha用作者名首字母+年份后两位作标号,以字母顺序排序.
abbrv类似plain,将月份全拼改为缩写,更显紧凑.
ieeetr国际电气电子工程师协会期刊样式.
acm美国计算机学会期刊样式.
siam美国工业和应用数学学会期刊样式.
apalike美国心理学学会期刊样式.

- plain

1. Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-Net: Convolutional Net-
works for Biomedical Image Segmentation. Springer International Publishing, 2015.
2. Jing Zhang, Jie Tang, Bangyong Liang, Zi Yang, Sijie Wang, Jingjing Zuo, and
Juanzi Li. Recommendation over a heterogeneous social network. In Web-Age
Information Management, 2008. WAIM’08. The Ninth International Conference
on, pages 309316. IEEE, 2008.
  • unsrt
1. Jing Zhang, Jie Tang, Bangyong Liang, Zi Yang, Sijie Wang, Jingjing Zuo, and
Juanzi Li. Recommendation over a heterogeneous social network. In Web-Age
Information Management, 2008. WAIM’08. The Ninth International Conference
on, pages 309316. IEEE, 2008.
2. Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-Net: Convolutional Net-
works for Biomedical Image Segmentation. Springer International Publishing, 2015.
  • alpha
[RFB15] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-Net: Convolutional
Networks for Biomedical Image Segmentation. Springer International Pub-
lishing, 2015.
[ZTL + 08] Jing Zhang, Jie Tang, Bangyong Liang, Zi Yang, Sijie Wang, Jingjing Zuo,
and Juanzi Li. Recommendation over a heterogeneous social network. In
Web-Age Information Management, 2008. WAIM’08. The Ninth Interna-
tional Conference on, pages 309316. IEEE, 2008.
  • abbrv
1. O. Ronneberger, P. Fischer, and T. Brox. U-Net: Convolutional Networks for
Biomedical Image Segmentation. Springer International Publishing, 2015.
2. J. Zhang, J. Tang, B. Liang, Z. Yang, S. Wang, J. Zuo, and J. Li. Recommendation
over a heterogeneous social network. In Web-Age Information Management, 2008.
WAIM’08. The Ninth International Conference on, pages 309316. IEEE, 2008.
  • ieeetr
1. J. Zhang, J. Tang, B. Liang, Z. Yang, S. Wang, J. Zuo, and J. Li, “Recommendation
over a heterogeneous social network,” in Web-Age Information Management, 2008.
WAIM’08. The Ninth International Conference on, pp. 309316, IEEE, 2008.
2. O. Ronneberger, P. Fischer, and T. Brox, U-Net: Convolutional Networks for
Biomedical Image Segmentation. Springer International Publishing, 2015.
  • acm
1. Ronneberger, O., Fischer, P., and Brox, T. U-Net: Convolutional Networks
for Biomedical Image Segmentation. Springer International Publishing, 2015.
2. Zhang, J., Tang, J., Liang, B., Yang, Z., Wang, S., Zuo, J., and Li, J. Rec-
ommendation over a heterogeneous social network. In Web-Age Information Man-
agement, 2008. WAIM’08. The Ninth International Conference on (2008), IEEE,
pp. 309316.
  • siam
1. O. Ronneberger, P. Fischer, and T. Brox, U-Net: Convolutional Networks for
Biomedical Image Segmentation, Springer International Publishing, 2015.
2. J. Zhang, J. Tang, B. Liang, Z. Yang, S. Wang, J. Zuo, and J. Li, Recommen-
dation over a heterogeneous social network, in Web-Age Information Management,
2008. WAIM’08. The Ninth International Conference on, IEEE, 2008, pp. 309316.
  • apalike
[Ronneberger et al., 2015] Ronneberger, O., Fischer, P., and Brox, T. (2015). U-Net:
Convolutional Networks for Biomedical Image Segmentation. Springer International
Publishing.
[Zhang et al., 2008] Zhang, J., Tang, J., Liang, B., Yang, Z., Wang, S., Zuo, J., and
Li, J. (2008). Recommendation over a heterogeneous social network. In Web-Age
Information Management, 2008. WAIM’08. The Ninth International Conference on,
pages 309316. IEEE.

bib引用网页

首先导入包\usepackage{url},然后编辑bib文件如下:

@Misc{timmurphy.org,
howpublished={\url{http://timmurphy.org/2009/07/22/line-spacing-in-latex-documents/}},
note={Lasted accessed April 4, 2010},
title={Line Spacing in LaTeX documents},
author={Murphy, Timothy I}
}

最后在引用处\cite{timmurphy.org}即可。

参考文献

  1. Latex引用bib文件步骤
  2. cls和sty文件的区别
  3. bib引用网页
  4. \bibliographystyle常见引用格式
  5. llncs格式介绍
  • 11
    点赞
  • 34
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值