未出现在参考书目中的杂项条目

未出现在参考书目中的杂项条目

我正在尝试向我的参考书目中添加杂项条目,尽管 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}

(essay.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}

代码输出

相关内容