question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bibtext: @STRING cause error.

See original GitHub issue

citation.js can’t parse Bibtext: @STRING . Here is an example code:

var sample = Cite.input('@string { foo = "Mrs. Foo" } @manual{article,' +
  'author  = {Test Name}, ' +
  'title   = foo  # "The title of the work",' +
  'journal = {The name of the journal},' +
  'address = {Address},'+
  'year    = 1993,' +
  'number  = 2,' +
  'pages   = {201-213},' +
  'month   = 7,' +
  'note    = {An optional note}, ' +
  'volume  = 4'+
'}');

This will throw rhis error:

Uncaught SyntaxError: Unexpected token at index 14: Expected “,”, got “=”. Returning completed entries.

Ref: http://www.bibtex.org/Format/

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
RichardEbcommented, Oct 26, 2018

Citation.js is quite the best. I also rely on the structure of the generated (json) object

1reaction
nichtichcommented, Oct 26, 2018

I counted at least four BibTeX parsing modules at npmjs, wouldn’t it make more sense to join forces with one of them instead of managing another parser?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: 1 is an integer literal, not a string, for entry - TeX
bibtex - Error: 1 is an integer literal, not a string, for entry - TeX - LaTeX Stack Exchange. Stack Overflow for Teams...
Read more >
bibclean - prettyprint and syntax check BibTeX and Scribe ...
ERROR RECOVERY AND WARNINGS ... When bibclean detects an error, it issues an error message to both stderr and stdout. That way, the...
Read more >
biber / Bugs / #134 previous BibTeX symbols give errors
Hi,. I use concatenating mnemonic ASCII symbols as keys a lot, but employ heavily UTF-8 values as well. However, my first '@string' (but ......
Read more >
bibtex-parser/index.ts at master - GitHub
This is the parser that drives Better BibTeX for Zotero bib(la)tex ... private result: string ... super(message) // 'Error' breaks prototype chain here....
Read more >
BibTeX Tips and FAQ - CTAN
bib file will not cause an error, but if they are ever actually referenced under a .bst that does not recognize the type,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found