Giter Site home page Giter Site logo

Comments (11)

gpoo avatar gpoo commented on July 26, 2024

It is not only the year, it can be any last field without a coma at the end. That coma is optional in BibTeX, but somehow the version 0.6 is not considering as optional.

from python-bibtexparser.

gpoo avatar gpoo commented on July 26, 2024

The regression was introduced in commit 19bca81

According to BibTex summary:

two fields must be separated by a coma, but the coma after the last field of an entry is optional;

Easier to notice if year is the last field, and without curly brackets (which are not mandatory for this field).

from python-bibtexparser.

gpoo avatar gpoo commented on July 26, 2024

Meh... it seems I confused two different issues. Sorry about the noise. In the case of this issue, the regression seems to be introduced in commit b2d022b

from python-bibtexparser.

gpoo avatar gpoo commented on July 26, 2024

The problem is in the line 46.

@inproceedings{amos2013applying,
title={Applying machine learning classifiers to dynamic Android
malware detection at scale},
author={Amos, Brandon and Turner, Hamilton and White, Jules},
booktitle={IWCMC'13 Security, Trust and Privacy Symposium},
year={2013}
}
% Articles.
@article{amos2014QNSTOP,
title={{QNSTOP-QuasiNewton Algorithm for Stochastic Optimization}},
author={Brandon Amos and David Easterling and Layne Watson and
William Thacker and Brent Castle and Michael Trosset},
journal={},
year={submitted},
keywords={journal}
}

If you remove %Articles., then the year is printed correctly. Comments should be written as:

@comment{Articles.}

from python-bibtexparser.

sciunto avatar sciunto commented on July 26, 2024

Many thanks to both of you. I'll try to have a look asap.

from python-bibtexparser.

bamos avatar bamos commented on July 26, 2024

Hi, thanks @gpoo for noticing I had incorrect comments in my BibTeX file.
I've corrected these and bibtexparser 0.6 is working well now.

from python-bibtexparser.

gpoo avatar gpoo commented on July 26, 2024

Nevertheless, the parser can ignore them or send a warning. If BibTex compiles, then a parser could honor that.

from python-bibtexparser.

sciunto avatar sciunto commented on July 26, 2024

I agree with gpoo. The commit that fixed bamos' bibtex bamos/cv@b0bd6b5#diff-6a584f12d8a9d2773171142f50537bb3

from python-bibtexparser.

gpoo avatar gpoo commented on July 26, 2024

Still the parser could ignore it, or complain that something is wrong with the formatting, instead of skipping one entry. The entries themselves are syntactically correct, it is just garbage in between.

from python-bibtexparser.

sciunto avatar sciunto commented on July 26, 2024

TODO: check is solved by #64

from python-bibtexparser.

sciunto avatar sciunto commented on July 26, 2024

Fixed by #64

from python-bibtexparser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.