有人知道如何在我的 .bib 中为行政命令创建正确的 APA 条目吗?我似乎找不到任何关于使用哪些字段来使其工作的指导。
引用应如下所示:
行政命令编号 13,423,3 CFR 3919。(2007 年)。
答案1
如果你想通过多种方式实现这一点,最好使用。下面是使用样式的biblatex
示例。apa
biblatex
创建新的.bib
条目类型
首先,我们为行政命令创建一个新的书目条目类型。这样我们就可以正确地输入信息,而不是像使用条目misc
类型那样将所有信息都输入到一行中。大多数书目管理器应该允许您创建新的条目类型。因此,@executiveorder
条目具有以下字段:
@executiveorder{Executive-Order2007,
Number = {13423},
Pages = {919},
Volume = {3},
Year = {2007}}
加上一个可选Note
字段。
然后我们用它biblatex
来为这个条目类型创建一个新的书目驱动程序。
\documentclass{article}
% The following bib file contains a new entry type @executiveorder
% The required fields are Number, Pages, Volume and Year.
% The note field can also be used optionally
% Any other fields will be ignored
\begin{filecontents}{\jobname.bib}
@executiveorder{Executive-Order2007,
Number = {13423},
Pages = {919},
Volume = {3},
Year = {2007}}
@executiveorder{Executive-Order2008,
Number = {10200},
Pages = {200},
Volume = {4},
Year = {2008}}
\end{filecontents}
\usepackage[american]{babel}
\usepackage[utf8]{inputenc}
\usepackage{csquotes}
\usepackage[backend=biber,style=apa]{biblatex}
\addbibresource{\jobname.bib}
\DeclareLanguageMapping{english}{american-apa}
% Define some fixed texts and abbreviations
% Note that the final punctuation for the abbreviations
% is handled by biblatex
\newcommand*{\execname}{Executive Order}
\newcommand*{\execcitename}{Exec.\ Ord}
\newcommand*{\execnumname}{No}
\newcommand*{\execcitenumname}{No}
\newcommand*{\CFRname}{C.\ F.\ R}
% Make a new driver for the executiveorder entry type
\DeclareBibliographyDriver{executiveorder}{%
\usebibmacro{bibindex}%
\usebibmacro{begentry}%
\printtext{\execname}
\newblock
\printtext{\execnumname}\newunit
\usebibmacro{execnumber}
\newunit\addcomma\newblock
\usebibmacro{execvolume}%
\newblock
\printtext{\CFRname}%
\adddot\newunit
\usebibmacro{execpage}%
\newblock\newunit
\usebibmacro{labelyear+extrayear}%
\newunit\newblock
\printfield{note}%
\usebibmacro{apa:pageref}%
\usebibmacro{apa:finpunct}%
\usebibmacro{finentry}}
% Now define macros to print the parts of the reference itself
\newbibmacro*{execnumber}{%
\printfield[execnumber]{number}
%
}
\newbibmacro*{execvolume}{%
\printfield[execvolume]{volume}
}
% The page reference is composed of the Volume+page without a space
\newbibmacro*{execpage}{%
\usebibmacro{execvolume}
\unspace
\printfield[execpage]{pages}
\newunit
}
% formatting directives for the parts of the executive order
\DeclareFieldFormat{execnumber}{#1}
\DeclareFieldFormat{execvolume}{#1}
\DeclareFieldFormat{execpage}{#1}
% since Exec. Orders have no author, we adapt the noname cite macro
% to test for this entry type and use it to format the citation
\renewbibmacro*{cite:noname}{%
\ifentrytype{executiveorder}{%
\printtext{\execcitename}
\adddot\newunit
\printtext{\execcitenumname}
\adddot\newunit
\printfield[execnumber]{number}}
{\printfield[citetitle]{labeltitle}}}
\begin{document}
\section*{What did the President do?}
The President, in \cite{Executive-Order2007} ordered something.
He ordered something else the next year. \parencite{Executive-Order2008}
\printbibliography
\end{document}