我試圖在我的參考書目中添加一個雜項條目,儘管 biblatex 識別出引文並在線引用它,但它拒絕將其放入引用的作品部分:
(論文.tex)
\documentclass[12pt,letterpaper]{article}
\usepackage[english]{babel}
\usepackage{hyperref}
\usepackage{csquotes}
\usepackage[style=mla-new,backend=biber]{biblatex}
\addbibresource{essay.bib}
\begin{document}
Test \autocite{misc}.
\newpage
\printbibliography
\end{document}
(論文.bib)
@misc {misc,
author = "Test author",
title = "Test citation",
publisher = "Publisher",
year = "2005"}
引文將正確顯示內聯 ( Test (author)
),但該條目不會出現在參考書目中。使用latex+biber+latex+latex建置時不會遇到錯誤或警告。
答案1
(尚)不biblatex-mla
支援misc
條目類型(以下內容引自mla-new.bbx
):
% drivers to add eventually: % * \DeclareBibliographyDriver{misc} % * \DeclareBibliographyDriver{artwork} % * \DeclareBibliographyDriver{audio} % * \DeclareBibliographyDriver{image} % * \DeclareBibliographyDriver{movie} % * \DeclareBibliographyDriver{music} % * \DeclareBibliographyDriver{performance}
此外,它有點奇怪地為這些類型設定別名,customa
但不為customa
條目類型提供參考書目驅動程序,因此不會列印任何內容。
作為部分解決方案,您可以將別名重新指派給某些具有驅動程式的現有條目類型。在此範例中,我將其設定為文章格式。
\documentclass[12pt,letterpaper]{article}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@misc{misc,
author = "Author, Test",
title = "Test Title",
publisher = "Publisher",
year = "2005"}
\end{filecontents*}
\usepackage[english]{babel}
\usepackage{hyperref}
\usepackage{csquotes}
\usepackage[style=mla,backend=biber]{biblatex}
\addbibresource{\jobname.bib}
\DeclareBibliographyAlias{misc}{article}
\begin{document}
Test \autocite{misc}.
\printbibliography
\end{document}