Skip to content

Unable to parse bibtex if + is in the key #128

@xu-cheng

Description

@xu-cheng

Below is an example of legal bibtex file. However, it cannot be properly parsed by bibtex-ruby due to the + character in the key author+an.

@article{foo
  title={Some Title},
  author={SureName1, GivenName 1 and SureName2, GivenName 2},
  author+an={1=highlight}
}

Trying to load it, it will report following message. Consequently, the entry will be missing in Jekyll-scholar.

W, [2018-03-01 20:16:51#3787]  WARN -- : Lexer: unexpected token `+' at 178; brace level 1; mode :bibtex.

For more information, author+an is an annotation supported by biblatex. It is mainly used to highlight specific author. Ref: https://www.linkedin.com/pulse/using-biblatex-conveniently-highlight-your-author-mark-coletti-phd

Further, it would be nice that bibtex-ruby and jekyll-scholar can support author highlight in such method. I understand such function can be achieved using regex replace. However, it is less reliable if there are authors with the same name especially when only using initials instead of full given name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions