1、LaTeX中的参考文献BibTex
Configure TeXstudio——Build——BibTeX
% 导言区
\documentclass{ctexart} % ctexbook, ctexrep
\usepackage{amsmath}
% 正文区(文稿区)
\begin{document}
% 一次管理,一次使用
% 参考文献格式:
% \begin{thebibliography}{编号样本}
% \bibitem[记号]{引用标志}文献条目1
% \bibitem[记号]{引用标志}文献条目2
% ...
%\end{thebibliography}
%其中文献条目包括:作者,题目,出版社,年代,版本,页码等。
%引用时候要可以采用:\cite{引用标志1,引用标志2,...}
引用一篇文章\cite{article1} 引用一本书\cite{latexGuide}等等
\begin{thebibliography}{99}
\bibitem{article1}陈立辉,苏伟,蔡云,陈晓云,\emph{基于LaTeX的Web数学公式提取方法研究}[J].计算机科学.2014(06)
\bibitem{book1}William H. Press,Saul A.Teukolsky,William T.Vetterling,Brian P.Flannery,\emph{Numerical Recipes 3rd Edition:The Art of Scientific Computing}Cambridge University Press, New York,2007.
\bibitem{latexGuide} Kopka Helmut, W. Daly Patrick,\emph{Guide to \LaTeX}, $4^{th}$ Edition.
Available at \texttt{http://www.amazon.com}.
\bibitem{latexMath} Graetzer George, \emph{Math Into \LaTeX},BirkhAruser Boston; 3edition (June 22, 2000).
\end{thebibliography}
\end{document}
创建bib文件,并放入到指定文件夹中
@BOOK{mittelbach2004,
title = {The {{\LaTeX}} Companion},
publisher = {Addison-Wesley},
year = {2004},
author = {Frank Mittelbach and Michel Goossens},
series = {Tools and Techniques for Computer Typesetting},
address = {Boston},
edition = {Second}
}
编译后生成.aux辅助文件,之后编译辅助文件,根据指令的plain.bst样式文件,对指定文件进行排版并生成.bbl文件
% 导言区
\documentclass{ctexart} % ctexbook, ctexrep
\usepackage{natbib} % 引入宏包使用更多样式
%\usepackage{amsmath}
\bibliographystyle{plain} %plain unsrt alpha abbrv
% 正文区(文稿区)
\begin{document}
这是一个参考文献的引用:\cite{mittelbach2004}
\nocite{*}
\bibliography{test}
\end{document}
Tools——Clean Auxiliary Files 清理辅助文件
也可使用JabRef软件
2、LaTeX中参考文献BibLaTeX
Configure TeXstudio——Build——Biber
% 导言区
\documentclass{ctexart} % ctexbook, ctexrep
% \usepackage{ctex}
% biblatex/biber
% 新的TEX参考文献排版引擎
% 样式文件(参考文献样本文件--bbx文件,引用样式文件--cbx)使用LaTeX编写
% 支持根据本地化排版,如:
% biber -l zh__pinyin texfile,用于指定按拼音排序
% biber -l zh__stroke texfile,用于按笔画排序
\usepackage[style=numeric, backend=biber]{biblatex}
\addbibresource{test.bib}
% 正文区(文稿区)
\begin{document}
% 一次管理,多次应用
无格式化引用\cite{biblatex}
带方括号的引用\parencite{a1-1}
上标引用\supercite{6-1}
\nocite{*}
\printbibliography[title={参考文献}]
\end{document}
可以在下方网址下载文件,将文件解压到文件夹中并编译
https://gitlab.com/CasperVector/biblatex-caspervector
当编译较为复杂时,可以创建build.bat文件进行编译
xelatex latexRefBibLaTeX
biber -l zh__pinyin latexRefBibLaTeX
xelatex latexRefBibLaTeX
xelatex latexRefBibLaTex
del *.aux *.bbl *.bcf *.blg *.log *.xml