我怎样才能使我的参考书目风格如下:
姓氏,名字首字母,.....
参考文献应在论文中以 [1] 的形式出现,并按参考书目中的字母顺序出现。例如http://www.doria.fi/bitstream/handle/10024/103747/d%C3%ADaz_natalia.pdf?sequence=2
我尝试过各种风格,但似乎没有一种适合我。
编辑 引用的示例如下:
Agostini, A., Bettini, C., and Riboni, D. (2009). Hybrid reasoning in
the CARE middleware for context awareness. Int. J. Web Eng. Technol.,
5(1):3–23.
目前,我似乎只能找到如下样式:
A. Agostini, C. Bettini, and D. Riboni. (2009). Hybrid reasoning in
the CARE middleware for context awareness. Int. J. Web Eng. Technol.,
5(1):3–23.
答案1
我认为,这是一种获得您想要的东西的方法biblatex+biber
:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{filecontents}
\begin{filecontents}{testlastfirst.bib}
@article{ago09,
author = {Agostini, A. and Bettini, C. and Riboni, D.},
title = { Hybrid reasoning in the CARE middleware for context awareness},
journal = {Int. J. Web Eng. Technol.},
volume = {5},
number = {1},
year = {2009},
pages = {3–23}
}
\end{filecontents}
\usepackage[bibstyle=authoryear,labelnumber, firstinits,backend=biber]{biblatex}%
\addbibresource{testlastfirst.bib}
\DeclareNameAlias{sortname}{last-first}
\defbibenvironment{numlabel}
{\list
{\printtext[labelnumberwidth]{%
\iffieldundef{shorthand}
{\printfield{prefixnumber}%
\printfield{labelnumber}}
{\printfield{shorthand}}}}
{\setlength{\labelwidth}{\labelnumberwidth}%
\setlength{\leftmargin}{\labelwidth}%
\setlength{\labelsep}{\biblabelsep}%
\addtolength{\leftmargin}{\labelsep}%
\setlength{\itemsep}{\bibitemsep}%
\setlength{\parsep}{\bibparsep}}%
\renewcommand*{\makelabel}[1]{\hss##1}}
{\endlist}
{\item}
\DeclareFieldFormat{labelnumberwidth}{\mkbibbrackets{#1}}
\renewbibmacro*{volume+number+eid}{%
\printfield{volume}%
\mkbibparens {%
\printfield{number}}%
\setunit{\addcomma\space}%
\printfield{eid}}
\renewbibmacro{in:}{\relax}
\renewcommand\bibpagespunct{\addcolon\space}
\DefineBibliographyStrings{english}{%
pages = {\relax}%
}%
\usepackage{xpatch}
\xpatchbibmacro{journal+issuetitle}{%
\usebibmacro{journal}%
\setunit*{\addspace}%
}{%
\usebibmacro{journal}%
\isdot\setunit*{\addcomma\space}%
}{}{}
\begin{document}
We can read in \cite{ago09}
\printbibliography[env =numlabel]
\end{document}
答案2
我认为最好的办法是修改 .bst 文件。选择最接近的样式,然后复制一份(这样你就不会弄乱原件 ;)!)。然后摆弄副本,直到找到修改代码以满足你的需求的位置。
我自己不太擅长写代码,但经过(大量!)反复试验,我设法使 .bst 适应我的需求。搜索功能是你的好朋友 :)
编辑:最好用 %% 注释标记你所做的更改,以供将来参考