Errors in exported BibTeX file when protecting capitalization

Bug #338930 reported by roby1984
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Referencer
Undecided
Mads Chr. Olesen

Bug Description

Version: 1.1.5

Description: When the "protect capitalization" flag is active, the Date field is surrounded by double brackets in the exported BibTeX file, making LaTeX hang when a publication with the same year and the same authors is cited in the LaTeX document.
Corresponding LaTeX error:
! Missing = inserted for \ifnum.
<to be read again>
                   \def

Revision history for this message
bartgenuit (bartgenuit) wrote :

I would suggest protecting only the text fields (title, author and journal, etc.). The braces around the doi field also mess up the output of my bibtexstyle, for example, making the links unresolvable.

Revision history for this message
Stephen Strowes (sdstrowes) wrote :

Braces around most fields is overzealous. Many fields do not require double braces at all, in particular fields with integer numbers.

Inspired by this thread which describes a very similar problem: http://tex.stackexchange.com/questions/10587/latex-error-when-citing-paper-with-similar-authors-and-same-year-using-natbib , I created a small patch (attached) to only protect titles when the "protect capitalization" option is used. I expect this patch will solve the bug described.

Revision history for this message
Stephen Strowes (sdstrowes) wrote :

Oops, I screwed up my patch in #2. The patch attached to this should be correct.

Revision history for this message
Mads Chr. Olesen (shiyee) wrote :

Is it not enough to not double brace numerical fields such as year, volume, etc.?
I have commited this in my development branch as http://bazaar.launchpad.net/~referencer-devs/referencer/shiyee_andrease_changes/revision/856

Changed in referencer:
status: New → In Progress
Changed in referencer:
assignee: nobody → Mads Chr. Olesen (shiyee)
Revision history for this message
bartgenuit (bartgenuit) wrote :

@Mads: do you consider mixed fields, such as the 'doi' field as well?

Revision history for this message
Mads Chr. Olesen (shiyee) wrote :

@bartgenuit: In what I commited the doi is not getting double brackets.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers