答案1
假设您要biblatex
(从您的关键字标签)管理您的参考文献,并且希望按数字顺序对参考文献进行排序,即姓氏在前,名字首字母在后(\DeclareNameAlias{default}{family-given}
),那么您可以得到如下结果:
其中代码为:
\documentclass{article}
\usepackage[backend=bibtex, giveninits=true, style=ieee]{biblatex} % using biblatex with style style=ieee for sorting ref by numbering
\DeclareNameAlias{default}{family-given} % Print family name first
\addbibresource{reference.bib} % the file inside which references are stored
\usepackage[hidelinks, colorlinks=true]{hyperref} % OPTIONAL
%
\begin{document}
%
\section{Introduction} \label{sec:intro}
In order to cite one reference, you can use cite command like this \cite{Doe_2020}. You can also cite two references like this \cite{Doe_2020,Tenis_2000}.
%
\printbibliography % list of references is printed here
\end{document}
reference.bib 文件的内容是(添加在 的同一主目录中main.tex
)
@Book{Doe_2020,
author = {John Doe},
publisher = {John Wiley},
title = {Differential equations : an introduction to modern methods and applications},
year = {2020},
address = {New Jersey},
isbn = {9780471651413},
keywords = {Differential equations},
language = {In English},
}
@Article{Tenis_2000,
author = {Michael Tenis},
journal = {Jounal of Energy},
title = {New article about something},
year = {2000},
month = aug,
number = {7},
pages = {66--88},
volume = {2},
}
编辑:bibtex
为了使用和 获得相同的结果(参考数字排序和作者姓氏在前) ,您可以使用以下natbib
样式:\bibliographystyle{acm}
\documentclass{article}
\usepackage[square,numbers]{natbib}
\bibliographystyle{acm}
\usepackage[hidelinks, colorlinks=true]{hyperref} % OPTIONAL
%
\begin{document}
%
\section{Introduction}
In order to cite one reference, you can use cite command like this \cite{Doe_2020}. You can also cite two references like this \cite{Doe_2020,Tenis_2000}.
%
\bibliography{reference} % list of references is printed here
\end{document}
输出如下