Use cite in latex(xelatex)
- 2019 年 11 月 20 日
- 筆記
使用latex做文献引用
首先,在工程中新建latex源文件,命名为 ref_test.tex
然后,建立文献引用文件, 命名为tex.bib
经过四次编译过程,分别是
1234 |
xelatex ref_test.texbibtex ref_test.auxxelatex ref_test.texxelatex ref_test.tex |
---|
其他的注意要点:
usepackage
中的numbers
指使用传统方式引用,即在文字后面加[index]
的方式usepackage
中的square
指使用方括号,super
指的是方括号是上标,比如 $引文^[2]$- 引用的时候插入
cite{index}
,其中index
是bib文件中文献的自定义索引 - 需要显示参考文献的地方插入
bibliography{tex}
,其他tex
是tex.bib
去掉后缀得到的。
- latex 源文件 1234567891011documentclass{ctexart}usepackage[numbers,sort&compress,square, super]{natbib}bibliographystyle{plainnat}begin{document}section{section1}Here is a simple example about how to cite an articlecite{refindex}.bibliography{tex}end{document}
- bib源文件 12345678910@ARTICLE{refindex, author = {Laurent Itti and Christof Koch and Ernst Niebur}, title = {A model of saliency-based visual attention for rapid scene analysis}, journal = IEEE_J_TPAMI, month = {Nov.}, year = {1998}, volume = {20}, pages = {1254–1259}, number = {11},}
多文件latex做文献的交叉引用
额,好像多文件并没有增加复杂度,只要用include
指令包含了子文件就可以正常引用。