gpt4 book ai didi

latex - 日期未显示在引用 natbib 中

转载 作者:行者123 更新时间:2023-12-05 05:50:09 42 4
gpt4 key购买 nike

我正在为 beamer 使用 nat bib 并且我的引用都显示为 n.d.,尽管引用在围兜文件。

\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 上的所有引用样式都会发生这种情况。我不知道发生了什么。我将不胜感激。

最佳答案

对于 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}

enter image description here

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

关于latex - 日期未显示在引用 natbib 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70557208/

42 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com