使用 biblatex-chicago 打印 origdate - 用于期刊文章

使用 biblatex-chicago 打印 origdate - 用于期刊文章

我想使用这种方法包括出版物的原始日期。然而答案似乎只适用于@book但不适用于@article

\documentclass{article}
\usepackage[authordate,backend=biber]{biblatex-chicago}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@Book{hume1739,
  author       = {David Hume},
  editor       = {David Fate Norton},
  title        = {A Treatise of Human Nature},
  publisher    = {Oxford University Press},
  year         = 2000,
  address      = {Oxford},
  options      = {cmsdate=on},
  origdate     = {1739/1740}
}
@article{mori2012uncanny,
    AUTHOR      = {Mori, Masahiro},
    TITLE       = {The Uncanny Valley},
    TRANSLATOR  = {MacDorman, Karl F. and Kageki, Norri},
    JOURNAL     = {IEEE Robotics \& Automation Magazine},
    VOLUME      = {19},
    NUMBER      = {2},
    PAGES       = {98--100},
    ORIGDATE    = {1994},
    OPTIONS     = {cmsdate=on},
    YEAR        = {2012}
}
\end{filecontents}
\addbibresource{\jobname.bib}

\DeclareCiteCommand{\citeyear} %lifted from biblatex.def
  {\boolfalse{citetracker}%
   \boolfalse{pagetracker}%
   \usebibmacro{prenote}}
   {% modified from here
   \iffieldundef{origyear}
       {\printfield{year}}
       {\printorigdate}
   }% to here
  {\multicitedelim}
  {\usebibmacro{postnote}}


\begin{document}

\cite{hume1739}, \cite{mori2012uncanny}

\printbibliography

\end{document}

因此 Mori 缺少了 2012 年的酒款:

在此处输入图片描述

我理想情况下也会将日期翻转。例如,引用“Mori 2012”,参考书目中则是“Mori Masahiro. 2012. ... (orig. 1994)”

答案1

诀窍是cmsdate=both,不需要宏:

\documentclass{article}
\usepackage[authordate,backend=biber]{biblatex-chicago}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@Book{hume1739,
  author       = {David Hume},
  editor       = {David Fate Norton},
  title        = {A Treatise of Human Nature},
  publisher    = {Oxford University Press},
  year         = 2000,
  address      = {Oxford},
  options      = {cmsdate=both},
  origdate     = {1739/1740}
}
@article{mori2012uncanny,
    AUTHOR      = {Mori, Masahiro},
    TITLE       = {The Uncanny Valley},
    TRANSLATOR  = {MacDorman, Karl F. and Kageki, Norri},
    JOURNAL     = {IEEE Robotics \& Automation Magazine},
    VOLUME      = {19},
    NUMBER      = {2},
    PAGES       = {98--100},
    ORIGDATE    = {1994},
    OPTIONS     = {cmsdate=both},
    YEAR        = {2012}
}
\end{filecontents}
\addbibresource{\jobname.bib}


\begin{document}

Book \autocite{hume1739} and article \autocite{mori2012uncanny}.

\printbibliography

\end{document}

在此处输入图片描述

相关内容