jmclawson / biblatex-mla

MLA-style citations and bibliographies using Biblatex
23 stars 9 forks source link

@customa driver missing in mla-new #23

Closed moewew closed 3 years ago

moewew commented 3 years ago

mla-new.bbx uses @customa as a fallback for some entry types

https://github.com/jmclawson/biblatex-mla/blob/9b1085ed3ff9eb6adbc13e1d915d4eee7aedce0f/mla-new.bbx#L154-L159

Unfortunately, there is no driver for @customa in mla-new.bbx, so the following MWE will just swallow the @misc entry. Since @misc is already remapped via \DeclareBibliographyAlias there isn't even a warning about this in the .log file.

\documentclass[american]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}

\usepackage[style=mla-new, backend=biber]{biblatex}

\begin{filecontents}{\jobname.bib}
@misc{elk,
  author    = {Anne Elk},
  title     = {Lecture on a Theory on Brontosauruses},
  date      = {1972-11-16},
  publisher = {University of Python},
  location  = {Monty},
  note      = {Online lecture},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}

\begin{document}
Lorem \autocite{sigfridsson}
ipsum \autocite{elk}
\printbibliography
\end{document}

No entry for Elk in the bibliography

jmclawson commented 3 years ago

This is fixed for the next version, which will be made live in the next few weeks. I've remapped it to @article with an unstyled title. An added check will look in the type field to see which title style is preferred: setting type = {book} will italicize the title, while type = {article} will enclose it in quotation marks.