# \DeclareLabelname with Biblatex in Emacs Org-mode [closed]

I have a custom biblatex entry type called "film". This has several custom fields, notably the "director" field.

While I am able to get this to work as a straight LaTeX document, I am unable to get the "director" field to show up when set from a #+LaTeX_Header: from within Emacs org-mode. What am I doing wrong?

Here is the LaTeX version:

\documentclass{article}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[style=apa, natbib]{biblatex}
\DeclareLanguageMapping{american}{american-apa}

\DeclareLabelname[film]{
\field{director}
\field{producer}
\field{actor}
}

\begin{document}
I've seen a movie \citep{highlander}.

\printbibliography
\end{document}


and here is the Emacs org-mode version:

#+TITLE: LaTeX Output with Emacs org-mode
#+options: toc:nil

I've read a book cite:book. I've seen a film cite:highlander.

\printbibliography


and here is the .bib file:

@Book{book,
author =       {A. U. Thor},
title =        {My first book},
publisher =    {Methuen},
year =         {1999}
}

@film{highlander,
title =        {Highlander},
director =     {Mulcahy, Russell},
year =         {1986},
publisher =    {Cannon Films},
type =         {DVD}
}


and here is how I setup the new fields and entry types in my init.el file:

;;-- Create custom fields for FILM entry type ----
'(("director" "Director(s) of a film, video or DVD title")
("producer" "Producer of the film title")
("actor" "Actor in the film title")
("distributor" "Distributor of a film title")))

;; Create FILM entry type

• Can you share apamovie.bib with us? Do things work in the LaTeX example and not in the org-mode version? Or does it fail with both? – moewe Aug 7 '19 at 20:18
• Can you plase share a screenshot of the output with us? I get the warning No driver for entry type 'film'. Using fallback driver on input line 37. Taking into account that message the output I get is pretty much exactly what I expect; in particular the \DeclareLabelname[film] works as desired. – moewe Aug 7 '19 at 20:29
• Note that the predefined entry type for films in biblatex-apa is called @movie, so you may want to switch from film to movie: This should give you slightly better results. (You could also use @video it should be pretty much the same as @movie.) – moewe Aug 7 '19 at 20:39