I'm writing my thesis using MikTeK and Winedt 9 for Windows. I use the documentclass{report} and then I have a "masterfile" with a preamble, where I use the option \input to load specific chapters of the thesis. I use JabRef and Biber to handle the references. I have encountered a curious problem:
Biber is unable to find a specific entry in my .bib file. At first, it seems to be related to the fact that the entry contains a line which is too long in terms of characters. Biber does not "find" the reference and renders the command in the regular boldfaced form. Typically, this happens if there are many different editors of a book, such that the "editor" line in JabRef becomes very long.
Even more curiously, Biber is able to find the same entry if I write a new file such as a regular documentclass{article}. I load the exact same .bib file in the preamble, and I use the exact same key to cite it in the document.
Any ideas?
Here is a probably too verbose MWE:
\documentclass[12]{report}
\setcounter{tocdepth}{2}
\usepackage{layout}
\setlength{\voffset}{-0.75in}
\setlength{\headsep}{5pt}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{csquotes}
\usepackage{authblk}
\usepackage [T1]{fontenc}
\usepackage[backend=biber, style=authoryear-comp]{biblatex}
\usepackage{xyling}
\usepackage[super]{nth}
\usepackage{xspace}
\usepackage{cgloss4e}
\usepackage{abstract}
\usepackage{array}
\usepackage{multirow}
\usepackage{hyperref}
\usepackage{xr}
\usepackage{gb4e}
\addbibresource{ref.bib}
\title{XXX}
\author{YYY}
\date{\today}
\begin{document}
blablabla \cite{LabelleHirschbuhler2005} NB!
\end{document}
This is the offending entry in the ref.bib file. Its BibTeX source reads like this:
@InBook{LabelleHirschbuhler2005,
chapter = {Changes in clausal organization and the position of clitics in Old French},
pages = {60-71},
title = {Grammaticalization and Parametric Change},
publisher = {Oxford University Press},
year = {2005},
author = {Marie Labelle and Paul Hirschbühler},
editor = {Monserrat, Batllori and Maria-Lluísa, Hernanz and Carme, Picallo and Francesc, Roca},
address = {Oxford},
}
Xentry. You can use thefilecontentspackage for that. – Phelype Oleinik Mar 27 '18 at 12:05\setcounter{tocdepth}{2}, your redefinitions of footnotes, several unrelated packages). Please try to make your example more minimal by removing packages and code that don't influence the issue at hand. On the other hand you example is not verbose enough, because you have not shown us the offending entries from yourref.bib. Please find examples of problematic entries and add them to your question. – moewe Mar 27 '18 at 16:15and(i.e. you typeauthor = {Emma Sigfridsson, Anne Elk, Humphrey Appleby}instead of the correctauthor = {Emma Sigfridsson and Anne Elk, and Humphrey Appleby}see https://tex.stackexchange.com/q/36396/35864), but I'm just guessing here – moewe Mar 27 '18 at 16:17.blgfile for errors or warnings. – moewe Mar 27 '18 at 16:55.bibentry you can simply copy and paste it here. Having everything in one document withfilecontentsis a huge plus, but not strictly required to understand what is going on. – moewe Mar 28 '18 at 14:49gb4e. After this error, the entry turns out undefined. Commenting this package, it runs as expected. When you say you "start another document with a different documentclass" and it works, is it otherwise the same preamble or a "clean slate" new document? – gusbrs Mar 29 '18 at 11:07biblatexproblem. It is an incompatibility ofxylingandgb4e: `\documentclass{report} \usepackage{gb4e} \usepackage{xyling}\begin{document} Lorem \end{document}`
– moewe Mar 29 '18 at 11:28.bibentry in the question was perfectly fine, though. – moewe May 17 '18 at 20:27