Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

参考文献条目中只有date没有year时不显示年份 #299

Closed
4 tasks done
GongSiqiu opened this issue Apr 25, 2021 · 2 comments
Closed
4 tasks done

参考文献条目中只有date没有year时不显示年份 #299

GongSiqiu opened this issue Apr 25, 2021 · 2 comments
Labels

Comments

@GongSiqiu
Copy link

GongSiqiu commented Apr 25, 2021

检查

  • 已经阅读《研究生学位论文撰写手册》或《关于本科毕业论文(设计)格式和统一封面的通知》
  • 已经将模板升级到了最新版
  • 已经阅读使用说明文档 ustcthesis.pdf
  • 已经阅读 常见问题

编译环境

  • 编译的系统:debian 10
  • TeX 发行版:TeX Live 2021
  • 模板类型:bachelor

截图:
图片

复现上述问题的代码:

\documentclass[degree=bachelor,pdf]{ustcthesis}
\begin{filecontents}{refs.bib}
@Article{Weedbrook2012,
  author       = {Christian Weedbrook and Stefano Pirandola and Ra{\'{u}}l Garc{\'{\i}}a-Patr{\'{o}}n and Nicolas J. Cerf and Timothy C. Ralph and Jeffrey H. Shapiro and Seth Lloyd},
  date         = {2012-05},
  journaltitle = {Reviews of Modern Physics},
  title        = {Gaussian quantum information},
  doi          = {10.1103/revmodphys.84.621},
  number       = {2},
  pages        = {621--669},
  volume       = {84},
  publisher    = {American Physical Society ({APS})},
}
@Article{Weedbrook2012a,
  author       = {Christian Weedbrook and Stefano Pirandola and Ra{\'{u}}l Garc{\'{\i}}a-Patr{\'{o}}n and Nicolas J. Cerf and Timothy C. Ralph and Jeffrey H. Shapiro and Seth Lloyd},
  year         = {2012},
  journaltitle = {Reviews of Modern Physics},
  title        = {Gaussian quantum information},
  doi          = {10.1103/revmodphys.84.621},
  number       = {2},
  pages        = {621--669},
  volume       = {84},
  publisher    = {American Physical Society ({APS})},
}
\end{filecontents}
\usepackage[sort]{natbib}
\bibliographystyle{ustcthesis-bachelor}
\begin{document}
\cite{Weedbrook2012}\cite{Weedbrook2012a}
\bibliography{refs}  
\end{document}
@zepinglee zepinglee added the bug label Apr 25, 2021
@zepinglee
Copy link
Member

zepinglee commented Apr 25, 2021

year + journal 是 bibtex 的格式,date + journaltitle 是 biblatex 的格式。我在设计 .bst 的时候尽可能兼容两种写法,但这里显然出了些问题。

@zepinglee
Copy link
Member

现在好了。

Screen Shot 2021-05-08 at 15 05 24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants