manuelmitasch / gitbook-plugin-bibtex-citation

6 stars 14 forks source link

Can't get it working #2

Open bk322 opened 8 years ago

bk322 commented 8 years ago

I'm on gitbook 2.6.7 and can't get bibtex plugin working:

bibtex.md:

# BibTeX

See here: {{ "test" | cite }}

References:

{% references %} {% endreferences %}

literature.bib:

@article{test,
    title = {Test title},
    volume = {82},
    url = {http://my.url},
    doi = {10.1103/doi},
    number = {5},
    urldate = {2012-01-13},
    journal = {My journal},
    author = {Me and You},
    month = nov,
    year = {2010},
    pages = {05901},
}
$ gitbook build ./ --log=debug --debug
Template render error: (/home/boris/gitb/bibtex.md)
  TypeError: Cannot read property 'toUpperCase' of undefined (In file 'bibtex.md')
Template render error: (/home/boris/gitb/bibtex.md)
  TypeError: Cannot read property 'toUpperCase' of undefined
    at Object.exports.prettifyError (/home/boris/.gitbook/versions/2.6.7/node_modules/nunjucks/src/lib.js:34:15)
    at /home/boris/.gitbook/versions/2.6.7/node_modules/nunjucks/src/environment.js:485:31
    at eval (eval at <anonymous> (/home/boris/.gitbook/versions/2.6.7/node_modules/nunjucks/src/environment.js:564:24), <anonymous>:10:11)
    at /home/boris/.gitbook/versions/2.6.7/node_modules/q/q.js:1891:17
    at flush (/home/boris/.gitbook/versions/2.6.7/node_modules/q/q.js:108:17)
    at _combinedTickCallback (node.js:370:9)
    at process._tickCallback (node.js:401:11)

?