biblatex-chicago를 사용하여 원본 인쇄 - 저널 기사용

biblatex-chicago를 사용하여 원본 인쇄 - 저널 기사용

나는 사용하고 싶다이 접근법출판의 원래 날짜를 포함합니다. 그러나 대답은 @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. ...(원작 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}

여기에 이미지 설명을 입력하세요

관련 정보