![编辑:](https://linux22.com/image/359221/%E7%BC%96%E8%BE%91%EF%BC%9A.png)
我使用Bibtex
,并且我想按照上面的形式排列参考文献。
我查看了样式类型,发现最接近上述形式的排列是acm
但是名字的字母很大,单词的字母也and
很大。
解决办法是什么 ?
有没有类似上述形式的其他风格?
例如,
\documentclass[a4paper,10pt]{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
%Includes "References" in the table of contents
\usepackage[nottoc]{tocbibind}
%Begining of the document
\begin{document}
\maketitle
\tableofcontents
\medskip
\section{First Section}
This document is an example of BibTeX using in bibliography management. Three items are cited: \textit{The \LaTeX\ Companion} book \cite{latexcompanion}, the Einstein journal paper \cite{einstein}, and the Donald Knuth's website \cite{knuthwebsite}. The \LaTeX\ related items are \cite{latexcompanion,knuthwebsite}.
\medskip
%Sets the bibliography style to UNSRT and imports the
%bibliography file "samples.bib".
\bibliographystyle{acm}
\bibliography{sample}
\end{document}
书目文件
@article{einstein,
author = "Albert Einstein",
title = "{Zur Elektrodynamik bewegter K{\"o}rper}. ({German})
[{On} the electrodynamics of moving bodies]",
journal = "Annalen der Physik",
volume = "322",
number = "10",
pages = "891--921",
year = "1905",
DOI = "http://dx.doi.org/10.1002/andp.19053221004"
}
@book{latexcompanion,
author = "Michel Goossens and Frank Mittelbach and Alexander Samarin",
title = "The \LaTeX\ Companion",
year = "1993",
publisher = "Addison-Wesley",
address = "Reading, Massachusetts"
}
@misc{knuthwebsite,
author = "Donald Knuth",
title = "Knuth: Computers and Typesetting",
url = "http://www-cs-faculty.stanford.edu/\~{}uno/abcde.html"
}
参考顺序如图
答案1
定制起来更加容易biblatex
,biber
而不是bibtex
。
因此以下内容基于biblatex
(尝试texdoc biblatex
阅读文档)。
使用包选项
style=numeric,
你可以得到你想要的数字布局,
giveninits=true
名字仅显示其首字母和命令
\DeclareNameAlias{default}{family-given}
所有名字都打印为“familyname, firstname”。
因此以下 MWE
\RequirePackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{einstein,
author = "Albert Einstein",
title = "{Zur Elektrodynamik bewegter K{\"o}rper}. ({German})
[{On} the electrodynamics of moving bodies]",
journal = "Annalen der Physik",
volume = "322",
number = "10",
pages = "891--921",
year = "1905",
DOI = "http://dx.doi.org/10.1002/andp.19053221004"
}
@book{latexcompanion,
author = "Michel Goossens and Frank Mittelbach and Alexander Samarin",
title = "The \LaTeX\ Companion",
year = "1993",
publisher = "Addison-Wesley",
address = "Reading, Massachusetts"
}
@misc{knuthwebsite,
author = "Donald Knuth",
title = "Knuth: Computers and Typesetting",
url = "http://www-cs-faculty.stanford.edu/\~{}uno/abcde.html"
}
\end{filecontents}
\documentclass[a4paper,10pt]{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{csquotes}
\usepackage[%
style=numeric,
sortcites,
backend=biber,
giveninits=true % <===================================================
]{biblatex}
\addbibresource{\jobname.bib}
\DeclareNameAlias{default}{family-given} % <============================
\begin{document}
\section{First Section}
This document is an example of BibTeX using in bibliography management.
Three items are cited: \textit{The \LaTeX\ Companion} book
\cite{latexcompanion}, the Einstein journal paper \cite{einstein}, and
the Donald Knuth's website \cite{knuthwebsite}. The \LaTeX\ related
items are \cite{latexcompanion,knuthwebsite}.
\medskip
\printbibliography
\end{document}
应该会给你你想要的结果:
如果这不是您所需要的,请在您的问题中指定如何在参考书目中打印书籍、如何打印文章、如何打印在线参考等。您插入的图像不清楚......
编辑:
要更改单位后的符号,您可以添加以下命令
\renewcommand*\newunitpunct{\addcomma\space}
得到一个逗号,后面跟着一个空格。
因此,有了以下 MWE
\RequirePackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{einstein,
author = "Albert Einstein",
title = "{Zur Elektrodynamik bewegter K{\"o}rper}. ({German})
[{On} the electrodynamics of moving bodies]",
journal = "Annalen der Physik",
volume = "322",
number = "10",
pages = "891--921",
year = "1905",
DOI = "http://dx.doi.org/10.1002/andp.19053221004"
}
@book{latexcompanion,
author = "Michel Goossens and Frank Mittelbach and Alexander Samarin",
title = "The \LaTeX\ Companion",
year = "1993",
publisher = "Addison-Wesley",
address = "Reading, Massachusetts"
}
@misc{knuthwebsite,
author = "Donald Knuth",
title = "Knuth: Computers and Typesetting",
url = "http://www-cs-faculty.stanford.edu/\~{}uno/abcde.html"
}
\end{filecontents}
\documentclass[a4paper,10pt]{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{csquotes}
\usepackage[%
style=numeric,
sortcites,
backend=biber,
giveninits=true % <===================================================
]{biblatex}
\addbibresource{\jobname.bib}
\DeclareNameAlias{default}{family-given} % <============================
\renewcommand*\newunitpunct{\addcomma\space} % <========================
\begin{document}
\section{First Section}
This document is an example of BibTeX using in bibliography management.
Three items are cited: \textit{The \LaTeX\ Companion} book
\cite{latexcompanion}, the Einstein journal paper \cite{einstein}, and
the Donald Knuth's website \cite{knuthwebsite}. The \LaTeX\ related
items are \cite{latexcompanion,knuthwebsite}.
\medskip
\printbibliography
\end{document}
您将获得以下结果:
编辑2:
\renewcommand*\newunitpunct
在重新定义命令后添加\finalnamedelim
:
\renewcommand*\newunitpunct{\addcomma\space} % <========================
\renewcommand*{\finalnamedelim}{%
\addspace\bibstring{and}\space}%
% <===== ^^^^^^^^^^^^^^^^^ =============================================
这将删除您不想要的逗号。
答案2
如果您愿意从 切换bibtex
到biblatex
,则只需使用biblatex
选项 加载包style=numeric
。以下是对我有用的 MWE:
\documentclass[a4paper,10pt]{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[style=numeric,sortcites,backend=biber]{biblatex}
\bibliography{sample.bib}
%Begining of the document
\begin{document}
\tableofcontents
\medskip
\section{First Section}
This document is an example of BibTeX using in bibliography management. Three items are cited: \textit{The \LaTeX\ Companion} book \cite{latexcompanion}, the Einstein journal paper \cite{einstein}, and the Donald Knuth's website \cite{knuthwebsite}. The \LaTeX\ related items are \cite{latexcompanion,knuthwebsite}.
\medskip
\printbibliography
\end{document}