这是我的最小工作示例:
\documentclass[twoside,12pt]{article}
\usepackage[a4paper, left=1in, top=1in, bottom=1in, right=0.5in]{geometry}
\usepackage[style=ieee]{biblatex}
\addbibresource{testing_bib.bib}
\newcommand{\mkbibnodate}{n\adddot d\adddot}
\AtEveryCitekey{\iffieldundef{labelyear}{\restorefield{labelyear}{\mkbibnodate}}{}}
\AtEveryBibitem{\iffieldundef{labelyear}{\restorefield{year}{\mkbibnodate}}{}}
\DeclareLabeldate{
\field{date}
\field{eventdate}
\field{origdate}
\literal{nodate}
}
\begin{document}
\cite{eb_bhp, cth_nuclear_energy, aspi_enrichment, bhp_history, bhp_olympic_dam, asno-annual-report-2019-20, dfat_npt}
\printbibliography[heading=bibintoc, title={Bibliography}]
\end{document}
这是testing_bib.bib
:
@article{eb_bhp,
title = {{BHP Billiton}},
url = {https://www.britannica.com/topic/BHP-Billiton},
journal = {Encyclopaedia Britannica},
publisher = {Encyclopaedia Britannica, Inc.},
date = {2006-05-11},
urldate = {2021-08-15}
}
@online{cth_nuclear_energy,
author = {Ian Cronshaw},
title = {Australian electricity options : nuclear},
date = {2020-07-20},
url = {https://www.aph.gov.au/About_Parliament/Parliamentary_Departments/Parliamentary_Library/pubs/rp/rp2021/AustralianElectricityOptionsNuclear},
organization = {Parliament of Australia},
urldate = {2021-09-08},
}
@online{bhp_history,
title = {Our History},
url = {https://www.bhp.com/our-approach/our-history/},
website = {{BHP website}},
urldate = {2021-08-15}
}
@online{bhp_olympic_dam,
title = {Olympic Dam},
url = {https://www.bhp.com/our-businesses/minerals-australia/olympic-dam/},
website = {{BHP website}},
urldate = {2021-08-25}
}
@book{asno-annual-report-2019-20,
title = "Australia's Uranium Production and Exports",
booktitle = "Annual Report 2019-20",
year = "2020",
isbn = "978–1–74322–544–8",
publisher = "Australian Safeguards and Non-Proliferation Office",
}
@online{aspi_enrichment,
author = {Rod Lyon},
title = {Australia and the enrichment option},
date = {2015-11-05},
url = {https://www.aspistrategist.org.au/australia-and-the-enrichment-option/},
organization = {Australian Strategic Policy Institute},
urldate = {2021-09-08},
}
@online{dfat_npt,
title = {Treaties and initiatives},
url = {https://www.dfat.gov.au/international-relations/security/non-proliferation-disarmament-arms-control/nuclear-issues/treaties},
organization = {Department of Foreign Affairs and Trade (Australia)},
urldate = {2021-09-08},
}
有谁知道如何:
- 使得有日期的参考文献上的年份能够显示出来;
- 是否使得第二个参考的 URL 超出边距?
谢谢
答案1
有趣的是,我最近才回答了一个非常相似的问题(其中 OP 尝试了与您相同的代码):Biblatex 和没有日期的条目第 2 部分。
我们可以使用同样的方法修改date
bibmacro。
\documentclass[twoside,12pt]{article}
\usepackage[a4paper, left=1in, top=1in, bottom=1in, right=0.5in]{geometry}
\usepackage[style=ieee]{biblatex}
\renewbibmacro*{date}{%
\iffieldundef{year}
{\bibstring{nodate}}
{\printdate}}
\begin{filecontents}{\jobname.bib}
@inreference{eb_bhp,
title = {{BHP Billiton}},
url = {https://www.britannica.com/topic/BHP-Billiton},
booktitle = {Encyclopaedia Britannica},
publisher = {Encyclopaedia Britannica, Inc.},
date = {2006-05-11},
urldate = {2021-08-15}
}
@online{cth_nuclear_energy,
author = {Ian Cronshaw},
title = {Australian electricity options: nuclear},
date = {2020-07-20},
url = {https://www.aph.gov.au/About_Parliament/Parliamentary_Departments/Parliamentary_Library/pubs/rp/rp2021/AustralianElectricityOptionsNuclear},
organization = {Parliament of Australia},
urldate = {2021-09-08},
}
@online{bhp_history,
title = {Our History},
url = {https://www.bhp.com/our-approach/our-history/},
website = {{BHP website}},
urldate = {2021-08-15},
}
@online{bhp_olympic_dam,
title = {Olympic Dam},
url = {https://www.bhp.com/our-businesses/minerals-australia/olympic-dam/},
website = {{BHP website}},
urldate = {2021-08-25},
}
@book{asno-annual-report-2019-20,
title = {Australia's Uranium Production and Exports},
booktitle = {Annual Report 2019-20},
year = {2020},
isbn = {978–1–74322–544–8},
publisher = {Australian Safeguards and Non-Proliferation Office},
}
@online{aspi_enrichment,
author = {Rod Lyon},
title = {Australia and the enrichment option},
date = {2015-11-05},
url = {https://www.aspistrategist.org.au/australia-and-the-enrichment-option/},
organization = {Australian Strategic Policy Institute},
urldate = {2021-09-08},
}
@online{dfat_npt,
title = {Treaties and initiatives},
url = {https://www.dfat.gov.au/international-relations/security/non-proliferation-disarmament-arms-control/nuclear-issues/treaties},
organization = {Department of Foreign Affairs and Trade (Australia)},
urldate = {2021-09-08},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\cite{eb_bhp, cth_nuclear_energy, aspi_enrichment, bhp_history, bhp_olympic_dam, asno-annual-report-2019-20, dfat_npt}
\printbibliography[heading=bibintoc, title={Bibliography}]
\end{document}
对于链接,您可以xurl
按照建议尝试米科 在评论中或者你可以看看如何调整参考书目的断行?可以帮你。