【问题标题】:Date not showing in citations natbib引文中未显示日期 natbib
【发布时间】:2022-01-02 15:22:39
【问题描述】:

我将nat bib 用于beamer,并且我的引用都显示为n.d.,尽管引用在 bib 文件中有日期。

\documentclass{beamer}
\usepackage{natbib}
\bibliographystyle{agsm}
\usepackage[german]{babel}

\begin{document}
  \begin{frame}
    \frametitle{Example citation}
    This is an example text with a citation from \citep{burzio1988ItalianSyntaxGovernmentBindingApproach} (← which is without date here and in the bibliography)
  \end{frame}

  \begin{frame}
    \frametitle{Bibliography}
    \bibliography{MyLibrary}
  \end{frame}
\end{document}

这是 bib 文件中的引文信息(位于同一工作文件夹中):

  @article{burzio1988ItalianSyntaxGovernmentBindingApproach,
  title = {Italian {{Syntax}}: {{A Government-Binding Approach}}},
  shorttitle = {Italian {{Syntax}}},
  author = {Burzio, Luigi},
  date = {1988-03},
  journaltitle = {Language},
  shortjournal = {Language},
  volume = {64},
  number = {1},
  eprint = {414791},
  eprinttype = {jstor},
  pages = {130},
  issn = {00978507},
  doi = {10.2307/414791}
}

natbib 上的所有引用样式都会发生这种情况。我不知道发生了什么。非常感谢您的帮助。

【问题讨论】:

    标签: latex biblatex


    【解决方案1】:

    对于 bibtex,使用旧的 yearmonth 字段而不是 date

    \documentclass{beamer}
    \usepackage{natbib}
    \bibliographystyle{agsm}
    \usepackage[german]{babel}
    
    \begin{filecontents*}[overwrite]{\jobname.bib}
      @article{burzio1988ItalianSyntaxGovernmentBindingApproach,
      title = {Italian {{Syntax}}: {{A Government-Binding Approach}}},
      shorttitle = {Italian {{Syntax}}},
      author = {Burzio, Luigi},
      year = 1988,
      month = 3,
      journaltitle = {Language},
      shortjournal = {Language},
      volume = {64},
      number = {1},
      eprint = {414791},
      eprinttype = {jstor},
      pages = {130},
      issn = {00978507},
      doi = {10.2307/414791}
    }
    \end{filecontents*}
    
    \begin{document}
      \begin{frame}
        \frametitle{Example citation}
        This is an example text with a citation from \citep{burzio1988ItalianSyntaxGovernmentBindingApproach} (← which is without date here and in the bibliography)
      \end{frame}
    
      \begin{frame}
        \frametitle{Bibliography}
        \bibliography{\jobname}
      \end{frame}
    \end{document}
    

    如果您更喜欢使用 date 字段,请从 bibtex 切换到 biblatex。 Biblatex 不仅支持优越的date 字段,而且更加灵活和易于定制。

    【讨论】:

    • 谢谢,是 Biblatex 解决方案奏效了!非常感谢!
    • @marcocamilo 不客气!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-05-15
    • 1970-01-01
    • 2020-02-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多