网站首页 文章专栏 Use cite in latex(xelatex)
Use cite in latex(xelatex)
创建于:2018-05-10 16:00:00 更新于:2024-04-25 17:50:37 羽瀚尘 749
latex latex,bibtex

使用latex做文献引用

首先,在工程中新建latex源文件,命名为 ref_test.tex

然后,建立文献引用文件, 命名为tex.bib

经过四次编译过程,分别是

xelatex ref_test.tex
bibtex ref_test.aux
xelatex ref_test.tex
xelatex ref_test.tex

其他的注意要点: 1. \usepackage中的numbers指使用传统方式引用,即在文字后面加[index]的方式 2. \usepackage中的square指使用方括号,super指的是方括号是上标,比如 3. 引用的时候插入\cite{index},其中index是bib文件中文献的自定义索引 4. 需要显示参考文献的地方插入\bibliography{tex},其他textex.bib去掉后缀得到的。 - latex 源文件

\documentclass{ctexart}
\usepackage[numbers,sort&compress,square, super]{natbib}
\bibliographystyle{plainnat}
\begin{document}

\section{section1}
Here is a simple example about how to cite an article\cite{refindex}.


\bibliography{tex}
\end{document}
  • bib源文件
@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指令包含了子文件就可以正常引用。