我正在使用该课程撰写我的硕士论文book
。我需要将引文写成文本中的脚注,并将其收集在参考书目章节的末尾。为此,我需要两种不同的样式,一种用于脚注引文,一种用于参考书目条目。
借助该xpatch
软件包,我创建了所需的脚注样式。但是,我不知道如何更改论文末尾参考书目条目的样式(目前,两种样式相同)。
对于脚注引用,它们必须以以下形式出现:
N. Surname 等人,论文标题。期刊名称、编辑、年份、页数
对于参考书目条目,它们必须显示为:
姓氏 姓名,论文标题。期刊名称,编辑,年份
这是 MWE(脚注引用样式正确,参考书目样式错误)。我使用 XeLaTeX 和 Biber 进行编译:
\documentclass[a4paper,12pt]{book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsfonts}
\usepackage[style=verbose,
doi=false,
firstinits=true,
maxbibnames=99
]{biblatex}
\usepackage{fontspec}
\usepackage{titlesec}
\usepackage{titletoc}
\usepackage{xpatch}
\usepackage[english]{babel}
\setmainfont{Arial}
\pagestyle{plain}
\titleformat{\chapter}[hang]
{\normalfont\huge\bfseries}{\thechapter}{1em}{}
\addbibresource{Bib.bib}
% et al. italics
\xpatchbibmacro{name:andothers}{%
\bibstring{andothers}%
}{%
\bibstring[\emph]{andothers}%
}{}{}
\usepackage{xpatch}
\xpretobibmacro{title}{\unspace\addcomma\addspace}{}{}
\DeclareFieldFormat[article]{title}{\textit{#1}\addcomma}
\DeclareFieldFormat[book]{title}{\textit{#1}\nopunct}
\DeclareFieldFormat[book]{title}{\textit{#1}\addcomma}
\renewbibmacro{in:}{ in\nopunct}
\DeclareFieldFormat{journaltitle}{\guillemotleft #1\guillemotright \addcomma}
\DeclareFieldFormat{pages}{#1}
\setlength\bibitemsep{1.5\itemsep}
%**BEGIN DOCUMENT**
\begin{document}
\chapter{Introduction}
Lorem ipsum\footcite{Aiello2014}
Lorem ipsum\footcite{Arksey1999}
\printbibliography
\end{document}
这是 Bib.bib 文件
%Aiello_Bulgherano
@article{Aiello2014,
title={{An assessment of the Beerkan method for determining the hydraulic properties of a sandy loam soil}},
author={Aiello, R and Bagarello, V and Barbagallo, S and Consoli, S and Di Prima, S and Giordano, G and Iovino, M},
journal={Geoderma},
volume={235},
pages={300--307},
year={2014},
doi={10.1016/j.geoderma.2014.07.024}
}
%Arksey
@book{Arksey1999,
title={Interviewing for social scientists: An introductory resource with examples},
author={Arksey, Hilary and Knight, Peter T},
year={1999},
publisher={Sage}
}
答案1
对于这种风格,我仍然有几个方面不太清楚,但我想下面的内容应该已经能让你有所了解了。
我读到这个问题时,它主要与姓名格式有关。您需要更改的姓名格式称为sortname
。在引文中,我们需要一种提供名字首字母和姓氏的格式(新格式g-family
)。
cite:full
只是cite:full
来自的副本verbose.cbx
,第 93-99 页,名称格式已改变。
在参考书目中,我们希望名称采用“家族给定”的顺序,并且各部分之间没有逗号(由 控制\revsdnamepunct
)。
我稍微重写了你的方法,在引用的元素之间加上逗号:使用起来稍微容易一些,也更简洁一些\renewcommand*{\newunitpunct}{\addcomma\space}
。
\documentclass[a4paper,12pt]{article}
\usepackage[english]{babel}
\usepackage[style=verbose,
maxbibnames=999,
doi=false,
]{biblatex}
\DeclareNameFormat{g-family}{%
\usebibmacro{name:given-family}
{\namepartfamily}
{\namepartgiveni}
{\namepartprefix}
{\namepartsuffix}%
\usebibmacro{name:andothers}}
\renewbibmacro*{cite:full}{%
\usebibmacro{cite:full:citepages}%
\printtext[bibhypertarget]{%
\usedriver
{\DeclareNameAlias{sortname}{g-family}}
{\thefield{entrytype}}}%
\usebibmacro{shorthandintro}}
\usepackage{xpatch}
\xpatchbibmacro{name:andothers}{%
\bibstring{andothers}%
}{%
\bibstring[\emph]{andothers}%
}{}{}
\renewcommand*{\newunitpunct}{\addcomma\space}
\renewcommand*{\intitlepunct}{\addspace}
\renewcommand*{\finentrypunct}{}
\DeclareNameAlias{sortname}{family-given}
\renewcommand*{\revsdnamepunct}{}
\DeclareFieldFormat[article]{title}{\mkbibemph{#1}}
\DeclareFieldFormat{journaltitle}{\guillemotleft #1\guillemotright}
\DeclareFieldFormat{pages}{#1}
\setlength\bibitemsep{1.5\itemsep}
\begin{filecontents}{\jobname.bib}
@article{Aiello2014,
title = {An assessment of the Beerkan method for determining
the hydraulic properties of a sandy loam soil},
author = {Aiello, R. and Bagarello, V. and Barbagallo, S. and Consoli, S.
and Di Prima, S. and Giordano, G. and Iovino, M.},
journal = {Geoderma},
volume = {235},
pages = {300--307},
year = {2014},
doi = {10.1016/j.geoderma.2014.07.024}
}
@book{Arksey1999,
title = {Interviewing for social scientists: An introductory resource with examples},
author = {Arksey, Hilary and Knight, Peter T.},
year = {1999},
publisher = {Sage}
}
\end{filecontents}
\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}
\begin{document}
Lorem ipsum\footcite{Aiello2014}
ipsum\footcite{Arksey1999}
dolor\footcite{sigfridsson}
\printbibliography
\end{document}