Skip to content

Bibtex file with preamble definitions  #67

Open
@danyaljj

Description

First, thank you for your excellent library!
I tried the following BibTeX:

@string{iit = "{IEEE} Trans. on Info. Theory"}
@preamble{"\providecommand{\CNFX}[1]{{\em{\textrm{(#1)}}}}" }
@book{locke1836an,
	title        = {An essay concerning human understanding},
	author       = {Locke, John},
	year         = 1836,
	publisher    = iit,
}

and got this error:

bibtex_js.js:869 TypeError: Cannot set properties of undefined (setting 'BIBTEXRAW')
    at BibtexParser.bibtex (bibtex_js.js:287:58)
    at BibtexDisplay.displayBibtex (bibtex_js.js:866:15)
    at Object.<anonymous> (bibtex_js.js:938:35)
    at j (jquery.min.js:2:29999)
    at k (jquery.min.js:2:30313)

Wondering if it is expected or I am missing anything.

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