我想在参考书目中先显示作者姓氏,再显示名字。该怎么做?
请参阅附件的代码和bib文件。
我在 bib 文件中有很多参考文献,但例如我只使用三个。
Latex 代码
\documentclass[oneside,12pt,leqno]{book}
\input psfig.sty
\oddsidemargin=0pt
\evensidemargin=0pt
\topmargin=-0.5in
\textwidth=6.5in
\textheight=9.5in
%\topmargin=-1.5in
\usepackage[T1]{fontenc}
%\usepackage[latin9]{inputenc}
\usepackage{graphicx}
\usepackage{times}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{endnotes}
\usepackage{makeidx}
\usepackage{caption}
\usepackage{epstopdf}
\usepackage{epsfig}
\usepackage{adjustbox}
\usepackage{array}
\begin{document}
\chapter{Test}
Old day at school \cite{abram1972,austrian1982,babbage1832}
\bibliographystyle{plain}
\bibliography{test}
\end{document}
Bib 文件是
@book{abram1972,
author = {Abramowitz, M. I. and Stegun, I. A.},
owner = {ray},
publisher = {Dover Publications},
title = {Handbook of Mathematical Functions with Formulas,Graphs, and Mathematical Tables},
year = {1972},
}
@book{austrian1982,
__markedentry = {[rayn:1]},
author = {Austrian, Geoffrey D},
owner = {mine_design},
publisher = {Columbia University Press},
title = {Herman Hollerith: forgotten giant of information processing},
year = {1982},
}
@book{babbage1832,
__markedentry = {[rayn:1]},
author = {Babbage, Charles},
owner = {mine_design},
publisher = {Taylor \& Francis},
title = {On the economy of machinery and manufactures},
year = {1832},
}
答案1
如果你使用biblatex+biber
它,它很简单。生成参考书目的语法略有不同:你使用命令在序言中定义 .bib 文件\addbibresource
,将biblatex, and simply write
\printbibliography 加载到你想要的位置。注意,我将输入编码更改为utf8
可以biber
理解的编码。
此外,times
已经过时了,您应该使用mathptmx
,或者更好的是newtx
。我不明白为什么您应该加载psfig
和epsfig
,因为您加载了“graphicx”。
\documentclass[oneside,12pt,leqno]{book}
\oddsidemargin=0pt
\evensidemargin=0pt
\topmargin=-0.5in
\textwidth=6.5in
\textheight=9.5in
%\topmargin=-1.5in
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{mathptmx}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{endnotes}
\usepackage{makeidx}
\usepackage{caption}
\usepackage{epstopdf}
\usepackage{adjustbox}
\usepackage{array}
\usepackage{filecontents}
\begin{filecontents}{test.bib}
@book{abram1972,
author = {Abramowitz, M. I. and Stegun, I. A.},
owner = {ray},
publisher = {Dover Publications},
title = {Handbook of Mathematical Functions with Formulas,Graphs, and Mathematical Tables},
year = {1972},
}
@book{austrian1982,
__markedentry = {[rayn:1]},
author = {Austrian, Geoffrey D},
owner = {mine_design},
publisher = {Columbia University Press},
title = {Herman Hollerith: forgotten giant of information processing},
year = {1982},
}
@book{babbage1832,
__markedentry = {[rayn:1]},
author = {Babbage, Charles},
owner = {mine_design},
publisher = {Taylor \& Francis},
title = {On the economy of machinery and manufactures},
year = {1832},
}
\end{filecontents}
\usepackage[backend=biber]{biblatex}
\addbibresource{test.bib}
\DeclareNameAlias{default}{last-first}
\begin{document}
\chapter{Test}
Old day at school \cite{abram1972,austrian1982,babbage1832}
\printbibliography
\end{document}