使用authoryear
样式,主要是在文档中\footcite
使用带biblatex
/ 的命令biber
,我需要条目的第一个引用显示条目的长标题,而不是其简写,以及从第二个引用开始的简写。MWE 从第一个引用开始生成条目的简写。
我知道该authoryear
样式仅显示作品的作者和年份,但是我如何才能让第一个引用显示标题或完整信息?
\documentclass{article}
\usepackage[backend=biber, style=authoryear]{biblatex}
\usepackage[autostyle]{csquotes}
\begin{filecontents*}{./bibliography.bib}
@book{hfa,
title = {History of the anatidae},
shorthand = {HFA},
author = {Duck, Donald},
date = {2007},
location = {Ducksborough},
publisher = {Waterfowl Press}
}
\end{filecontents*}
\addbibresource{./bibliography.bib}
\begin{document}
This essay discusses the \enquote{History of the anatidae} by Donald Duck.%
\footcite[][henceforth called HFA]{hfa}
Now, as mentioned in that work, \LaTeXe is frequently used to depict animals at the University of Ducksborough.%
\footcite[][12]{hfa}
\printbibliography
\end{document}
答案1
将评论变成完整的答案。根据手册,\footfullcite
将“整个引文放在脚注中,并在末尾添加一个句号。”(参见 biblatex 手册第 113 页)
\documentclass{article}
\usepackage[backend=biber, style=authoryear]{biblatex}
\usepackage[autostyle]{csquotes}
\begin{filecontents*}{./bibliography.bib}
@book{hfa,
title = {History of the anatidae},
shorthand = {HFA},
author = {Duck, Donald},
date = {2007},
location = {Ducksborough},
publisher = {Waterfowl Press}
}
\end{filecontents*}
\addbibresource{./bibliography.bib}
\begin{document}
This essay discusses the \enquote{History of the anatidae} by Donald Duck.%
\footfullcite[][henceforth called HFA]{hfa}
Now, as mentioned in that work, \LaTeXe is frequently used to depict animals at the University of Ducksborough.%
\footcite[][12]{hfa}
\printbibliography
\end{document}
答案2
如果您更改相关的 bibmacros,则不必使用其他命令,甚至不必自己编写“henecforth references as ...”,biblatex
可以自动完成。
shorthand
为了保持一致性,我认为对不带注释的作品进行完整的首次引用也是有意义的。
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage[autostyle]{csquotes}
\usepackage[backend=biber, style=authoryear, autocite=footnote, citetracker]{biblatex}
\renewbibmacro*{shorthandintro}{%
\iffieldundef{shorthandintro}
{\iffieldundef{shorthand}
{}
{\setunit{\addcomma\space}%
\printtext{%
\bibstring{citedas}\space
\printfield{shorthand}}}}
{\setunit{\addcomma\space}%
\printfield{shorthandintro}}}
\newbibmacro*{cite:full}{%
\printtext[bibhypertarget]{%
\usedriver
{\DeclareNameAlias{sortname}{default}}
{\thefield{entrytype}}}%
\usebibmacro{shorthandintro}}
\renewbibmacro*{cite}{%
\ifciteseen
{\iffieldundef{shorthand}
{\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}}
{\usebibmacro{cite:label}%
\setunit{\printdelim{nonameyeardelim}}}
{\printnames{labelname}%
\setunit{\printdelim{nameyeardelim}}}%
\usebibmacro{cite:labeldate+extradate}}
{\usebibmacro{cite:shorthand}}}%
{\usebibmacro{cite:full}}}
\begin{filecontents*}{\jobname.bib}
@book{hfa,
title = {History of the anatidae},
shorthand = {HFA},
author = {Duck, Donald},
date = {2007},
location = {Ducksborough},
publisher = {Waterfowl Press}
}
\end{filecontents*}
\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}
\begin{document}
This essay discusses the \enquote{History of the anatidae} by Donald Duck.%
\autocite{hfa}
Now, as mentioned in that work, \LaTeXe is frequently used to depict
animals at the University of Ducksborough.%
\autocite[12]{hfa}
Lorem\autocite{sigfridsson} ipsum\autocite{sigfridsson}
\printbibliography
\end{document}
如果您也喜欢作者-标题简短引用,您可以使用预建verbose
样式。
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage[autostyle]{csquotes}
\usepackage[backend=biber, style=verbose]{biblatex}
\begin{filecontents*}{\jobname.bib}
@book{hfa,
title = {History of the anatidae},
shorthand = {HFA},
author = {Duck, Donald},
date = {2007},
location = {Ducksborough},
publisher = {Waterfowl Press}
}
\end{filecontents*}
\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}
\begin{document}
This essay discusses the \enquote{History of the anatidae} by Donald Duck.%
\autocite{hfa}
Now, as mentioned in that work, \LaTeXe is frequently used to depict
animals at the University of Ducksborough.%
\autocite[12]{hfa}
Lorem\autocite{sigfridsson} ipsum\autocite{sigfridsson}
\printbibliography
\end{document}